[Bug 9684] New: textarea and pre elements in polyglot document

http://www.w3.org/Bugs/Public/show_bug.cgi?id=9684

           Summary: textarea and pre elements in polyglot document
           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: Windows NT
            Status: NEW
          Severity: normal
          Priority: P2
         Component: HTML/XHTML Compatibility Authoring Guide (ed: Eliot
                    Graff)
        AssignedTo: eliotgra@microsoft.com
        ReportedBy: eliotgra@microsoft.com
         QAContact: public-html-bugzilla@w3.org
                CC: mike@w3.org, public-html@w3.org,
                    eliotgra@microsoft.com


Issue: The polyglot document needs to be specific about newline characters,
white space, and other issues in the textarea or pre element.


Current Spec Language: None.


Notes: The issue is raised in two related mails. The first is from Philip
Taylor and explores whether a polyglot document should exclude the textarea
element[1]:
(because the text/html parser strips a leading newline character in
pre/textarea/listing elements), which seem like more serious issues than the
<tbody>, since (unless I'm missing something) it's impossible to safely use
these elements in polyglot documents, unless you do
   <pre><!---->
   text
   </pre>
which is a horrid hack and won't work for textarea anyway. So I think a true
polyglot subset would have to exclude the textarea element, which limits its
usefulness further. (Maybe the remaining subset is still large enough to be
worth specifying in detail.)

The second mail is from Jonas Sickling and posits that any textarea or pre that
starts with anything but whitespace would work in a polyglot document. [2]

[1] http://lists.w3.org/Archives/Public/public-html/2010Apr/0036.html
[2] http://lists.w3.org/Archives/Public/public-html/2010Apr/0037.html

-- 
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, 7 May 2010 19:37:09 UTC