https://bugzilla.wikimedia.org/show_bug.cgi?id=18838
Summary: Invalid id and name generated for Russian header element
Product: MediaWiki
Version: unspecified
Platform: All
URL: http://ru.wikifur.com/
OS/Version: All
Status: NEW
Severity: minor
Priority: Normal
Component: Page rendering
AssignedTo: [email protected]
ReportedBy: [email protected]
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).
--
Configure bugmail: https://bugzilla.wikimedia.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
You are on the CC list for the bug.
_______________________________________________
Wikibugs-l mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/wikibugs-l