> ------------ Původní zpráva ------------
> Od: Brion Vibber <[email protected]>
> 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] http://www.w3.org/TR/html401/types.html#type-name
[2] http://www.w3.org/TR/xhtml1/#C_8
[3] http://www.w3.org/TR/2000/WD-xml-2e-20000814#NT-Nmtoken

Danny B.

_______________________________________________
Wikitech-l mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/wikitech-l

Reply via email to