- From: L. David Baron <dbaron@dbaron.org>
- Date: Wed, 10 Dec 2014 23:14:54 -0800
- To: www-style@w3.org
- Message-ID: <20141211071454.GA6681@crum.dbaron.org>
On Wednesday 2014-12-10 09:28 -0800, fantasai wrote:
> On 12/10/2014 08:41 AM, Tab Atkins Jr. wrote:
> >As it stands, you can still write *-1996 in :lang() by escaping the
> >dash, like `:lang(*\-1996)` - that turns it into an asterisk followed
> >by an identifier. This, of course, isn't great. I think we assumed
> >that language tags weren't ever composed of just numbers. We should
> >probably allow a string in :lang() as well, for when tokenization
> >doesn't work well for the given language tag.
>
> To the extent that we allow escaped asterisks here, you can also
> handle this issue via :lang(\*-1996), since that will also parse
> as an identifier.
I believe one of the things discussed in today's teleconference, and
one that I support, was to add to the syntax for :lang() by allowing
a string to be the argument, so that :lang("*-1996") can be used.
(It's then worth considering exactly which non-identifier cases
should be allowed, and which should require escaping or being
written as strings.)
-David
--
𝄞 L. David Baron http://dbaron.org/ 𝄂
𝄢 Mozilla https://www.mozilla.org/ 𝄂
Before I built a wall I'd ask to know
What I was walling in or walling out,
And to whom I was like to give offense.
- Robert Frost, Mending Wall (1914)
Received on Thursday, 11 December 2014 07:15:20 UTC