------------ Původní zpráva ------------
Od: Brion Vibber <brion(a)wikimedia.org>
Předmět: Re: [Wikitech-l] Anchors haven't id attribute
Datum: 23.12.2008 18:46:40
----------------------------------------
On 12/22/08 9:41 AM, Brion Vibber wrote:
On 12/22/08 3:47 AM, Ilmari Karonen wrote:
Done in r44896.
Yay!
*cough* don't forget to update the parser test cases *cough* :)
21 previously passing test(s) now FAILING! :(
21 previously failing test(s) now PASSING! :)
whee :D
-- brion
I have reverted both revisions in r45021 and r45022 because it caused massive invalidity
of pages.
The id attribute in XHTML is defined as /[A-Za-z][A-Za-z0-9:_.-]*/ [1][2]- and that's
exactly why we use <a name="..."> in cases where the following <h#>
tag doesn't have id because of these restrictions. The name attribute is of NMTOKEN
[3] thus allows to begin with non-alpha character.
[1]