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)
Core
DOM: UI Events & Focus Handling
Tracking
()
People
(Reporter: emeyer, Assigned: joki)
References
()
Details
Attachments
(1 file)
|
521 bytes,
text/html
|
Details |
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
| Reporter | ||
Comment 4•25 years ago
|
||
Ah, I see. Apologies for the clutter.
Updated•24 years ago
|
QA Contact: madhur → rakeshmishra
Updated•7 years ago
|
Component: Event Handling → User events and focus handling
You need to log in
before you can comment on or make changes to this bug.
Description
•