<?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>30119</bug_id>
          
          <creation_ts>2017-06-07 14:59:52 +0000</creation_ts>
          <short_desc>&apos;COMMAND&apos; element as HTML element</short_desc>
          <delta_ts>2017-07-11 07:45:02 +0000</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>1</classification_id>
          <classification>Unclassified</classification>
          <product>XPath / XQuery / XSLT</product>
          <component>Serialization 3.1</component>
          <version>Recommendation</version>
          <rep_platform>PC</rep_platform>
          <op_sys>Linux</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>FIXED</resolution>
          
          
          <bug_file_loc></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="Alejandro Rojas Cepeda">alejandro.r.rojas</reporter>
          <assigned_to name="C. M. Sperberg-McQueen">cmsmcq</assigned_to>
          <cc>andrew_coleman</cc>
    
    <cc>josh.spiegel</cc>
    
    <cc>liam</cc>
    
    <cc>mike</cc>
          
          <qa_contact name="Mailing list for public feedback on specs from XSL and XML Query WGs">public-qt-comments</qa_contact>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>128624</commentid>
    <comment_count>0</comment_count>
    <who name="Alejandro Rojas Cepeda">alejandro.r.rojas</who>
    <bug_when>2017-06-07 14:59:52 +0000</bug_when>
    <thetext>Appendix D, List of URI Attributes gives the &apos;icon&apos; attribute of the &apos;COMMAND&apos; element as one of the attributes that should be escaped.  However, neither HTML 4 nor HTML 5 appear to define an element named &apos;command&apos;.  

https://www.w3.org/TR/html4/index/elements.html
https://www.w3.org/TR/html5/index.html#elements-1

There is also a test, Serialization-html-2, which tests that HTML 5.0 elements with empty content model are serialized using only a start tag.  This test expects an element named command to be serialized as HTML.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>128625</commentid>
    <comment_count>1</comment_count>
    <who name="Michael Kay">mike</who>
    <bug_when>2017-06-07 15:39:40 +0000</bug_when>
    <thetext>It&apos;s difficult to keep pace with a &quot;living standard&quot;:

https://www.w3.org/wiki/HTML/Elements/command

https://developer.mozilla.org/en-US/docs/Web/HTML/Element/command</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>128626</commentid>
    <comment_count>2</comment_count>
    <who name="Josh Spiegel">josh.spiegel</who>
    <bug_when>2017-06-07 15:55:06 +0000</bug_when>
    <thetext>&apos;command&apos; was in a working draft of html5 but removed in 2012, well before it went REC in 2014:

https://lists.w3.org/Archives/Public/public-whatwg-archive/2012Dec/0264.html

I agree with Alejandro - it is incorrect for serialization to normatively reference this element as it does currently.   Likewise, the expected result of Serialization-html-2 is incorrect.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>128639</commentid>
    <comment_count>3</comment_count>
    <who name="C. M. Sperberg-McQueen">cmsmcq</who>
    <bug_when>2017-06-13 15:32:08 +0000</bug_when>
    <thetext>In the spirit of due diligence, I looked to see if COMMAND were present in any earlier versions of HTML; I didn&apos;t find it.

It looks as though two things should be done:  (1) we need to write an erratum to remove the mention of command/@icon, and (2) to fix the expected result of the test.

The WG discussed this bug on our call of 13 June 2017 and agreed to take the two actions just mentioned.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>128650</commentid>
    <comment_count>4</comment_count>
    <who name="Michael Kay">mike</who>
    <bug_when>2017-06-18 22:26:30 +0000</bug_when>
    <thetext>This also affects the following xslt30 test cases:

  output-0216
  output-0217
  output-0222
  output-0223

I shall fix these without a further bug report.

Note: I have changed these tests to remove use of the &quot;command&quot; element. The revised tests will pass whether or not a processor has implemented this erratum.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>128651</commentid>
    <comment_count>5</comment_count>
    <who name="Michael Kay">mike</who>
    <bug_when>2017-06-18 22:55:27 +0000</bug_when>
    <thetext>I have likewise fixed the QT3 test Serialization-html-2, which appears to be the only QT3 test affected by the erratum.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>128652</commentid>
    <comment_count>6</comment_count>
    <who name="Josh Spiegel">josh.spiegel</who>
    <bug_when>2017-06-19 11:40:29 +0000</bug_when>
    <thetext>&gt; Note: I have changed these tests to remove use of the &quot;command&quot; element. The revised &gt; tests will pass whether or not a processor has implemented this erratum.

I disagree.  The correct fix for Serialization-html-2 is to update the expected result rather than changing the test query to avoid the issue.

Also, the proposed erratum and the issue with this test are both concerning the command element but they are not directly related.  Implementations should be passing this test regardless of the erratum.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>128653</commentid>
    <comment_count>7</comment_count>
    <who name="Michael Kay">mike</who>
    <bug_when>2017-06-19 20:39:13 +0000</bug_when>
    <thetext>Perhaps we need some process on this. I&apos;m reluctant to cause implementations to fail a test when they implement the spec as published; I would think that a test that relies on an erratum being implemented should be explicitly flagged as such, and the dependency should be isolated to a very focussed test for that erratum. Implementors will have different policies for implementing errata; some may want to wait for the next major release of a product, or for the errata to be integrated into a new spec edition.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>128654</commentid>
    <comment_count>8</comment_count>
    <who name="Liam R E Quin">liam</who>
    <bug_when>2017-06-20 02:39:30 +0000</bug_when>
    <thetext>I don&apos;t see this as a significant interoperability issue.

A smart implementation would probably have a configurable list of elements to be serialized as empty, and attributes to be quoted, I suppose.

For the now, since command isn&apos;t in HTML, it should be fine to serialize it in HTML style when it&apos;s empty and you&apos;re generating HTML 5, and quoting the attribute isn&apos;t going to hurt either. Not doing those things also isn&apos;t a problem, since the element isn&apos;t implemented in HTML agents. So it doesn&apos;t seem worth expecting implementations to change, and deleting the tests doesn&apos;t sound like a bad idea to me.

It probably should not be an error to have a non-empty element called command, although it would also (arguably) be unwise as there may well be HTML agents that *do* recognize it as a &quot;null&quot; (EMPTY) element and including it in HTML files could therefore lead to really obscure interoperability problems.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>128707</commentid>
    <comment_count>9</comment_count>
    <who name="Andrew Coleman">andrew_coleman</who>
    <bug_when>2017-07-11 07:45:02 +0000</bug_when>
    <thetext>Fixed in errata document. See
https://www.w3.org/XML/2017/qt-errata/xslt-xquery-serialization-31-errata.html#E1

Many thanks.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>