Closed
Bug 317792
Opened 20 years ago
Closed 20 years ago
Bad interpretation of an <a href='url'/> tag with CSS specified content
Categories
(Firefox :: General, defect)
Tracking
()
RESOLVED
INVALID
People
(Reporter: tyger, Unassigned)
References
()
Details
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; fr; rv:1.8) Gecko/20051107 Firefox/1.5
Build Identifier: Mozilla/5.0 (Windows; U; Windows NT 5.1; fr; rv:1.8) Gecko/20051107 Firefox/1.5
I used a <a href='url'/> with CSS adding an image content to it, the text after the link was also selected as a link.
Reproducible: Always
Steps to Reproduce:
1.make a link without a content like <a href="www.url.net"/>
2.(optionnal) add content using CSS
Actual Results:
The content after the link is considered part of the link.
Expected Results:
Understand the <a href="www.url.net"/> as a <a href="www.url.net"></a>
Comment 1•20 years ago
|
||
<a href='url'/> is not valid HTML (HTML is _not_ XML). It is recognized by the HTML parser as <a href='url'>, i.e. a start tag with a missing end tag. If you want to use XML syntax you should declare your document as XHTML instead.
This is INVALID.
Status: UNCONFIRMED → RESOLVED
Closed: 20 years ago
Resolution: --- → INVALID
You need to log in
before you can comment on or make changes to this bug.
Description
•