(Translated by https://www.hiragana.jp/)
Musing with Element Traversal - W3C Blog
The Wayback Machine - https://web.archive.org/web/20110624210550/http://www.w3.org/QA/2008/12/musing_with_element_traversal.html

« Social networks at W3C: foreseeing a 2009 success story! | Main | JavaScript required for basic textual info? TRY AGAIN »

Musing with Element Traversal

Yesterday, W3C announced Element Traversal Specification Is a W3C Recommendation. This will help Web developers forgetting about those vexatious nodes that one has to go around when navigating the DOM. DOM Traversal is along the same lines but I guess it didn't make the 80/20 rule for the implementers.

Unfortunately, our days of vexation aren't over yet.

First, the Element Traversal specification isn't supported in the latest final product versions of Firefox or Internet Explorer for example. I didn't check with Safari but Opera does support it. Some of those, if not all, will support the specification in their product releases of 2009.

Second, as we all know, users take time to upgrade to the latest versions of Web browsers, so the Web developers won't get to enjoy the specification out of the box on the Web for sometimes.

So, should we forget about using Element Traversal? Well, no, not quite. Given the simplicity of the functions, you can easily write a work around. I developed et.js, Element Traversal for everyone while musing today around the future of ECMAScript. You don't get to enjoy the low implementation footprint of Element Traversal but it works at least. I didn't test it in all browsers but the page contains a self-test. If it doesn't work for you, let me know.

Joyeux Noël.

Filed by Philippe Le Hégaret on December 23, 2008 9:24 PM in Tools
| | Comments (1) | TrackBacks (0)

Comments

Rabeeh Abla # 2008-12-31

Do you know, if there are standard regular expression for parsing HTML tags and attributes?

Leave a comment

Note: this blog is intended to foster polite on-topic discussions. Comments failing these requirements and spam will not get published. Please, enter your real name and email address. Every individual comment is reviewed by the W3C staff. This may take some time, thank you for your patience.

You can use the following HTML markup (a href, b, i, br/, p, strong, em, ul, ol, li, blockquote, pre) and/or Markdown syntax.

Your comment


About you

This blog is written by W3C staff and working group participants,
 and maintained by Coralie Mercier.
Authorized parties may log in to create a new entry.
Powered by Movable Type, magpierss and a lot of Web Technology