Page MenuHomePhabricator

Add "name" attributes to anchors to support older browsers
Closed, DeclinedPublic

Description

Author: omniplex

Description:
JFTR, as noted on the "issues" page:

Missing name= anchors for backwards compatibility

The generated <a href="#_note-n"> links should have a name="_ref-n". 
The generated <a href="#_ref-n"> links should have a name="_note-n".

Legacy browsers have no clue what and "id" might be, they
want an equivalent "name". Where that's impossible it's a
case of "you lose", but cite apparently has the necessary
anchors to add the missing "name" for old browsers. It's
also recommended in the XHTML 1.0 standard appendix C.8.


Version: unspecified
Severity: minor
URL: http://meta.wikimedia.org/wiki/Cite/Cite.php#Current_issues

Details

Reference
bz5567

Event Timeline

bzimport raised the priority of this task from to Lowest.Nov 21 2014, 9:12 PM
bzimport added a project: Cite.
bzimport set Reference to bz5567.
bzimport added a subscriber: Unknown Object (MLST).

ayg wrote:

The id's are currently not on <a> elements. They're also used for some things, like highlighting the targeted <li> on enwiki. Probably not worth it to fix this.

ncw33 wrote:

The patch for bug 16294 can trivially fix this, since we write out anchor elements directly, allowing easy duplication of ids as names. This bug becomes a one-minute job of the patch there goes through.

Marking WONTFIX. Name has been deprecated in HTML5, and id works on 99% of browsers out there. Name back-compat was only needed for Netscape (4?), so it's not really an issue anymore.