<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "https://bugs.webkit.org/page.cgi?id=bugzilla.dtd">

<bugzilla version="5.0.4.1"
          urlbase="https://bugs.webkit.org/"
          
          maintainer="admin@webkit.org"
>

    <bug>
          <bug_id>131846</bug_id>
          
          <creation_ts>2014-04-18 10:26:47 -0700</creation_ts>
          <short_desc>Text content stripped from anchor tag on insert</short_desc>
          <delta_ts>2014-04-18 12:33:23 -0700</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>1</classification_id>
          <classification>Unclassified</classification>
          <product>WebKit</product>
          <component>HTML Editing</component>
          <version>528+ (Nightly build)</version>
          <rep_platform>Unspecified</rep_platform>
          <op_sys>Unspecified</op_sys>
          <bug_status>NEW</bug_status>
          <resolution></resolution>
          
          
          <bug_file_loc>http://plexode.com/eval3/#s=aekVQXANJVQMbAx14Hz1PBENCRSpFXJgBeRsBT1BPRhyYXpgfHRCWmJgdcgFKRR4IREYIAUSnVUZPVSZFSlVCQ01GHypPVEZTVQFJ0Uavch8DDQNLkZNhREUBHgFwD24JurwKqk/iD0dQRFZUCe2YEBABztDSAJCAJNJRPJgNAJYY5JALBLLTghUW5Gg8JKsLTbjW6Yc5GLJGIgkKBOJxCJ5FdUQaJVFJVJxNBEHI5CJrQg49SkBW65jCeBAfHDVKZGALGcYqAJIKAgV5CS4DfBPfQBGpTLS2acVhclKEWaK2IsHJpQKEGXzAYUPKkMoJGAUbB8dj8hkclk4IlLSlkumABmU0iYBm4dnK4BFcoM9D4jKzTo5II0PZ8qIxFAVMp1QfL7IjVIhMtdDX7DtBUTBhjDkczodU8IoIzJPJRHAIJAUYB+cJRNIovKBFIxUB7LJ5IiwKAKgJ4BgDLaTqE5C3UH1BJIVqUy+JO6ItCJ+vdxebYDKBLJKSAYR8XkJfn9LcXZZ9oDLwAA==</bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>P2</priority>
          <bug_severity>Normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Julie Parent">jparent</reporter>
          <assigned_to name="Nobody">webkit-unassigned</assigned_to>
          <cc>rniwa</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>1001942</commentid>
    <comment_count>0</comment_count>
    <who name="Julie Parent">jparent</who>
    <bug_when>2014-04-18 10:26:47 -0700</bug_when>
    <thetext>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(&apos;insertHtml&apos;, false, &quot;&lt;a id=&apos;badId&apos;&gt;Where did I go?&lt;/a&gt;&quot;);

Result: An anchor tag is inserted, but it has no text contents.
Expected Output: The &quot;Where did I go?&quot; 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</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>