- From: <bugzilla@wiggum.w3.org>
- Date: Mon, 06 Apr 2009 08:11:05 +0000
- To: public-qt-comments@w3.org
http://www.w3.org/Bugs/Public/show_bug.cgi?id=6775
Summary: DOM-to-DOM transform with method='html' needs to convert
no-namespace nodes into the HTML namespace
Product: XPath / XQuery / XSLT
Version: Recommendation
Platform: All
OS/Version: All
Status: NEW
Severity: normal
Priority: P2
Component: XSLT 2.0
AssignedTo: mike@saxonica.com
ReportedBy: hsivonen@iki.fi
QAContact: public-qt-comments@w3.org
HTML 5 harmonizes the DOM representation of HTML and XHTML so that HTML element
nodes parsed from text/html streams are assigned into the
http://www.w3.org/1999/xhtml namespace.
http://www.w3.org/TR/html5/tree-construction.html#creating-and-inserting-elements
http://www.w3.org/TR/html5/tree-construction.html#namespaces
It follows that an HTML 5-compliant UA treats elements in the
http://www.w3.org/1999/xhtml namespace as HTML elements but doesn't treat
no-namespace elements as HTML elements. (CSS has previously harmonized selector
namespace-sensitivity behavior so that HTML nodes are treated as if they were
in the http://www.w3.org/1999/xhtml namespace.)
There is existing content out there that expects the no-namespace output nodes
from XSLT transformations whose output method is 'html' to be treated as HTML.
Therefore, in DOM-to-DOM transforms, when the output mode has been either
explicitly or implicitly (the root is case-insensitive "html" in no-namespace)
set to 'html' in the XSLT transformation, it is necessary to:
1) Replace the ASCII letters A through Z with the ASCII letters a through z in
local names of no-namespace elements output and no-namespace attributes on
no-namespace elements output.
2) Change the namespace of no-namespace output elements to
"http://www.w3.org/1999/xhtml".
I think this the XSLT spec should specify this behavior.
The relevant Gecko bug for implementing this behavior is
https://bugzilla.mozilla.org/show_bug.cgi?id=468708
--
Configure bugmail: http://www.w3.org/Bugs/Public/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the QA contact for the bug.
Received on Monday, 6 April 2009 08:11:15 UTC