[Webkit-unassigned] [Bug 111580] New: execCommand("justifycenter") will remove classes and data- attributes, and use the elements computed style as an inline style
bugzilla-daemon at webkit.org
bugzilla-daemon at webkit.org
Wed Mar 6 07:39:08 PST 2013
https://bugs.webkit.org/show_bug.cgi?id=111580
Summary: execCommand("justifycenter") will remove classes and
data- attributes, and use the elements computed style
as an inline style
Product: WebKit
Version: 528+ (Nightly build)
Platform: PC
URL: http://jsfiddle.net/tomprogramming/mV9E4/
OS/Version: Windows 7
Status: UNCONFIRMED
Severity: Major
Priority: P2
Component: HTML Editing
AssignedTo: webkit-unassigned at lists.webkit.org
ReportedBy: tomprogramming at gmail.com
This is an issue with commandidentifiers justifycenter, justifyleft (when the content is not by default left-justified), justifyright, justifyfull, insertorderedlist, and insertunorderedlist
Repro: http://jsfiddle.net/tomprogramming/mV9E4/
If you make a selection containing the first line (level1) and apply "justifycenter" to it, the class of level1 goes away, along with any data- attributes on the element, and the computed style of the element is inlined in the style attribute.
If an element is already wrapped inside a <div> tag, this does not occur, but the first element inside a contenteditable tag seems to never be wrapped in a div. If you delete everything in the editable box and start typing, the tags that appear (if any) is just either a text node, or a <span>.
--
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