You are here

Please use "a name" and not ID for anchor (#) links

5 posts / 0 new
Last post
lwc
Offline
Last seen: 3 days 21 hours ago
Translator
Joined: 2006-04-26 06:35
Please use "a name" and not ID for anchor (#) links

Each post/comment gets an anchor link. But you only support browsers that know to treat ID like "a name". Please support the latter to support all browsers.

John T. Haller
John T. Haller's picture
Online
Last seen: 20 min 28 sec ago
AdminDeveloperModeratorTranslator
Joined: 2005-11-28 22:21
Broken Browser

Drupal (our content management system) uses IDs. IDs are 100% valid HTML as anchors and are a part of the HTML specification as such. IDs as anchors is supported by Firefox, Internet Explorer, Safari, Chrome and Opera.

If your browser doesn't support it, it's a bug and should be reported to your browser publisher.

Sometimes, the impossible can become possible, if you're awesome!

gluxon
gluxon's picture
Offline
Last seen: 4 years 8 months ago
Developer
Joined: 2008-06-21 19:26
^ | | He's right, if your

^
|
|

He's right, if your browser doensn't know how to treat the tag, it's got some major issues Blum

[Edit: Whoops, I'm stupid (misread) :P, what browser doesn't know how to handle the ID thing though?]

José Pedro Arvela
Offline
Last seen: 3 months 6 days ago
Joined: 2007-07-10 07:29
Other way around gluxon

lwc said that his browser has <a name=""> support but lacks <a id=""> support, and Drupal only uses <a id="">, and so, he was requesting the inclusion of a name attribute in the tags so he could use them. But a browser that doesn't support ids is really out of date and should be replaced by a more modern browser. Beyond that, using the id attribute is perfectly valid HTML.

EDIT: Whoops, too late, you already figured your mistake. And gluxon, lots of older browsers do, like older Netscape and older IEs.

gluxon
gluxon's picture
Offline
Last seen: 4 years 8 months ago
Developer
Joined: 2008-06-21 19:26
lol, it's the war of the

Blum

lol, it's the war of the Edits Blum

Log in or register to post comments