<?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>14009</bug_id>
          
          <creation_ts>2011-09-02 22:03:03 +0000</creation_ts>
          <short_desc>Consider treating linebreaks in &lt;pre&gt; specially for formatBlock etc.</short_desc>
          <delta_ts>2015-07-30 23:47:08 +0000</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>1</classification_id>
          <classification>Unclassified</classification>
          <product>WebAppsWG</product>
          <component>HISTORICAL - HTML Editing APIs</component>
          <version>unspecified</version>
          <rep_platform>PC</rep_platform>
          <op_sys>Linux</op_sys>
          <bug_status>NEW</bug_status>
          <resolution></resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>P2</priority>
          <bug_severity>enhancement</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Aryeh Gregor">ayg</reporter>
          <assigned_to name="Aryeh Gregor">ayg</assigned_to>
          <cc>mike</cc>
    
    <cc>public-webapps</cc>
          <deadline>2015-07-30</deadline>
          <qa_contact name="HTML Editing APIs spec bugbot">sideshowbarker+html-editing-api</qa_contact>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>56224</commentid>
    <comment_count>0</comment_count>
    <who name="Aryeh Gregor">ayg</who>
    <bug_when>2011-09-02 22:03:03 +0000</bug_when>
    <thetext>Consider this formatBlock testcase:

  [&apos;&lt;p&gt;&apos;, &apos;{&lt;pre&gt;&amp;#10;foo&amp;#10;&amp;#10;bar&amp;#10;&lt;/pre&gt;}&apos;],

Chrome 15 dev produces

 &lt;p&gt;&amp;#10;foo&lt;br&gt;&amp;#10;bar&lt;/p&gt;

while the spec, IE9, and Firefox 8.0a2 produce

  &lt;p&gt;{foo&amp;#10;bar&amp;#10;&amp;#10;}&lt;/p&gt;

Opera 11.50 is similar to IE/Firefox.  Should we special-case this the way WebKit does, or not?  WebKit probably better matches user expectations, but it might be annoying to handle.  If we do special-case it, we likely want to just replace all the newlines by &lt;br&gt; right before any time when we might plausibly change the tag name.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>