This is an archived snapshot of W3C's public bugzilla bug tracker, decommissioned in April 2019. Please see the home page for more details.
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
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.