Get the new PortableApps.com Platform 10.0: Gorgeous themes, a full portable app store and advanced functionality
Announcing the World's Best Flash Drive: The PortableApps.com Companion | Did you see a malware warning on Friday?

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

lwc
Translator
(Homepage) - November 10, 2009 - 1:54pm

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.


( categories: )

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!

^ | | He's right, if your

^
|
|

He's right, if your browser doensn't know how to treat the < a name="" > tag, it's got some major issues Sticking out tongue

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

Siggys waste Bandwidth... that's why I have one.

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.

#tuna { color: silver; smell: delicious; }

lol, it's the war of the

Sticking out tongue

lol, it's the war of the Edits Sticking out tongue

Siggys waste Bandwidth... that's why I have one.