List Info

Thread: Questions concerning namespaces module




Questions concerning namespaces module
country flaguser name
Germany
2007-04-14 10:33:26
Dear CSS WG,


please allow me two questions concerning "CSS Module:
Namespaces" [1]:

* Would "toto|A" also work without a namespace
declaration assuming that there is such an element, or would
it be ignored?

* Will the "xml" namespace become a
"default" namespace declaration meaning that you
don't need to explicitly declare it? Otherwise, could this
be (or was it) considered?


Thank you, regards,
 Jens.


[1] http://www.w3.or
g/TR/css3-namespace/

-- 
Jens Meiert
http://meiert.com/en/



Re: Questions concerning namespaces module
country flaguser name
Germany
2007-04-14 10:43:01
* Jens Meiert wrote:
>* Would "toto|A" also work without a namespace
declaration assuming that
>  there is such an element, or would it be ignored?

If you mean whether the selector 'toto|A' would match
anything if the
prefix 'toto' has not been declared, then the answer is no.

>* Will the "xml" namespace become a
"default" namespace declaration
>meaning that you don't need to explicitly declare it?
Otherwise, could
>this be (or was it) considered?

I argued in favour of doing that, but as I understand it,
this has so
far been rejected. I certainly hope Elika is counting your
vote though.
-- 
Björn Höhrmann · mailto:bjoernhoehrmann.de · http://bjoern.hoehrmann.de

Weinh. Str. 22 · Telefon: +49(0)621/4309674 · http://www.bjoernsworld.de

68309 Mannheim · PGP Pub. KeyID: 0xA4357E78 · http://www.websitedev.de/ 


Re: Questions concerning namespaces module
country flaguser name
United States
2007-04-15 15:50:31
Bjoern Hoehrmann wrote:
>> * Would "toto|A" also work without a
namespace declaration assuming that
>>  there is such an element, or would it be ignored?
> 
> If you mean whether the selector 'toto|A' would match
anything if the
> prefix 'toto' has not been declared, then the answer is
no.

I would hope that not only would that selector not match but
that the rule in 
question would be discarded altogether....

-Boris


Re: Questions concerning namespaces module
country flaguser name
United States
2007-04-15 16:27:55
Boris Zbarsky wrote:
> 
> Bjoern Hoehrmann wrote:
>>> * Would "toto|A" also work without a
namespace declaration assuming that
>>>  there is such an element, or would it be
ignored?
>>
>> If you mean whether the selector 'toto|A' would
match anything if the
>> prefix 'toto' has not been declared, then the
answer is no.
> 
> I would hope that not only would that selector not
match but that the 
> rule in question would be discarded altogether....

Yep. The Selectors spec defines this:

http://
www.w3.org/TR/css3-selectors/#typenmsp

   # A type selector containing a namespace prefix that has
not been
   # previously declared is an invalid_ selector.
   #
   # .. _invalid: http
://www.w3.org/TR/css3-selectors/#Conformance

CSS3 Namespaces can't define this (because it requires some
knowledge of
the context in which a qname is used), but makes a
recommendation that
any modules referencing it make an equivalent statement:

http:
//www.w3.org/TR/css3-namespace/#css-qnames

   # Those modules should define the use of a namespace
prefix that has
   # not been properly declared as a parsing error that will
cause the
   # selector or declaration (etc.) to be considered invalid
and ignored.

~fantasai


[1-4]

about | contact  Other archives ( Real Estate discussion Medical topics )