- From: <bugzilla@jessica.w3.org>
- Date: Wed, 07 Jun 2017 19:45:44 +0000
- To: public-qt-comments@w3.org
https://www.w3.org/Bugs/Public/show_bug.cgi?id=30120
Bug ID: 30120
Summary: Test Serialization-html-19c
Product: XPath / XQuery / XSLT
Version: Recommendation
Hardware: PC
OS: Linux
Status: NEW
Severity: normal
Priority: P2
Component: XQuery 3 & XPath 3 Test Suite
Assignee: oneil@saxonica.com
Reporter: alejandro.r.rojas@oracle.com
QA Contact: public-qt-comments@w3.org
Target Milestone: ---
Serialization-html-19c:
<test-case name="Serialization-html-19c" covers-30="html-output">
<description>Test with cdata-section-elements for HTML 5.0</description>
<created by="Henry Zongaro" on="2012-10-26"/>
<modified by="O'Neil Delpratt" on="2013-05-30" change="added dependency
inline with bug issue #21868"/>
<modified by="Michael Kay" on="2013-06-13" change="correct expected
result"/>
<dependency type="feature" value="serialization" satisfied="true"/>
<dependency type="spec" value="XQ30+"/>
<test><![CDATA[
declare namespace output = "http://www.w3.org/2010/xslt-xquery-serialization";
declare namespace html = "http://www.w3.org/1999/xhtml";
declare option output:method "html";
declare option output:indent "no";
declare option output:version "5.0";
declare option output:cdata-section-elements "b html:em";
<html><body><p><b>No CDATA</b><em>No CDATA</em><html:b>No
CDATA</html:b><html:em>No CDATA</html:em></p></body></html>]]></test>
<result>
<serialization-matches><![CDATA[<html><body><p><b>No CDATA</b><em>No
CDATA</em><html:b *xmlns:html=(['"])http://www.w3.org/1999/xhtml\1>No
CDATA</html:b><html:em *xmlns:html=(['"])http://www.w3.org/1999/xhtml\2>No
CDATA</html:em></p></body></html>]]></serialization-matches>
</result>
</test-case>
Notice it expects the <html:b> and <html:em> elements to serialize with
prefixes.
In point 1. of section 7.1 it says "... if the requested HTML version is 5.0,
any element node that has a prefix and is in the XHTML namespace ... MUST be
serialized with an unprefixed element name. The serializer MUST serialize an
attribute with the name xmlns whose value is equal to the namespace URI of the
element node, unless ..."
I think that the correct result would be to match elements html:b and html:em
with prefix normalization applied to them, because the html prefix is in XHTML
namespace.
Like this:
...<b *xmlns=(['"])http://www.w3.org/1999/xhtml\1>No CDATA</b><em
*xmlns=(['"])http://www.w3.org/1999/xhtml\2>No CDATA</em>...
--
You are receiving this mail because:
You are the QA Contact for the bug.
Received on Wednesday, 7 June 2017 19:45:52 UTC