<?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>17153</bug_id>
          
          <creation_ts>2012-05-23 00:58:01 +0000</creation_ts>
          <short_desc>Nu validator wrongly stamps &lt;command&gt; in the &lt;head&gt; as invalid</short_desc>
          <delta_ts>2013-04-22 00:09:24 +0000</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>1</classification_id>
          <classification>Unclassified</classification>
          <product>HTML Checker</product>
          <component>General</component>
          <version>unspecified</version>
          <rep_platform>PC</rep_platform>
          <op_sys>All</op_sys>
          <bug_status>CLOSED</bug_status>
          <resolution>WORKSFORME</resolution>
          
          
          <bug_file_loc>http://validator.w3.org/nu/?doc=data%3Atext%2Fhtml%3Bcharset%3Dutf-8%3Bbase64%2CPCFET0NUWVBFIGh0bWw%252BDQo8aGVhZD4NCg0KICAgICAgICAgICA8Y29tbWFuZCBkaXNhYmxlZD4NCg0KPHRpdGxlPjwvdGl0bGU%252BPC9oZWFkPjxwPg%253D%253D&amp;showsource=yes</bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>P2</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Leif Halvard Silli">xn--mlform-iua</reporter>
          <assigned_to name="Michael[tm] Smith">mike+validator</assigned_to>
          <cc>mike</cc>
    
    <cc>xn--mlform-iua</cc>
          
          <qa_contact name="qa-dev tracking">www-validator-cvs</qa_contact>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>68027</commentid>
    <comment_count>0</comment_count>
    <who name="Leif Halvard Silli">xn--mlform-iua</who>
    <bug_when>2012-05-23 00:58:01 +0000</bug_when>
    <thetext>Spec says that the &quot;Metadata content&quot; category is one of 3 categories for the &lt;command&gt; element and that &lt;command&gt; is allowed &quot;Where metadata content is expected.&quot;

And HTML5 clearly lists &lt;command&gt; together wtih the &lt;meta&gt; element etc:
  http://dev.w3.org/html5/spec/content-models.html#metadata-content

Further more IE10, Firefox 12, Opera 12 and Safari 5.1.7 all places the &lt;command&gt; in the &lt;head&gt;

However, the validator stamps &lt;command&gt; in the head as a bug.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>68250</commentid>
    <comment_count>1</comment_count>
    <who name="Michael[tm] Smith">mike</who>
    <bug_when>2012-05-29 10:57:03 +0000</bug_when>
    <thetext>Since &lt;command&gt; isn&apos;t actually supported by any browsers yet, it&apos;s not a big priority to have the validator properly support it. I don&apos;t understand what the current use case would be for anybody actually including it in a real-world Web document at this point. Given the fact that it&apos;s been in spec for 7 years or more now and nobody&apos;s actually implemented it, it seems possible that that could end up just being dropped from the spec entirely.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>68275</commentid>
    <comment_count>2</comment_count>
    <who name="Leif Halvard Silli">xn--mlform-iua</who>
    <bug_when>2012-05-29 17:16:14 +0000</bug_when>
    <thetext>(In reply to comment #1)

If you think the HTML5 spec needs to be updated, then isn&apos;t the propert thing to file a bug? 

** 
   Note that I did not say that you should remove the validator&apos;s current warning against using &lt;command&gt;. I just said that the validator should reflect the fact &lt;command&gt; is permitted in &lt;head&gt;. **

I would further more argue that, after 7 years - 5 of them within W3C - browsers are picking up. OK, I don&apos;t know how deep their support of &lt;command&gt; is - but:

*  they can&apos;t see it as a unknown element, when they (as I said above) keep it in the &lt;head&gt; if you place it there. Which is a form of support. Because, if they had seen it as an unknown element, then they would have spit it out of &lt;head&gt; and placed in the body element.

* Note in this regard that IE8 too would keep it the head, becaue IE historically allowed new elements in the &lt;head&gt;. But note that IE9 did not keep it in the &lt;head&gt; - probably because it did not get its HTML5 implementation correct. Whereas IE10 *does* keep &lt;command&gt; in the head - but spits any other unknown element out of &lt;head&gt;.

* Thus, what the WHATwg spec says about implementation of &lt;command&gt;, is not entirely correct:
http://www.whatwg.org/specs/web-apps/current-work/multipage/interactive-elements.html#the-command-element

* Meanwhile, the last changes to the command element was, according to HTML4-differences, the 25 May 2011 working draft, so it I don&apos;t know how old one actually claim &lt;command&gt; to be: http://www.w3.org/TR/html5-diff/#changes-2011-05-25</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>68276</commentid>
    <comment_count>3</comment_count>
    <who name="Leif Halvard Silli">xn--mlform-iua</who>
    <bug_when>2012-05-29 17:20:17 +0000</bug_when>
    <thetext>(In reply to comment #2)
&gt; * Thus, what the WHATwg spec says about implementation of &lt;command&gt;, is not
&gt; entirely correct:
&gt; http://www.whatwg.org/specs/web-apps/current-work/multipage/interactive-elements.html#the-command-element

Sorry, if unclear: I meant that its implementation status note is not updated since 2009.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>86438</commentid>
    <comment_count>4</comment_count>
    <who name="Michael[tm] Smith">mike</who>
    <bug_when>2013-04-21 02:01:35 +0000</bug_when>
    <thetext>The command element has been dropped from the spec.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>