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)

x86
OS/2
defect
Not set
normal

Tracking

()

VERIFIED INVALID

People

(Reporter: tvv, Assigned: dbaron)

Details

Attachments

(1 file, 1 obsolete file)

(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
news.html is the page that shows improper behavior
I see same behavior on Windows NT. Looked at latest nitely - 20-May-2002.
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
Attached file Very simple testcase
I have verified this on current trunk and branch builds.
Attachment #84249 - Attachment is obsolete: true
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
yeah -- see bug 5693 for more details
Status: RESOLVED → VERIFIED
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: