<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "https://www.w3.org/Bugs/Public/page.cgi?id=bugzilla.dtd">

<bugzilla version="5.0.4"
          urlbase="https://www.w3.org/Bugs/Public/"
          
          maintainer="sysbot+bugzilla@w3.org"
>

    <bug>
          <bug_id>11578</bug_id>
          
          <creation_ts>2010-12-20 01:13:45 +0000</creation_ts>
          <short_desc>whitespace in pre</short_desc>
          <delta_ts>2011-08-04 05:07:12 +0000</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>1</classification_id>
          <classification>Unclassified</classification>
          <product>HTML WG</product>
          <component>LC1 HTML/XHTML Compatibility Authoring Guide (ed: Eliot Graff)</component>
          <version>unspecified</version>
          <rep_platform>PC</rep_platform>
          <op_sys>Windows NT</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>FIXED</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>P2</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="David Carlisle">davidc</reporter>
          <assigned_to name="Eliot Graff">eliotgra</assigned_to>
          <cc>eliotgra</cc>
    
    <cc>mike</cc>
    
    <cc>public-html-admin</cc>
    
    <cc>public-html-wg-issue-tracking</cc>
          
          <qa_contact name="HTML WG Bugzilla archive list">public-html-bugzilla</qa_contact>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>43469</commentid>
    <comment_count>0</comment_count>
    <who name="David Carlisle">davidc</who>
    <bug_when>2010-12-20 01:13:45 +0000</bug_when>
    <thetext>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&apos;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

&lt;pre&gt;    xxx   &lt;/pre&gt;

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

David</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>43831</commentid>
    <comment_count>1</comment_count>
    <who name="Eliot Graff">eliotgra</who>
    <bug_when>2011-01-05 21:59:59 +0000</bug_when>
    <thetext>Hi David.

In the editor&apos;s draft, dated 5 January, section 6.5.1 now says the following:

6.5.1 Newlines in &lt;textarea&gt; and &lt;pre&gt; Elements
When polyglot markup uses either a &lt;textarea&gt; or &lt;pre&gt; element, the text within the element does not begin with a newline. 

I believe this satisfies what this bug requested. If there&apos;s additional information about whitespace that needs to be inserted, please let me know.

Thanks,

Eliot</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>53109</commentid>
    <comment_count>2</comment_count>
    <who name="Michael[tm] Smith">mike</who>
    <bug_when>2011-08-04 05:06:48 +0000</bug_when>
    <thetext>mass-move component to LC1</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>53160</commentid>
    <comment_count>3</comment_count>
    <who name="Michael[tm] Smith">mike</who>
    <bug_when>2011-08-04 05:07:12 +0000</bug_when>
    <thetext>mass-move component to LC1</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>