Closed
Bug 441144
Opened 16 years ago
Closed 16 years ago
Direct closed Anchor tag parsed incorrectly <a />
Categories
(Firefox :: General, defect)
Tracking
()
RESOLVED
DUPLICATE
of bug 162653
People
(Reporter: gx.williamb, Unassigned)
Details
Attachments
(2 files)
User-Agent: Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10.5; nl; rv:1.9) Gecko/2008061004 Firefox/3.0
Build Identifier: Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10.5; nl; rv:1.9) Gecko/2008061004 Firefox/3.0
see steps
Reproducible: Always
Steps to Reproduce:
1. Create a html file
Put this in:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
</head>
<body>
<a name="nolink" /> This is not a link (though in the browser it will be)
<a name="nolink2"></a> This is not a link
<a name="link"> This is a link </a>
</body>
</html>
2. open the page and notice that the first item has become a link.
Actual Results:
see that (using css or firebug) the first item is linked, while it shouldn't.
thus:
first item IS a link
Expected Results:
first item should not be a link
second item should not be a link
third item should be a link
Microsoft Internet Explorer 7 has same behaviour, though I can't find any document at W3c that this should be parsed in this way.
Comment 2•16 years ago
|
||
It depends on the MIME type that the server sends with the document. The document must not be sent as text/html. If the MIME type is text/html the document is parsed by the html parser which does not handle that syntax.
This attachment works correct if it has the correct MIME type.
Updated•16 years ago
|
Status: UNCONFIRMED → RESOLVED
Closed: 16 years ago
Resolution: --- → DUPLICATE
You need to log in
before you can comment on or make changes to this bug.
Description
•