W3C home > Mailing lists > Public > public-webapi@w3.org > March 2008

Re: [Element Traversal LC] access to element by index

From: Bjoern Hoehrmann <derhoermi@gmx.net>
Date: Fri, 28 Mar 2008 20:22:01 +0100
To: Daniel Glazman <daniel.glazman@disruptive-innovations.com>
Cc: "Web APIs WG (public)" <public-webapi@w3.org>
Message-ID: <kegqu3t61rrkbjj22am4rnn26h8c7dqijf@hive.bjoern.hoehrmann.de>

* Daniel Glazman wrote:
>3. using XPath :
>
>    document.evaluate('*[3]', myFooElement, null,
>                      XPathResult.ORDERED_NODE_SNAPSHOT_TYPE,
>                      null).snapshotItem(3);

I was thinking of .selectSingleNode("*[3]") which is not part
of the DOM Level 3 XPath Note but widely implemented anyway.
-- 
Björn Höhrmann · mailto:bjoern@hoehrmann.de · http://bjoern.hoehrmann.de
Weinh. Str. 22 · Telefon: +49(0)621/4309674 · http://www.bjoernsworld.de
68309 Mannheim · PGP Pub. KeyID: 0xA4357E78 · http://www.websitedev.de/ 
Received on Friday, 28 March 2008 19:22:44 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Friday, 28 March 2008 19:22:45 GMT