[whatwg] getElementsByIdPart

Doron Rosenberg doronr at gmail.com
Wed Aug 11 07:03:55 PDT 2004


Mozilla's XPath should work on HTML DOM, I know several products that
use it (none are opensource nevertheless).  Can you post your sample
somewhere?


On Mon, 09 Aug 2004 21:26:25 -0700, Chris Waldron <chriswa at comcast.net> wrote:
> Thank you Zack and others:
> 
> I was able to use the contains function so long as I loaded an XML
> document into the DOM but I'll re-do my sample again.  I am probably
> missing something.
> 
> Thanks,
> ChrisWa.
> 
> 
> 
> 
> Zack Rusin wrote:
> 
> >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
> >
> >
> >
> 
>



More information about the whatwg mailing list