Closed Bug 304111 Opened 19 years ago Closed 19 years ago

Pseudo-class style is applied to target anchor

Categories

(Firefox :: General, defect)

x86
Windows XP
defect
Not set
normal

Tracking

()

RESOLVED DUPLICATE of bug 54318

People

(Reporter: bugzzilla, Unassigned)

Details

User-Agent:       Mozilla/5.0 (Windows; U; Windows NT 5.1; de-DE; rv:1.7.10) Gecko/20050717 Firefox/1.0.6
Build Identifier: Mozilla/5.0 (Windows; U; Windows NT 5.1; de-DE; rv:1.7.10) Gecko/20050717 Firefox/1.0.6

Pseudo-class styles for A tags are applied to link targets (<a name=...>).
However, the CSS standard specifies that these styles only affect the link (<a
href=...>).

Example:

<html>
<head>
<style type="text/css">
A:hover { font-weight: bold; }
</style>
</head>
<body>
<a href="#test">This is the link</a>
<p>
<a name="test">This is the link target</a>
</body>
</html>

If you hover over the link target, it's displayed in boldface. This should only
happen when hovering over the link.

Reproducible: Always

Steps to Reproduce:
See http://dbaron.org/css/1999/09/links

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