W3C home > Mailing lists > Public > public-qt-comments@w3.org > October 2009

[Bug 7823] New: [SER] Description of escaping rules for script and style elements in HTML mode not clear

From: <bugzilla@wiggum.w3.org>
Date: Tue, 06 Oct 2009 17:45:18 +0000
To: public-qt-comments@w3.org
Message-ID: <bug-7823-523@http.www.w3.org/Bugs/Public/>
http://www.w3.org/Bugs/Public/show_bug.cgi?id=7823

           Summary: [SER] Description of escaping rules for script and style
                    elements in HTML mode not clear
           Product: XPath / XQuery / XSLT
           Version: 2nd Edition Recommendation
          Platform: PC
        OS/Version: Windows NT
            Status: NEW
          Severity: normal
          Priority: P2
         Component: Serialization
        AssignedTo: zongaro@ca.ibm.com
        ReportedBy: oliver@cbcl.co.uk
         QAContact: public-qt-comments@w3.org


The spec says "The HTML output method MUST NOT perform escaping for the content
of the script and style elements."

It is not clear in this context what "escaping for the content" means.  If the
content contains an element, are its attribute values escaped or not?

For example, how should the following query be serialized in HTML mode?

<script>
  document.write("<script bad="&quot;"/>&lt;<foo>&lt;&gt;</foo>&gt;</script>")
</script>

I assume this should be serialized as follows, with the "no escaping" only
applying to text node children of script elements:

<script>
  document.write("<script bad="&quot;"/><<foo>&gt;&lt;</foo>></script>")
</script>

Am I right in this assumption?


-- 
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 Tuesday, 6 October 2009 17:45:19 UTC

This archive was generated by hypermail 2.3.1 : Wednesday, 7 January 2015 15:45:41 UTC