Closed Bug 96437 Opened 25 years ago Closed 25 years ago

:link styles are incorrectly applied to visited hyperlinks

Categories

(Core :: DOM: UI Events & Focus Handling, defect)

defect
Not set
normal

Tracking

()

VERIFIED DUPLICATE of bug 12493

People

(Reporter: emeyer, Assigned: joki)

References

()

Details

Attachments

(1 file)

In a document where there are 'a:link' styles defined but not 'a:visited' styles, the ':link' styles are applied to all links, visited or unvisited. This is incorrect behavior according to section 5.22.1 of CSS2, which states that "the :link pseudo-class applies for links that have not yet been visited." It goes on to state that the :link and :visited states are mutually exclusive. See http://www.w3.org/TR/REC-CSS2/selector.html#x27 for details. To test Mozilla's behavior go to http://www.meyerweb.com/eric/css/tests/pseudo-link-test2.html, click on a link, and then go back. The visited link should no longer be big, bold, italic, and red, but should instead be whatever styles are set for the browser to represent visited links-- in my case that was purple unitalicized text of normal size and weight. (Thanks to John Woram, who sent me the test file I've referenced here.)
What happens if the URLs have a / at the end? I think we have some URL-identity problems with history, and this is a duplicate.
Marking duplicate of obscurely titled longstanding bug. *** This bug has been marked as a duplicate of 12493 ***
Status: NEW → RESOLVED
Closed: 25 years ago
Resolution: --- → DUPLICATE
Ah, I see. Apologies for the clutter.
QA Contact: madhur → rakeshmishra
VERIFIED DUPLICATE
Status: RESOLVED → VERIFIED
Component: Event Handling → User events and focus handling
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: