Closed Bug 268883 Opened 20 years ago Closed 20 years ago

Gecko rendering issue wih CSS spilling out from anchor

Categories

(Firefox :: General, defect)

x86
Windows XP
defect
Not set
normal

Tracking

()

RESOLVED DUPLICATE of bug 268477

People

(Reporter: lists, Assigned: bugzilla)

References

()

Details

User-Agent:       Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.7.5) Gecko/20041107 Firefox/1.0
Build Identifier: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.7.5) Gecko/20041107 Firefox/1.0

In the example named above, there is an <a id="anchor1" />, self-closed as legal
in XML / XHTML. However, Mozilla still applies the underline to the following
text, until it meets another opening <a> tag.

Reproducible: Always
Steps to Reproduce:
1. Create XHTML as above.

Actual Results:  
The third paragraph underlines, according to the a:hover binding in CSS, and is
also blue according to the a binding to the anchor element. This behaviour
continues until the next anchor.

Expected Results:  
Totally ignored the CSS rules, as it was a self-contained anchor.
<a id="anchor1" /> is not legal unless you serve the page as application/xhtml+xml.

Since the page is served as text/html, it is parsed as HTML as the Appendix C
rules of XHTML 1 apply.

*** This bug has been marked as a duplicate of 268477 ***
Status: UNCONFIRMED → RESOLVED
Closed: 20 years ago
Resolution: --- → DUPLICATE
You need to log in before you can comment on or make changes to this bug.