<?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>21968</bug_id>
          
          <creation_ts>2013-05-08 14:01:52 +0000</creation_ts>
          <short_desc>[SER30] Empty elements with HTML 4.0 serialization</short_desc>
          <delta_ts>2013-05-15 15:32:00 +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.0</component>
          <version>Candidate Recommendation</version>
          <rep_platform>PC</rep_platform>
          <op_sys>Linux</op_sys>
          <bug_status>CLOSED</bug_status>
          <resolution>INVALID</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="O&apos;Neil Delpratt">oneil</reporter>
          <assigned_to name="Henry Zongaro">zongaro</assigned_to>
          
          
          <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>87423</commentid>
    <comment_count>0</comment_count>
    <who name="O&apos;Neil Delpratt">oneil</who>
    <bug_when>2013-05-08 14:01:52 +0000</bug_when>
    <thetext>In spec at section 7.1 it states:

&quot;For HTML 4.0, the element types that have an empty content model are area, base, basefont, br, col, embed, frame, hr, img, input, isindex, link, meta and param.&quot;

What namespace does this apply to? Test case Serialization-html-3 assumes that this includes the XHTML namespace, but the spec does not make this clear. This was not the case in XSLT 2.0/XQuery 1.0.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>87540</commentid>
    <comment_count>1</comment_count>
    <who name="Henry Zongaro">zongaro</who>
    <bug_when>2013-05-10 16:00:46 +0000</bug_when>
    <thetext>O&apos;Neil, the first paragraph of section 7.1 states, in part

&lt;&lt;the HTML output method will not output an element differently from the XML output method unless the element is to be serialized as an HTML element.  An element node is serialized as an HTML element if:

. the expanded QName of the element has a null namespace URI, regardless of the value of the requested HTML version, or

. the value of the requested HTML version is 5.0 or greater, and the element node is in the XHTML namespace.&gt;&gt;

The intention was that, if the value of the version parameter is 4.0, only elements that have a null namespace URI are recognized as empty elements.  In the case of Serialization-html-3, the expected serialized result, which I&apos;ve copied below, reflects that.  For instance, the br element node is expected to be serialized as &lt;br/&gt; rather than as &lt;br&gt;.

&lt;serialization-matches&gt;&lt;![CDATA[&lt;html xmlns=&quot;http://www.w3.org/1999/xhtml&quot;&gt;&lt;body/&gt;&lt;area/&gt;&lt;base/&gt;&lt;br/&gt;&lt;col/&gt;&lt;embed/&gt;&lt;frame/&gt;&lt;hr/&gt;&lt;img/&gt;&lt;input/&gt;&lt;isindex/&gt;&lt;link/&gt;&lt;meta/&gt;&lt;param/&gt;&lt;/body/&gt;&lt;/html&gt;]]&gt;&lt;/serialization-matches&gt;


I am, of course, speaking for myself only, not on behalf of the XQuery and XSLT working groups.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>87727</commentid>
    <comment_count>2</comment_count>
    <who name="Henry Zongaro">zongaro</who>
    <bug_when>2013-05-15 13:38:06 +0000</bug_when>
    <thetext>At their joint teleconference call of 14 May, 2013,[1] the XSLT and XQuery Working Groups agreed with the reasoning outlined in comment #1, and decided the bug should be closed as invalid.  It was also decided that the serialization test in question should updated to allow for additional permissible serialized results for elements that are empty but not serialized as HTML elements - e.g., &lt;br/&gt; and &lt;br&gt;&lt;/br&gt; are both permissible.

O&apos;Neil, as you were present I will assume that you are in agreement with the decision and close the bug.

[1] https://lists.w3.org/Archives/Member/w3c-xsl-query/2013May/0024.html (Member-only link)</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>87730</commentid>
    <comment_count>3</comment_count>
    <who name="O&apos;Neil Delpratt">oneil</who>
    <bug_when>2013-05-15 15:32:00 +0000</bug_when>
    <thetext>Yes I agree with the resolution. I have also added an alternative result to the test case</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>