<?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>19282</bug_id>
          
          <creation_ts>2008-05-27 18:56:38 -0700</creation_ts>
          <short_desc>DOM views shows multiple/duplicate &lt;a name&gt; anchors injected into doc</short_desc>
          <delta_ts>2008-05-27 20:45:35 -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>Web Inspector (Deprecated)</component>
          <version>528+ (Nightly build)</version>
          <rep_platform>Mac (Intel)</rep_platform>
          <op_sys>OS X 10.5</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>INVALID</resolution>
          
          
          <bug_file_loc>http://www.w3.org/TR/xmlschema-1/</bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>P2</priority>
          <bug_severity>Normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>0</everconfirmed>
          <reporter name="sideshowbarker">mike</reporter>
          <assigned_to name="Nobody">webkit-unassigned</assigned_to>
          <cc>aroben</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>81676</commentid>
    <comment_count>0</comment_count>
    <who name="sideshowbarker">mike</who>
    <bug_when>2008-05-27 18:56:38 -0700</bug_when>
    <thetext>When I used WI to view the DOM of the http://www.w3.org/TR/xmlschema-1/ , I find multiple/duplicate instances of &lt;a name&gt; anshors in the DOM that are not in the source; screenshot here:

http://www.w3.org/2008/05/dup-a-name.png

The source actually has only one &lt;a id=&quot;coss-identity-constraint&quot; name=&quot;coss-identity-constraint&quot;/&gt; instance in it.

I recognize that this may relate in part to the fact that the page is an XHTML/XML page that uses XML empty-tag syntax, but is being served as text/html.

(I also recognize that this may be an HTML DOM issue and not a WI issue, but filing it as a WI issue for now because that&apos;s where I as an end user am seeing the actual problem manifested.)</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>81687</commentid>
    <comment_count>1</comment_count>
    <who name="Adam Roben (:aroben)">aroben</who>
    <bug_when>2008-05-27 20:27:24 -0700</bug_when>
    <thetext>This looks to be a bug in the page itself. As you say, it is being served as text/html, and so is being interpreted as HTML. WebKit doesn&apos;t honor self-closing tags in HTML content, so the &lt;a&gt; stays open and is cloned across the &lt;/h4&gt;.

If you reload the page with the Inspector open, you will see lots of errors added to the Inspector&apos;s Console about this issue. Validator.nu also reports this problem.

I&apos;m going to mark this bug INVALID since WebKit seems to be doing its job correctly. Please reopen if you think WebKit is at fault here.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>