NEW131846
Text content stripped from anchor tag on insert
https://bugs.webkit.org/show_bug.cgi?id=131846
Summary Text content stripped from anchor tag on insert
Julie Parent
Reported 2014-04-18 10:26:47 PDT
What steps will reproduce the problem? 1. On a page, have css with display:none, with a id selector, for example; #badId{ display: none; } 2. Insert an anchor tag, with text contents, and the matching id into a contentEditable region -for example document.execCommand('insertHtml', false, "<a id='badId'>Where did I go?</a>"); Result: An anchor tag is inserted, but it has no text contents. Expected Output: The "Where did I go?" text is inserted. Notes: - this happens with class selectors too, not just ids. - this happens via insertHtml, paste, or drop too See it in action at the included link
Attachments
Note You need to log in before you can comment on or make changes to this bug.