[Bug 11578] New: whitespace in pre

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

           Summary: whitespace in pre
           Product: HTML WG
           Version: unspecified
          Platform: PC
        OS/Version: Windows NT
            Status: NEW
          Severity: normal
          Priority: P2
         Component: HTML/XHTML Compatibility Authoring Guide (ed: Eliot
                    Graff)
        AssignedTo: eliotgra@microsoft.com
        ReportedBy: davidc@nag.co.uk
         QAContact: public-html-bugzilla@w3.org
                CC: mike@w3.org, public-html-wg-issue-tracking@w3.org,
                    public-html@w3.org, eliotgra@microsoft.com


6.5.1  says that pre (and textarea) should not begin with whitespace.

this seems both under-defined (whitespace is defined to be different sets of
names in xml and html5 and it isn't clear which is meant here) and over
restrictive, html5 only specifies that a single leading newline is removed.

http://www.whatwg.org/specs/web-apps/current-work/multipage/grouping-content.html#the-pre-element

So I believe for example

<pre>    xxx   </pre>

should be allowed in a polyglot document, even though it begins with spaces.

David

-- 
Configure bugmail: http://www.w3.org/Bugs/Public/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.

Received on Monday, 20 December 2010 01:13:53 UTC