W3C home > Mailing lists > Public > public-html@w3.org > January 2011

[Bug 11905] New: Escaping of "<" and "&" in Polyglot Markup

From: <bugzilla@jessica.w3.org>
Date: Fri, 28 Jan 2011 12:04:36 +0000
To: public-html@w3.org
Message-ID: <bug-11905-2495@http.www.w3.org/Bugs/Public/>
http://www.w3.org/Bugs/Public/show_bug.cgi?id=11905

           Summary: Escaping of "<" and "&" in Polyglot Markup
           Product: HTML WG
           Version: unspecified
          Platform: PC
               URL: http://dev.w3.org/html5/html-xhtml-author-guide/html-x
                    html-authoring-guide.html
        OS/Version: All
            Status: NEW
          Severity: major
          Priority: P2
         Component: HTML/XHTML Compatibility Authoring Guide (ed: Eliot
                    Graff)
        AssignedTo: eliotgra@microsoft.com
        ReportedBy: xn--mlform-iua@xn--mlform-iua.no
         QAContact: public-html-bugzilla@w3.org
                CC: mike@w3.org, public-html-wg-issue-tracking@w3.org,
                    public-html@w3.org, eliotgra@microsoft.com


It is a well-formed requirement in XML 1.0 that "<" and "&" are escaped
whenever they are not used in entities or in tags or occur inside CDATA
sections.

In contrast, in HTML, the "&" in general does not need to be escaped. Whereas
the "<" does not need escaping inside attributes. 

Exact XML rules: http://www.w3.org/TR/REC-xml/#syntax

Conclusion: State that "<" and "&", when used as  character, always needs to be
escaped, except when inside CDATA.

(You may also want to see Bug 11904.)

-- 
Configure bugmail: http://www.w3.org/Bugs/Public/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.
Received on Friday, 28 January 2011 12:04:37 UTC

This archive was generated by hypermail 2.3.1 : Monday, 29 September 2014 09:39:22 UTC