Thanks Nick.

Also I have tried IE8 and concluded that what si "recommended" in
http://www.w3.org/TR/css3-selectors/#typenmsp
also does not work in IE8.

So "dbj|root" we can forget about. At least for now.

I am deliberately using namespaces xml element so that I can have
cross browser storage in my pages. So far so good. This works :

// IE8
$('#dbj_metadata').remove();
$("head").prepend("<dbj:root xmlns=dbj:'dbj.org.schema'
id='dbj_metadata' ></dbj:root>")
$("#dbj_metadata")[0].outerHTML
/*
<?xml:namespace prefix = dbj /><dbj:root id=dbj_metadata
xmlns="dbj:'dbj.org.schema'"></dbj:root>
*/

I can select using ID. And yes outerHTLM is interesting ;o)

Styling namespaced xml elements in (X)HTML pages is a very moot point.
As far as I can see the only sure (and important) and common thing is
they are invisible. Therefore ideal for little metadata side storage.

I have no looked into how jQ does this for implementing data() method.
I just know it is storing 'data# somewhere in the page (not on the
element) ..

-- DBJ


On Apr 16, 11:31 am, "Nick Fitzsimons" <n...@nickfitz.co.uk> wrote:
> On Thu, April 16, 2009 11:17 am, Nick Fitzsimons wrote:
> > jQuery selectors are not namespace-aware, so they only use
> > getElementsByTagName (rather than getElementsByTagNameNS) to retrieve
> > elements by their nodeName attribute (rather than by localName and
> > namespaceURI).
>
> Before anybody else picks up on my "deliberate mistake" up there, I know
> that nodeName is a property, not an attribute ;-)
> --
> Nick Fitzsimonshttp://www.nickfitz.co.uk/
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"jQuery Development" group.
To post to this group, send email to jquery-dev@googlegroups.com
To unsubscribe from this group, send email to 
jquery-dev+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/jquery-dev?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to