W3C home > Mailing lists > Public > public-xhtml2@w3.org > August 2009

Behavior when attribute explicitly left empty

From: bret douglass <bret_douglass@yahoo.com>
Date: Thu, 13 Aug 2009 14:27:35 -0700 (PDT)
Message-ID: <220563.68434.qm@web56701.mail.re3.yahoo.com>
To: public-xhtml2@w3.org
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

This archive was generated by hypermail 2.3.1 : Tuesday, 6 January 2015 20:30:32 UTC