Re: [XBL] Attributes Containing Selectors

Cameron McCormack:
> >   The “xmlns” prefix is also defined to always be declared (and bound to
> >   http://www.w3.org/2000/xmlns/), but there really is no good reason to
> >   use that prefix in selectors, so authors are encouraged to avoid doing
> >   so.
> > 
> > I could imagine a reason: an binding that facilitates the inspection of
> > a DOM.  Such a binding might have processing dependent on xmlns:*
> > attributes.

Ian Hickson:
> The odds of this working reliably are pretty slim. :-) I'm not even sure 
> that xmlns:* attributes end up in the DOM.

They should end up in the DOM.  While it’s certainly not very likely
that it would useful, I don’t see why it should be discouraged.

> > Is there really a need for this note?  It is, after all, what Namespaces 
> > in XML says.
> 
> It's mentioned here because implementors may not have realised the 
> implications of what [XMLNS] says.

Ok.

> > How is case insensitive matching performed on namespace prefixes?  Does 
> > it use UAX#21 full case folding?
> 
> UAX21 was incorporated into the main Unicode text long ago. But yes, 
> Unicode case folding is what is used here. I've added a ref to Unicode 5.
> 
> 
> > For example, would a selector
> > 
> >   ß|*
> > 
> > with the following prefixes in scope
> > 
> >   xmlns:ß="http://example.org/1"
> >   xmlns:ss="http://example.org/2"
> > 
> > use the "http://example.org/2" namespace URI?
> 
> Yes.

Ok.  I think the text should specifically refer to case folding as
defined by Unicode, not just have the reference at the end of the
paragraph there.

> >   A space-separated attribute whole value is either the empty string or
> >   that consists of only U+0020, U+000A, and U+000D characters has no
> >   values.
> > 
> > s/is/that is/, if I understand the intent of the sentence correctly.
> 
> I don't understand what it would mean if you had "that is". It looks 
> correct as is to me...

I can’t parse the sentence without any changes. :)  AFAICT it’s trying
to say:

  A space-separated attribute value that
    is the empty string
    OR
    consists of only U+0020, U+000A and U+000D characters
  has no values.

-- 
Cameron McCormack, http://mcc.id.au/
 xmpp:heycam@jabber.org  ▪  ICQ 26955922  ▪  MSN cam@mcc.id.au

Received on Saturday, 13 January 2007 05:45:40 UTC