<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "https://www.w3.org/Bugs/Public/page.cgi?id=bugzilla.dtd">

<bugzilla version="5.0.4"
          urlbase="https://www.w3.org/Bugs/Public/"
          
          maintainer="sysbot+bugzilla@w3.org"
>

    <bug>
          <bug_id>8871</bug_id>
          
          <creation_ts>2010-02-03 10:53:29 +0000</creation_ts>
          <short_desc>Empty attribute syntax definition seems incorrect.</short_desc>
          <delta_ts>2010-03-10 07:13:57 +0000</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>1</classification_id>
          <classification>Unclassified</classification>
          <product>HTML WG</product>
          <component>HTML5: The Markup Language (editor: Michael(tm) Smith)</component>
          <version>unspecified</version>
          <rep_platform>PC</rep_platform>
          <op_sys>Linux</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>WONTFIX</resolution>
          
          
          <bug_file_loc>http://dev.w3.org/html5/markup/syntax.html#syntax-attr-empty</bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords>editorial</keywords>
          <priority>P2</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Toby Inkster">mail</reporter>
          <assigned_to name="Michael[tm] Smith">mike</assigned_to>
          <cc>public-html-admin</cc>
          
          <qa_contact name="HTML WG Bugzilla archive list">public-html-bugzilla</qa_contact>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>31415</commentid>
    <comment_count>0</comment_count>
    <who name="Toby Inkster">mail</who>
    <bug_when>2010-02-03 10:53:29 +0000</bug_when>
    <thetext>H:TML states that &quot;certain attributes may be specified by providing just the attribute name&quot; which suggests that there are other attributes which may not be specified this way.

The other HTML5 spec doesn&apos;t place any limits on which attributes may use the empty attribute syntax.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>32412</commentid>
    <comment_count>1</comment_count>
    <who name="Michael[tm] Smith">mike</who>
    <bug_when>2010-02-18 18:00:55 +0000</bug_when>
    <thetext>(In reply to comment #0)
&gt; H:TML states that &quot;certain attributes may be specified by providing just the
&gt; attribute name&quot; which suggests that there are other attributes which may not be
&gt; specified this way.
&gt; 
&gt; The other HTML5 spec doesn&apos;t place any limits on which attributes may use the
&gt; empty attribute syntax.

Is there a specific change you would like to see made to the wording?

Changing it to &quot;All attributes may be specified by providing just the attribute name&quot; would not be correct, because using the empty-attribute syntax with many (or even most) attributes is a conformance error -- because the values of the attributes must conform to a specific datatype/microsyntax. So the HTML5 spec does in fact place limits on which attributes can use the empty-attribute syntax.

And the per-element subsections of &quot;HTML elements&quot; section of the H:TML draft indicate explicitly which attributes can be empty.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>32465</commentid>
    <comment_count>2</comment_count>
    <who name="Toby Inkster">mail</who>
    <bug_when>2010-02-20 00:36:26 +0000</bug_when>
    <thetext>(In reply to comment #1)

&gt; Changing it to &quot;All attributes may be specified by providing just the attribute
&gt; name&quot; would not be correct, because using the empty-attribute syntax with many
&gt; (or even most) attributes is a conformance error -- because the values of the
&gt; attributes must conform to a specific datatype/microsyntax. So the HTML5 spec
&gt; does in fact place limits on which attributes can use the empty-attribute
&gt; syntax.

The some/all quantifier is not needed: &quot;Attributes may be specified by providing just the attribute name.&quot; If further clarification is needed: &quot;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.&quot;

&gt; And the per-element subsections of &quot;HTML elements&quot; section of the H:TML draft
&gt; 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 &lt;a&gt; element, so the following is conformant:

  &lt;a href rel ping&gt;Foo&lt;/a&gt;

But the language in the H:TML draft appears to forbid this.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>32467</commentid>
    <comment_count>3</comment_count>
    <who name="Michael[tm] Smith">mike</who>
    <bug_when>2010-02-20 03:39:42 +0000</bug_when>
    <thetext>(In reply to comment #2)
&gt; The some/all quantifier is not needed: &quot;Attributes may be specified by
&gt; providing just the attribute name.&quot; If further clarification is needed: &quot;This
&gt; sets the attribute value to the empty string, so is a conformance error if the
&gt; empty string is not a valid value for the attribute.&quot;

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

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

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

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&amp;r2=1.172&amp;f=h</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>32873</commentid>
    <comment_count>4</comment_count>
    <who name="Michael[tm] Smith">mike</who>
    <bug_when>2010-03-10 07:13:57 +0000</bug_when>
    <thetext>EDITOR&apos;S RESPONSE: This is an Editor&apos;s Response to your comment. If you are
satisfied with this response, please change the state of this bug to CLOSED. If
you have additional information and would like the editor to reconsider, please
reopen this bug. If you would like to escalate the issue to the full HTML
Working Group, please add the TrackerRequest keyword to this bug, and suggest
title and text for the tracker issue; or you may create a tracker issue
yourself, if you are able to do so. For more details, see this document:
   http://dev.w3.org/html5/decision-policy/decision-policy.html

Status: Rejected
Change Description: no change
Rationale: Most attributes cannot be specified in a conformant manner by providing just the attribute name; to phrase that in a slightly different way: Using empty-attribute syntax to specify those attributes is a conformance error. Therefore, it&apos;s accurate to state that  &quot;certain attributes may be specified by providing just the attribute name&quot;, with the implication being that some cannot by specified that way.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>