Behavior when attribute explicitly left empty

What is the proscribed behavior in cases where an attribute is explicity written in an element(tag), but the value is left empty, eg, <input checked="" />? Is this the same as <input checked="checked" /> (or, minimalized, <input checked>)? The DTD defines an #IMPLIED *attribute* called checked for the input tag, which can accept a single enumerated *value* checked, or no value whatsoever. According to the XML 1.0 recommendation, this means that 'that no default value is provided,' according to A gentle introduction to SGML, this means that 'A value need not be supplied'. But when the attribute is listed but empty, no value is being supplied. Shouldn't <input checked="" /> be considered a verbose equivalent to <input />?

cf http://lists.w3.org/Archives/Public/www-html/2005Mar/0048.html


      

Received on Thursday, 13 August 2009 21:28:22 UTC