Closed Bug 395413 Opened 17 years ago Closed 17 years ago

With the Dusk skin, text enclosed in <a name=""></a> is displayed in blue

Categories

(Bugzilla :: User Interface, defect)

3.1.1
defect
Not set
normal

Tracking

()

RESOLVED FIXED
Bugzilla 3.2

People

(Reporter: LpSolit, Assigned: Wurblzap)

Details

Attachments

(1 file, 1 obsolete file)

Many places use <a name="foo">some text</a> to easily point to some portion of a page. But the Dusk skin displays all these strings in blue, as if they were real links. That's confusing and not really nice from a visual point of view. So we should only display text in blue if it's really a link. No idea how to do that in CSS (at least not from the top of my head).
You have to make your links <a name="something"></a>Text. You can't enclose the text in the anchor. This is a well-known issue that only shows up in Firefox.
(In reply to comment #1)
> You have to make your links <a name="something"></a>Text. You can't enclose the
> text in the anchor.

Of course you can, and is even recommended by the spec:
http://www.w3.org/TR/html4/struct/links.html#h-12.2

They even explicitly say that: "User agents should be able to find anchors created by empty A elements, but some fail to do so."
Attached patch patch, v1 (obsolete) — Splinter Review
I use this trick for years on a website I'm managing.
Assignee: ui → LpSolit
Status: NEW → ASSIGNED
Attachment #280162 - Flags: review?(wurblzap)
Comment on attachment 280162 [details] [diff] [review]
patch, v1

The underline on hover is removed on IE7, but it's still blue there. We may need some entries in IE-fixes.css.

It works on Firefox, so I'm willing to make this r+ if we agree to fix IE separately.
Attachment #280162 - Flags: review?(wurblzap) → review-
Marc, can you help with IE7? I have Linux and Windows 2000, so I cannot install IE7.
Attached patch Patch 2Splinter Review
Taking bug as agreed on IRC.

Here's a patch which works on both IE7 and FF2. Frédéric, can you please test it on IE6?

On a side note, I'd like to understand why it's necessary to mention a:link:hover near the beginning of the patch. I'd've thought that this is covered by a:link, but it apparently isn't.
Assignee: LpSolit → wurblzap
Attachment #280162 - Attachment is obsolete: true
Attachment #280245 - Flags: review?(LpSolit)
Comment on attachment 280245 [details] [diff] [review]
Patch 2

Tested successfully with Firefox 2.0.0.6 (Windows 2000 + Linux), Opera 9.23 (Linux), IE6 SP1 (Windows 2000) and Konqueror 3.5.6 (Linux). r=LpSolit
Attachment #280245 - Flags: review?(LpSolit) → review+
Flags: approval+
Checking in skins/contrib/Dusk/global.css;
/cvsroot/mozilla/webtools/bugzilla/skins/contrib/Dusk/global.css,v  <--  global.css
new revision: 1.2; previous revision: 1.1
done
Status: ASSIGNED → RESOLVED
Closed: 17 years ago
Resolution: --- → FIXED
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: