Closed Bug 148129 Opened 23 years ago Closed 23 years ago

name anchors activate hover properties

Categories

(SeaMonkey :: UI Design, defect)

x86
Windows 98
defect
Not set
normal

Tracking

(Not tracked)

VERIFIED DUPLICATE of bug 143676

People

(Reporter: ve3ll, Assigned: samir_bugzilla)

References

()

Details

From Bugzilla Helper: User-Agent: Mozilla/5.0 (Windows; U; Win98; en-US; rv:1.0rc3) Gecko/20020523 BuildID: 2002052306 to maintain backwards compatibility i still use name anchors! so instead of a simple <h1 id="foo">Foo Bar</h1> i include the name anchor <h1 id="foo"><a name="foo>Foo Bar</a></h1> in the lastest rc3 and net 7 this is recognized by hover and lights in red according to my styling for hover. Link anchors should respond but NAME anchors SHOULD NOT. I guess i could change to <h1 id="foo"><a name="foo></a>Foo Bar</h1> or <a name="foo></a><h1 id="foo">Foo Bar</h1> but entails touching 100 files and many links. Why not fix this! Up to a month or so ago this was working correctly in geeko .... other browsers like msie and opera get it right ! Reproducible: Always Steps to Reproduce: 1.go to the test site 2.hover on the first heading 3.watch it go red .... even though it isnt hyperlink Actual Results: text color changes indicating hyperlink Expected Results: no color change as it isnt hyperlink !!! worked up to about a month ago.
You realize that ':hover' may apply to any element, right? http://www.w3.org/TR/REC-CSS2/selector.html#x33
"John Russell" <ve3ll@rac.ca> noted (in email) the CSS rule 'a[href]:hover' can be used to restrict the hover style only to links, while leaving the general purpose meaning of :hover available for other applications. marking invalid (i.e., not a bug).
Status: UNCONFIRMED → RESOLVED
Closed: 23 years ago
Resolution: --- → INVALID
Also, a:link:hover can be used. See http://www.people.fas.harvard.edu/~dbaron/css/1999/09/links for a summary of how link styles work.
This is a dup, reopening from invalid.
Status: RESOLVED → UNCONFIRMED
Resolution: INVALID → ---
*** This bug has been marked as a duplicate of 143676 ***
Status: UNCONFIRMED → RESOLVED
Closed: 23 years ago23 years ago
Resolution: --- → DUPLICATE
vrfy
Status: RESOLVED → VERIFIED
Product: Core → Mozilla Application Suite
You need to log in before you can comment on or make changes to this bug.