[Webkit-unassigned] [Bug 131846] New: Text content stripped from anchor tag on insert
bugzilla-daemon at webkit.org
bugzilla-daemon at webkit.org
Fri Apr 18 10:26:26 PDT 2014
https://bugs.webkit.org/show_bug.cgi?id=131846
Summary: Text content stripped from anchor tag on insert
Product: WebKit
Version: 528+ (Nightly build)
Platform: Unspecified
URL: http://plexode.com/eval3/#s=aekVQXANJVQMbAx14Hz1PBENCR
SpFXJgBeRsBT1BPRhyYXpgfHRCWmJgdcgFKRR4IREYIAUSnVUZPVSZ
FSlVCQ01GHypPVEZTVQFJ0Uavch8DDQNLkZNhREUBHgFwD24JurwKq
k/iD0dQRFZUCe2YEBABztDSAJCAJNJRPJgNAJYY5JALBLLTghUW5Gg
8JKsLTbjW6Yc5GLJGIgkKBOJxCJ5FdUQaJVFJVJxNBEHI5CJrQg49S
kBW65jCeBAfHDVKZGALGcYqAJIKAgV5CS4DfBPfQBGpTLS2acVhclK
EWaK2IsHJpQKEGXzAYUPKkMoJGAUbB8dj8hkclk4IlLSlkumABmU0i
YBm4dnK4BFcoM9D4jKzTo5II0PZ8qIxFAVMp1QfL7IjVIhMtdDX7Dt
BUTBhjDkczodU8IoIzJPJRHAIJAUYB+cJRNIovKBFIxUB7LJ5IiwKA
KgJ4BgDLaTqE5C3UH1BJIVqUy+JO6ItCJ+vdxebYDKBLJKSAYR8XkJ
fn9LcXZZ9oDLwAA==
OS/Version: Unspecified
Status: NEW
Severity: Normal
Priority: P2
Component: HTML Editing
AssignedTo: webkit-unassigned at lists.webkit.org
ReportedBy: jparent at google.com
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
--
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