Open
Bug 1147485
Opened 10 years ago
Updated 5 years ago
document.execCommand('insertOrderedList') in foreignObject generates invalid document structure
Categories
(Core :: DOM: Editor, defect, P5)
Tracking
()
UNCONFIRMED
People
(Reporter: danburzo, Unassigned)
Details
(Keywords: reproducible, testcase)
Attachments
(1 file)
|
685 bytes,
text/html
|
Details |
User Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.10; rv:36.0) Gecko/20100101 Firefox/36.0
Build ID: 20150320202338
Steps to reproduce:
I've created a test file for this.
1. Open the file in Firefox
2. Focus on the part that says " With focus here, it should not work. "
3. Press Ctrl+A to trigger a document.execCommand('insertOrderedList').
Actual results:
Visual shift. Inspecting the page with Developer Tools reveals invalid DOM (multiple SVG / foreignObject elements).
Expected results:
The text "With focus here, it should not work." should become a one-item <OL>.
(It happens correctly if the contenteditable div is not inside svg > foreignObject)
Comment 1•10 years ago
|
||
Thanks for the testcase! I see this in the Nightly build on OS X too.
Component: Untriaged → Editor
Keywords: reproducible,
testcase
Product: Firefox → Core
Version: 36 Branch → Trunk
Comment 2•5 years ago
|
||
Bulk-downgrade of unassigned, >=3 years untouched DOM/Storage bug's priority.
If you have reason to believe this is wrong, please write a comment and ni :jstutte.
Severity: normal → S4
Priority: -- → P5
You need to log in
before you can comment on or make changes to this bug.
Description
•