- From: Martin J. Duerst <duerst@w3.org>
- Date: Tue, 12 May 1998 18:29:52 +0900
- To: Ian Hickson <exxieh@bath.ac.uk>, www-html@w3.org
Hello Ian, I do not exactly remember how we ended up in the contradictory state that you describe, but your point is well taken. I have forwarded your comment to the appropriate W3C-internal lists for further consideration. In particular in connection with the WAI recommendations, it seems reasonable to allow lang on HR. Also, you might have come accross the problem that you cannot give different "lang" attributes to different attributes of the same element,... For the moment, I would suggest to somehow wrap your HR into a <DIV> on which you can put lang. In your case, the ideal way to do this would be to make two <DIV>, one for the main text and one for the part at the end containing links and metainformation. Regards, Martin. At 13:37 98/05/11 -0400, Ian Hickson wrote: > I believe this is an oversight on the part of the author(s) of the HTML4 DTD > [1]. > > The language of attribute values and content is given by the lang attribute: > >The lang attribute specifies the language of element content and > >attribute values; whether it is relevant for a given attribute > >depends on the syntax and semantics of the attribute and the > >operation involved. [2] > > The LANG attribute does not apply to HR [3], yet the TITLE [4] attribute > does. How does one specifiy the language of the title? I have started using > title's on HRs at the suggestion of the WAI [5], and in one of my bylingual > pages [6] I needed to add the following in an english section: > > <HR ID=ENDDIVIDER TITLE="Fin" lang=fr> > > nsgmls [7] with html4-s.dtd correctly complained that 'there is no attribute > lang on that element'. > > Note that lang *is* actually listed underneath the HR definition, under > "Attributes defined elsewhere". Presumably this just means that %i18n [8] > was accidentally left out from the declaration of HR in the DTD. > > What's the verdict? > > > References: > [1] HTML4 DTD can be found at: > http://www.w3.org/TR/REC-html40-971218/strict.dtd > [2] This is the paragraph following the list in section 8.1 of the HTML4 > spec. http://www.w3.org/TR/REC-html40-971218/struct/dirlang.html#h-8.1 > [3] http://www.w3.org/TR/REC-html40-971218/present/graphics.html#h-15.3 > [4] http://www.w3.org/TR/REC-html40-971218/struct/global.html#h-7.4.3 > [5] http://www.w3.org/WAI/ (?) I'm offline at the moment and it's not in my > cache :-( > [6] At the bottom of > http://www.bath.ac.uk/~exxieh/alevel/FrenchPolitics.html (the uploaded > version is still missing the lang attributes, etc). > [7] http://www.jclark.com/ > [8] http://www.w3.org/TR/REC-html40-971218/sgml/dtd.html#i18n > > -- > Ian Hickson > -----BEGIN GEEK CODE BLOCK----- > Version: 3.12 Info: www.geekcode.com > GIT/M/S d->-- s+: a--->? C++(+++)>$ U>*++++ P L+>+++++ E(+)>+++ W+++ N(+) o? > K? w@ O- !M V- PS+ PE- Y+ PGP>+ t 5+++>++++ X- R+(+++) tv b++(+++) DI++ > D++(---)>++++ G>+++ e(*)>+++++ h!()(--) !r y? > ------END GEEK CODE BLOCK------ > > > > > > >
Received on Tuesday, 12 May 1998 05:45:48 UTC