Bug 88486 - [Shadow][Editing] document.execCommand('Indent') in Shadow DOM causes element breeding
Summary: [Shadow][Editing] document.execCommand('Indent') in Shadow DOM causes element...
Status: RESOLVED INVALID
Alias: None
Product: WebKit
Classification: Unclassified
Component: HTML Editing (show other bugs)
Version: 528+ (Nightly build)
Hardware: Unspecified Unspecified
: P2 Normal
Assignee: Nobody
URL:
Keywords:
Depends on:
Blocks: 82697
  Show dependency treegraph
 
Reported: 2012-06-06 19:52 PDT by Shinya Kawanaka
Modified: 2012-06-26 11:12 PDT (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Shinya Kawanaka 2012-06-06 19:52:03 PDT
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.
Comment 1 Shinya Kawanaka 2012-06-06 19:54:13 PDT
Some other commands also breed elements...
Comment 2 Shinya Kawanaka 2012-06-13 19:40:43 PDT
Sorry, the repro was wrong...
But it actually removes Shadow DOM. funny.
Comment 3 Shinya Kawanaka 2012-06-25 15:40:48 PDT
I bed this is caused by rendererIsEditable(). I'll investigate it.
Comment 4 Shinya Kawanaka 2012-06-26 11:12:16 PDT
Hmm... I could not reproduce this...
Let me mark this as invalid for now.
If I could reproduce this, let me reopen it.