Menu

#16 Empty attribute syntax not behaving to html5 standard

open
nobody
None
5
2012-01-05
2012-01-05
No

http://dev.w3.org/html5/spec/syntax.html#attributes-0 says:

Empty attribute syntax Just the attribute name. The value is implicitly the empty string. In the following example, the disabled attribute is given with the empty attribute syntax:

<input disabled>

With HotSax the above parses as though it were

<input disabled="disabled">

not

<input disabled="">

which is how the spec describes it as an "implicit empty string".

Discussion


Log in to post a comment.

MongoDB Logo MongoDB