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

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 the QA contact for the bug.

Received on Friday, 28 January 2011 12:04:38 UTC