WebKit Bugzilla
New
Browse
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
RESOLVED INVALID
19282
DOM views shows multiple/duplicate <a name> anchors injected into doc
https://bugs.webkit.org/show_bug.cgi?id=19282
Summary
DOM views shows multiple/duplicate <a name> anchors injected into doc
sideshowbarker
Reported
2008-05-27 18:56:38 PDT
When I used WI to view the DOM of the
http://www.w3.org/TR/xmlschema-1/
, I find multiple/duplicate instances of <a name> 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 <a id="coss-identity-constraint" name="coss-identity-constraint"/> 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's where I as an end user am seeing the actual problem manifested.)
Attachments
Add attachment
proposed patch, testcase, etc.
Adam Roben (:aroben)
Comment 1
2008-05-27 20:27:24 PDT
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't honor self-closing tags in HTML content, so the <a> stays open and is cloned across the </h4>. If you reload the page with the Inspector open, you will see lots of errors added to the Inspector's Console about this issue. Validator.nu also reports this problem. I'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.
Note
You need to
log in
before you can comment on or make changes to this bug.
Top of Page
Format For Printing
XML
Clone This Bug