[Webkit-unassigned] [Bug 112240] New: execCommand("RemoveFormat") might remove format after the selection
bugzilla-daemon at webkit.org
bugzilla-daemon at webkit.org
Wed Mar 13 02:39:55 PDT 2013
https://bugs.webkit.org/show_bug.cgi?id=112240
Summary: execCommand("RemoveFormat") might remove format after
the selection
Product: WebKit
Version: 528+ (Nightly build)
Platform: Unspecified
OS/Version: Unspecified
Status: UNCONFIRMED
Severity: Normal
Priority: P2
Component: HTML Editing
AssignedTo: webkit-unassigned at lists.webkit.org
ReportedBy: csaavedra at igalia.com
This looks to me like a bug. If we have the following HTML:
"<q><b><div>hello world</div></b>WebKit</q>"
and we select everything from "world" until right before "WebKit", execCommand("RemoveFormat") will yield the following HTML:
"<div><q><b>hello </b></q>world</div>WebKit"
This is inconsistent with the behavior of "RemoveFormat" otherwise. Take the following too cases:
1) If we select only "world" before applying "RemoveFormat", the <q> tag is placed also around "WebKit":
"<div><q><b>hello </b></q>world</div><q>WebKit</q>"
2) If we select "world</div><q>W", then the <q> tag is placed around "ebKit" too:
"<div><q><b>hello </b></q>world</div>W<q>ebKit</q>"
--
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