HTML window doesn't show correct syntax when adding blank attributes

Forums Bug Reports HTML window doesn't show correct syntax when adding blank attributes

This topic contains 3 replies, has 3 voices, and was last updated by  Jo Valued 1 month, 4 weeks ago.

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • Jo
    Member
    Valued

    Referring to this thread here:
    https://bootstrapstudio.io/forums/topic/about-alt-attributealt/#post-14113

    What we see in the HTML window should be exactly what till show in the file itself and that definitely isn’t happening with this. Might be others it does that too as well?

    To do this I just added a new manual attribute in the Attributes pane, typed alt in the left box and left the right box empty. This should produce alt=”” but it doesn’t do that in the HTML window of the app. It “does” however do it in the file when it’s exported so it is working as it should as far as exported files, but we should see things in the HTML window exactly as they will be in the exported files.

    Saj
    Member
    Valued
    Gabriela Pavlova
    Bootstrap Studio Developer

    As Saj has said, and per the HTML5 specification when using the empty attribute syntax (i.e. just the attribute name) the value is implicitly the empty string. Similarly to Chrome’s Dev Tools we don’t show the =”” part of the attribute in order to minimize it. Adding it would create too much clutter in the already small HTML panel.

    Jo
    Member
    Valued

    You are missing the point, both of you. The syntax is not “empty” in the app, it’s not there only the word Alt is there. There is no equals sign with empty quotes.

    The equals sign and empty quotes, according to the other poster in the other thread, do show up in the exported HTML file, but in the app they are not visibly there in the HTML window.

Viewing 4 posts - 1 through 4 (of 4 total)

You must be logged in to reply to this topic.