[Webkit-unassigned] [Bug 61822] New: Running execCommand with "Bold" twice does not remove <b> elements if selection spans block elements with a whitespace text node in between
bugzilla-daemon at webkit.org
bugzilla-daemon at webkit.org
Tue May 31 17:13:39 PDT 2011
https://bugs.webkit.org/show_bug.cgi?id=61822
Summary: Running execCommand with "Bold" twice does not remove
<b> elements if selection spans block elements with a
whitespace text node in between
Product: WebKit
Version: 528+ (Nightly build)
Platform: PC
OS/Version: Windows XP
Status: UNCONFIRMED
Severity: Normal
Priority: P2
Component: HTML Editing
AssignedTo: webkit-unassigned at lists.webkit.org
ReportedBy: timdown at gmail.com
Created an attachment (id=95515)
--> (https://bugs.webkit.org/attachment.cgi?id=95515&action=review)
Test case
Running document.execCommand("Bold", false, null) on the following selected HTML
<p>1</p>
<p>2</p>
... mutates that HTML into
<p><b>1</b></p>
<p><b>2</b></p>
Running the same command has no effect. However, running the same command on
<p>1</p><p>2</p>
... mutates that HTML into
<p><b>1</b></p><p><b>2</b></p>
... and running the command again returns the HTML to its original state. This suggest one possible cause is that the code mutating the HTML is ignoring the whitespace text node while the code for checking whether the selection is already bold is not ignoring the whitespace text node.
--
Configure bugmail: https://bugs.webkit.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
More information about the webkit-unassigned
mailing list