Web DOM Core

A new version of DOM Core as an alternative to DOM Level 3 Core mostly for  
web browsers has been talked about a lot and even drafted to some extent.  
I would like to run it to completion.

This alternative would not throw HIERARCHY_REQUEST_ERR as much (maybe even  
not at all), can return null for getAttribute(), makes Node.prefix  
readonly, and drastically reduces the amount of interfaces and interface  
members. Having an alternative with editor would also allows to make  
further simplifications to the model. We could e.g. consider drastically  
simplifying Attr or maybe even removing it altogether if compatibility  
allows for it.

It also allows for defining the namespaceless methods more clearly and  
removing all the overrides HTML5 does to DOM Core in favor of having those  
in DOM Core instead (while not creating a dependency on HTML5), reducing  
the complexity of HTML5.

The draft and tests are hosted on bitbucket.org:  
http://bitbucket.org/ms2ger/web-dom-core

I put an HTML snapshot of the source document here:  
http://lists.w3.org/Archives/Public/www-archive/2010Sep/att-0001/Overview.src.html

The first 80% is more or less done. I would very much appreciate feedback  
and implementor interest in e.g. simplifying/removing Attr on the next 80%.


Many thanks to Simon Pieters, Geoffrey Sneddon, and ms2ger, for starting  
this effort.


-- 
Anne van Kesteren
http://annevankesteren.nl/

Received on Monday, 6 September 2010 11:49:56 UTC