[Bug 13996] New: Don't wrap invisible nodes when doing inline styling

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

           Summary: Don't wrap invisible nodes when doing inline styling
           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


Reported by Tim Down by private e-mail.

E.g., if we bold

  <p>foo</p> <p>bar</p>

currently we produce

  <p><b>foo</b></p><b> </b><p><b>bar</b></p>

The extra <b> in the middle is pointless.  The user can never focus the
collapsed whitespace node, after all.  We should abort early in "force the
value" if the node is invisible, just like if the value already matches.

-- 
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 Thursday, 1 September 2011 14:58:09 UTC