W3C home > Mailing lists > Public > whatwg@whatwg.org > August 2004

[whatwg] getElementsByIdPart

From: Zack Rusin <zack@kde.org>
Date: Mon, 9 Aug 2004 17:08:47 -0400
Message-ID: <200408091708.48286.zack@kde.org>
On Monday 09 August 2004 15:57, you wrote:
> Ok Zack or any one else on the list can you provide me with an
> example?  I've search the .net and I cannot find an example using
> XPATH that can provide a list of DOM elements matching an attribute
> substring.

Expression like "//*[contains(@name,'hello')]" returns all elements 
where name attribute contains the string hello.

> Mind you I'm not saying that you cannot do that with an XML document.
>  You can but can you do this in an HTML DOM document?  

It's operating on a DOM tree either way, so it makes absolutely no 
difference.

Zack

-- 
Better to understand a little than to misunderstand a lot.
Received on Monday, 9 August 2004 14:08:47 UTC

This archive was generated by hypermail 2.4.0 : Wednesday, 22 January 2020 16:58:36 UTC