- From: Sam Ruby <rubys@intertwingly.net>
- Date: Sat, 17 Jan 2009 19:02:36 -0500
On Sat, Jan 17, 2009 at 5:51 PM, Henri Sivonen <hsivonen at iki.fi> wrote: > On Jan 17, 2009, at 22:35, Shelley Powers wrote: > >> Generally, though, RDFa is based on reusing a set of attributes already >> existing in HTML5, and adding a few more. > > Also, RDFa uses CURIEs which in turn use the XML namespace mapping context. > >> I would assume no differences in the DOM based on XHTML or HTML. > > The assumption is incorrect. > > Please compare > http://hsivonen.iki.fi/test/moz/xmlns-dom.html > and > http://hsivonen.iki.fi/test/moz/xmlns-dom.xhtml > > Same bytes, different media type. The W3C Recommendation for DOM also describes a readonly attribute on Attr named 'name'. Discuss. >> I put together a very crude demonstration of JavaScript access of a >> specific RDFa attribute, about. It's temporary, but if you go to my main web >> page,http://realtech.burningbird.net, and look in the sidebar for the click >> me text, it will traverse each div element looking for an "about" attribute, >> and then pop up an alert with the value of the attribute. I would use >> console rather than alert, but I don't believe all browsers support console, >> yet. > > This misses the point, because the inconsistency is with attributes named > xmlns:foo. There is a similar inconsistency in how xml:lang is handled. Discuss. > -- > Henri Sivonen > hsivonen at iki.fi > http://hsivonen.iki.fi/ - Sam Ruby
Received on Saturday, 17 January 2009 16:02:36 UTC