This is an archived snapshot of W3C's public bugzilla bug tracker, decommissioned in April 2019. Please see the home page for more details.

Bug 9684 - textarea and pre elements in polyglot document
Summary: textarea and pre elements in polyglot document
Status: RESOLVED FIXED
Alias: None
Product: HTML WG
Classification: Unclassified
Component: pre-LC1 HTML/XHTML Compat. Authoring Guide (ed: Eliot Graff) (show other bugs)
Version: unspecified
Hardware: PC Windows NT
: P2 normal
Target Milestone: FPWD
Assignee: Eliot Graff
QA Contact: HTML WG Bugzilla archive list
URL: http://dev.w3.org/html5/html-xhtml-au...
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-05-07 19:37 UTC by Eliot Graff
Modified: 2010-10-05 13:07 UTC (History)
4 users (show)

See Also:


Attachments

Description Eliot Graff 2010-05-07 19:37:07 UTC
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
Comment 1 Eliot Graff 2010-09-04 00:30:13 UTC
Added sections 6.4 and 6.4.1 to ED:


6.4 Elements with Special Considerations
The following elements or their considerations require exceptions to the general rules for polyglot markup.

6.4.1 White Space in <textarea> and <pre> Elements
Within polyglot markup, the text within either a <textarea> or <pre> element must not begin with white space.