Feed Sign in with OpenID OpenID

Simon Willison’s Weblog

DOM2 almost recommended

Craig Saila notes that the W3C have released DOM Level 2 as a recommendation and simultaneously recommended against its use in an article on News.com. Scripts should be used sparingly as they are less machine-readable or transparent than so-called declarative languages like SVG and SMIL. I’m a big advocate of the labels.js school of scripting where DOM scripts are used to enhance the functionality of a document using the semantic structure of the underlying XHTML, while degrading gracefully (and without loss of information) in user agents without the required javascript support.

This is DOM2 almost recommended by Simon Willison, posted on 11th January 2003.

View blog reactions

Next: Chat rooms and meetings

Previous: Surfin' Safari

1 comment

  1. It's a slightly odd suggestion that use SVG, don't use scripts, when SVG is almost completely reliant on scripts in its 1.0, and 1.1 incarnations, and 1.2 adds little but even more script support, quite apart from the lack of SMIL animation support in implementations, and the fact that degradation in the face of lack of abilities in SVG is much harder with declaritive than using script. Whilst the don't use scripts for core functionality is absolutely right, using it properly means you can use it every bit as much as CSS.

    Jim Ley - 13th January 2003 11:44 - #

Comments are closed.

Previously hosted at http://simon.incutio.com/archive/2003/01/11/dom2AlmostRecommended

A django site