Why are you using attribute NAME on anchors???? Which purpose???
BTW, according to a DOCTYPE of "xhtml1-transitional.dtd"
|value of attribute "name" must be a single token|
Cheers!
Iván
On 10/11/08, mmjaeger <[EMAIL PROTECTED]> wrote:
>
> Hello,
>
> I'm having a little issue with using selectors and I hope somebody can
> help please:
>
> What I'm basically trying to do is to get all anchors on a page:
>
> var anchors = container.getElements('a[name~='+name+']')
>
> if name is e.g. "Amortization" the code works well
> if name is e.g. "New York Stock Exchange", I won't get anything back -
> I've tried all the examples even in Aaron's book and also tried to put
> the whole string in double quotes but that didn't help either.
>
> I must be missing something here.
>
> thank you in advance for your help.
>
--
◦◦◦◦◦◦◦◦◦◦◦◦◦◦◦◦◦◦◦◦◦◦◦◦◦◦◦◦◦◦◦◦◦◦◦◦◦◦◦◦◦◦◦◦◦◦◦◦◦◦◦◦◦◦◦
www.ivanicus.com