W3C home > Mailing lists > Public > www-style@w3.org > February 2003

Re: : in CSS

From: Robin Berjon <robin.berjon@expway.fr>
Date: Wed, 19 Feb 2003 13:57:33 +0100
Message-ID: <3E537F3D.2030809@expway.fr>
To: www-style@w3.org
CC: Sigurd Lerstad <sigler@bredband.no>

Chris Lilley wrote:
> @namespace foo url(http://www.w3.org/2000/svg);
> foo|svg { fill: purple }
> Not that this will match all occurrences of the svg element in the SVG
> namespace regardless of whether they use s:, svg: foobar: or nothing
> as their prefix.

Just to clarify, that "Not" there is really "Note" :)

> The alternative that people might have considered trying, svg\:svg is
> bogus and harmful, because it pretends that the whole string is one
> local name and because it makes assumptions about what the namespace
> prefix is.

Note that it would be *theoretically* possible given a document conforming to 
XML 1.0 but not to the namespaces rec to have an element the name of which would 
contain a colon. In that case I guess that foo\:bar would be the right way to do 
it. I'd think however that anyone foolish enough to use such a vocabulary may be 
considered to get what they deserve if implementations fail to style it.

Robin Berjon <robin.berjon@expway.fr>
Research Engineer, Expway        http://expway.fr/
7FC0 6F5F D864 EFB8 08CE  8E74 58E6 D5DB 4889 2488
Received on Wednesday, 19 February 2003 07:58:05 UTC

This archive was generated by hypermail 2.3.1 : Monday, 2 May 2016 14:27:06 UTC