[Bug 14009] New: Consider treating linebreaks in <pre> specially for formatBlock etc.


           Summary: Consider treating linebreaks in <pre> specially for
                    formatBlock etc.
           Product: WebAppsWG
           Version: unspecified
          Platform: All
        OS/Version: All
            Status: NEW
          Severity: enhancement
          Priority: P2
         Component: HTML Editing APIs
        AssignedTo: ayg@aryeh.name
        ReportedBy: ayg@aryeh.name
         QAContact: sideshowbarker+html-editing-api@gmail.com
                CC: mike@w3.org, public-webapps@w3.org

Consider this formatBlock testcase:

  ['<p>', '{<pre>&#10;foo&#10;&#10;bar&#10;</pre>}'],

Chrome 15 dev produces


while the spec, IE9, and Firefox 8.0a2 produce


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 <br> right before any time when we might plausibly
change the tag name.

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 Friday, 2 September 2011 22:03:09 UTC