W3C home > Mailing lists > Public > www-international@w3.org > July to September 2005

Re: Updated tutorial: Using language information in XHTML, HTML and CSS

From: Frank Yung-Fong Tang <ytang0648@aol.com>
Date: Tue, 2 Aug 2005 11:17:13 -0400
To: "Richard Ishida" <ishida@w3.org>
cc: www-international@w3.org
Message-ID: <42EF8E79.1040707@aol.com>

Dear Richard:

After I look carefully about your material. I have to disagree with your 
statement in slide 7
Using [lang |= "..."]

This is a nonspecialized selector that works the same way as :lang(), [...].

As my understanding the :lang() consider the inheritance but [lang|=""] 
and [lang=""] not

For example

<p lang="en">
<form lang="fr">
<input name="a1">text</input>

so input:lang(fr) will match the text
but the following
should not match the text because the input itself does not have a lang 
attribute, only one of it's ascendent has one.

I use the test suite I hack together in 2000 (see the 
selectors/selectorstesting.xml in 
http://people.netscape.com/ftang/paper/unicode18/demo.zip )

and it looks like FireFox/Mozilla pass all the test now (in 2000, 
Mozilla does not pass the :lang() test)

Richard Ishida wrote on 8/2/2005, 5:06 AM:

 > The GEO Working Group has made substantive changes to the following
 > tutorial:
 >     Using language information in XHTML, HTML and CSS
 >     http://www.w3.org/International/tutorials/tutorial-lang/
 > Information about declaration of language has been removed to a
 > separate tutorial, Declaring Language in XHTML and HTML (Draft)[1].
 > This tutorial now focuses on uses of language information in documents.
 > The tutorial has also been adapted to the latest format for tutorials,
 > and, thanks to Pasquale Popolizio, the Italian translation has been
 > revised to support the changes. (This is the first translation of a
 > tutorial in this format.)
 > You can find various news filters and RSS feeds relating to outputs of
 > the Internationalization Activity at
 > http://www.w3.org/International/log/description
 > [1] http://www.w3.org/International/tutorials/language-decl/
 > ============
 > Richard Ishida
 > W3C
 > contact info:
 > http://www.w3.org/People/Ishida/
 > W3C Internationalization:
 > http://www.w3.org/International/
 > Publication blog:
 > http://people.w3.org/rishida/blog/
Received on Tuesday, 2 August 2005 15:17:24 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Tuesday, 2 June 2009 19:17:05 GMT