Improving DOM Traversal and DOM XPath

2011-04-25 Thread Jonas Sicking
Hi All, Since we're taking a look at DOM-Core and fixing some of the old-cruft in it, I have some suggestions for making some of the functions on document easier to use. These functions aren't technically defined as part of DOM-Core, but they are functions on the Document object which is defined

Re: Improving DOM Traversal and DOM XPath

2011-04-25 Thread Ojan Vafai
On Mon, Apr 25, 2011 at 11:31 AM, Jonas Sicking jo...@sicking.cc wrote: First off is document.createTreeWalker and document.createNodeIterator. They have the same signature which currently is: document.createX(root, whatToShow, filter, entityReferenceExpansion); Given that entity

Re: Improving DOM Traversal and DOM XPath

2011-04-25 Thread Jonas Sicking
On Mon, Apr 25, 2011 at 2:22 PM, Ojan Vafai o...@chromium.org wrote: On Mon, Apr 25, 2011 at 11:31 AM, Jonas Sicking jo...@sicking.cc wrote: First off is document.createTreeWalker and document.createNodeIterator. They have the same signature which currently is: document.createX(root,

Re: Improving DOM Traversal and DOM XPath

2011-04-25 Thread Olli Pettay
On 04/26/2011 12:22 AM, Ojan Vafai wrote: On Mon, Apr 25, 2011 at 11:31 AM, Jonas Sicking jo...@sicking.cc wrote: First off is document.createTreeWalker and document.createNodeIterator. They have the same signature which currently is: document.createX(root, whatToShow, filter,