W3C home > Mailing lists > Public > public-html-bugzilla@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-bugzilla@w3.org
Message-ID: <bug-11905-2486@http.www.w3.org/Bugs/Public/>

           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
        OS/Version: All
            Status: NEW
          Severity: major
          Priority: P2
         Component: HTML/XHTML Compatibility Authoring Guide (ed: Eliot
        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

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 the QA contact for the bug.
Received on Friday, 28 January 2011 12:04:38 UTC

This archive was generated by hypermail 2.4.0 : Friday, 17 January 2020 20:01:38 UTC