[whatwg] getElementsByIdPart

Chris Waldron chriswa at comcast.net
Mon Aug 9 21:26:25 PDT 2004


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