[Bug 8871] Empty attribute syntax definition seems incorrect.

http://www.w3.org/Bugs/Public/show_bug.cgi?id=8871





--- Comment #3 from Michael(tm) Smith <mike@w3.org>  2010-02-20 03:39:42 ---
(In reply to comment #2)
> The some/all quantifier is not needed: "Attributes may be specified by
> providing just the attribute name." If further clarification is needed: "This
> sets the attribute value to the empty string, so is a conformance error if the
> empty string is not a valid value for the attribute."

That's the same as saying, "Certain attributes may be specified by providing
just the attribute name, with no value.", it's just more words.

> > And the per-element subsections of "HTML elements" section of the H:TML draft
> > indicate explicitly which attributes can be empty.
> 
> It does for some allowably empty attributes, but not all.
> 
> e.g. @href, @rel and @ping may all be empty on the <a> element, so the
> following is conformant:
> 
>   <a href rel ping>Foo</a>
> 
> But the language in the H:TML draft appears to forbid this.

In fact it doesn't. It says that, e.g., the allowed value of the rel attribute
is "tokens", and explicitly defines "tokens" as "A space-separated list of zero
or more token instances."

Anyway, I did make a refinement to clarify that the value of the @href
attribute is allowed to be empty. See
http://dev.w3.org/cvsweb/html5/markup/spec.html?r1=1.171&r2=1.172&f=h


-- 
Configure bugmail: http://www.w3.org/Bugs/Public/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the QA contact for the bug.

Received on Saturday, 20 February 2010 03:39:44 UTC