Closed
Bug 145687
Opened 23 years ago
Closed 23 years ago
Anchor styles incorrectly applied to named anchors
Categories
(Core :: CSS Parsing and Computation, defect)
Tracking
()
VERIFIED
INVALID
People
(Reporter: tvv, Assigned: dbaron)
Details
Attachments
(1 file, 1 obsolete file)
275 bytes,
text/html
|
Details |
(testcase is to be attached)
<A NAME="..."> constructs without closing </A> tag appear as links (i.e. inherit
link behavior from css. This bug does not appear in 0.9.8 for OS/2, neither in
0.9.9/Win
I am not specifying any URL, since it is an intranet site not accessible from
outside
Reporter | ||
Comment 1•23 years ago
|
||
news.html is the page that shows improper behavior
Comment 2•23 years ago
|
||
I see same behavior on Windows NT. Looked at latest nitely -
20-May-2002.
Comment 3•23 years ago
|
||
Confirming. This one is ugly.
Not sure how many sites it affects, but it could be a lot.
Basically, Mozilla applies anchor styles to text within a named anchor.
Attaching small testcase
Assignee: attinasi → dbaron
Status: UNCONFIRMED → NEW
Component: Layout → Style System
Ever confirmed: true
QA Contact: petersen → ian
Summary: Anchored items appear as links → Anchor styles incorrectly applied to named anchors
Comment 4•23 years ago
|
||
I have verified this on current trunk and branch builds.
Attachment #84249 -
Attachment is obsolete: true
Assignee | ||
Comment 5•23 years ago
|
||
This is not a bug. :hover is a dynamic-pseudo class and whether it matches has
nothing to do with whether an element is an anchor. See the CSS2 chapter on
Selectors.
If you think there are considerable numbers of real websites that this causes
problems on, then we could consider making our current quirk (which only applies
to "global" selectors, i.e., ":hover" rather than "a:hover") stronger. I've
actually had some suggestions recently that we should remove the quirk entirely
(which would make it easier for authors to use :hover to its full potential).
See http://www.people.fas.harvard.edu/~dbaron/css/1999/09/links for a
description of how to use :hover and :active correctly and see
http://mozilla.org/docs/web-developer/quirks/ for a description of quirks mode.
Status: NEW → RESOLVED
Closed: 23 years ago
Resolution: --- → INVALID
You need to log in
before you can comment on or make changes to this bug.
Description
•