Last modified: 2009-05-18 17:57:00 UTC

Wikimedia Bugzilla is closed!

Wikimedia migrated from Bugzilla to Phabricator. Bug reports are handled in Wikimedia Phabricator.
This static website is read-only and for historical purposes. It is not possible to log in and except for displaying bug reports and their history, links might be broken. See T20838, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 18838 - Invalid id and name generated for Russian header element
Invalid id and name generated for Russian header element
Status: RESOLVED DUPLICATE of bug 9530
Product: MediaWiki
Classification: Unclassified
Parser (Other open bugs)
unspecified
All All
: Normal minor (vote)
: ---
Assigned To: Nobody - You can work on this!
http://ru.wikifur.com/
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2009-05-18 17:48 UTC by Laurence 'GreenReaper' Parry
Modified: 2009-05-18 17:57 UTC (History)
1 user (show)

See Also:
Web browser: ---
Mobile Platform: ---
Assignee Huggle Beta Tester: ---


Attachments

Description Laurence 'GreenReaper' Parry 2009-05-18 17:48:46 UTC
Some pages with MediaWiki-rendered headers fail to validate using the W3C validator service, because the names and IDs created are invalid. For example:
<a name=".D0.A1.D1.82.D0.B0.D1.82.D1.8C.D0.B8" id=".D0.A1.D1.82.D0.B0.D1.82.D1.8C.D0.B8"></a><h2> <span class="mw-headline"> Статьи </span></h2>

These generated attributes are not even correct in HTML, which specifies that:
'ID and NAME tokens must begin with a letter ([A-Za-z]) and may be followed by any number of letters, digits ([0-9]), hyphens ("-"), underscores ("_"), colons (":"), and periods (".").'
http://www.w3.org/TR/html401/types.html#type-id

One possible solution is to add a standard letter prefix to headers when the first character is outside the range [A-Za-z]. Stripping the first "." is not a solution, as hexadecimal number strings may start with a decimal number (e.g. "82" in the above string).
Comment 1 Roan Kattouw 2009-05-18 17:57:00 UTC

*** This bug has been marked as a duplicate of bug 9530 ***

Note You need to log in before you can comment on or make changes to this bug.


Navigation
Links