W3C home > Mailing lists > Public > public-rdf-in-xhtml-tf@w3.org > September 2009

Re: I think xmlns:* shows up in element.attributes in Firefox and Safari even in xhtml+xml mode

From: Steven Pemberton <Steven.Pemberton@cwi.nl>
Date: Thu, 24 Sep 2009 14:14:19 +0200
To: "Ben Adida" <ben@adida.net>, RDFa <public-rdf-in-xhtml-tf@w3.org>
Message-ID: <op.u0rf95q9smjzpq@steven-750g>
On Thu, 24 Sep 2009 02:30:04 +0200, Ben Adida <ben@adida.net> wrote:

For Opera 10:

> - go to
> http://ben.adida.net/index.xhtml
>
> make sure you've got the right MIME type delivered application/xhtml+xml

Yep

> - invoke the GetN3 bookmarklet, which you can install here:
> http://www.w3.org/2006/07/SWD/RDFa/impl/js/
>
> see the triples? That's pretty good news.

I see:

<ben.adida.net>

unable to download N3:

<http://ben.adida.net/#me>
	<http://xmlns.com/foaf/0.1/homepage> <http://ben.adida.net/> ;
	<http://xmlns.com/foaf/0.1/name> "Ben Adida" ;
	<http://xmlns.com/foaf/0.1/mbox> <mailto:ben@adida.net> ;
	<http://xmlns.com/foaf/0.1/publications> <http://ben.adida.net/research/>  
;
	<http://xmlns.com/foaf/0.1/weblog> <http://benlog.com/> .

<http://ben.adida.net/index.xhtml#me>
	<http://xmlns.com/foaf/0.1/img> <http://ben.adida.net/ben.jpg> .

<http://ben.adida.net/index.xhtml>
	<http://creativecommons.org/ns#attributionURL> <http://ben.adida.net/> ;
	<http://creativecommons.org/ns#attributionName> "Ben Adida" ;
	<http://www.w3.org/1999/xhtml#license>  
<http://creativecommons.org/licenses/by/3.0/> .

>
> - not convinced yet? go back to
> http://ben.adida.net/index.xhtml
>
> - paste this into the URL:
> javascript:alert(document.getElementsByTagName('body')[0].attributes[0].name)
>
> Do you get a popup that says "xmlns:dc" ?

Yes

> - it gets better, it looks like it's even in the DOM function call, try
> pasting:
>
> javascript:alert(document.getElementsByTagName('body')[0].getAttribute('xmlns:dc'))

I get "Null"

> Unless I've made a weird mistake, it looks like the latest versions of
> Safari and Firefox are happy to return the xmlns:* declarations as
> normal attributes.

Great!

Steven
Received on Thursday, 24 September 2009 12:15:07 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Thursday, 24 September 2009 12:15:11 GMT