Bug 88486
Summary: | [Shadow][Editing] document.execCommand('Indent') in Shadow DOM causes element breeding | ||
---|---|---|---|
Product: | WebKit | Reporter: | Shinya Kawanaka <shinyak> |
Component: | HTML Editing | Assignee: | Nobody <webkit-unassigned> |
Status: | RESOLVED INVALID | ||
Severity: | Normal | ||
Priority: | P2 | ||
Version: | 528+ (Nightly build) | ||
Hardware: | Unspecified | ||
OS: | Unspecified | ||
Bug Depends on: | |||
Bug Blocks: | 82697 |
Shinya Kawanaka
When HTML is like:
<div id="host" contenteditable></div>
If Shadow DOM for host is like:
<div>BEFORE</div>
<content></content>
<div>AFTER</div>
and do document.execCommand('Indent') in BEFORE. Then the number of AFTER element increase... Funny.
Attachments | ||
---|---|---|
Add attachment proposed patch, testcase, etc. |
Shinya Kawanaka
Some other commands also breed elements...
Shinya Kawanaka
Sorry, the repro was wrong...
But it actually removes Shadow DOM. funny.
Shinya Kawanaka
I bed this is caused by rendererIsEditable(). I'll investigate it.
Shinya Kawanaka
Hmm... I could not reproduce this...
Let me mark this as invalid for now.
If I could reproduce this, let me reopen it.