Altova Mailing List Archives>Archive Index >microsoft.public.xsl Archive Home >Recent entries >Thread Prev - Re: Highlight words? >Thread Next - Re: Highlight words? Re: Highlight words?To: NULL Date: 5/3/2006 12:53:00 AM
>> on the other hand if anyone knows a way round the Firefox bug please also
>> let me know ...
>
> The Core DOM should do e.g.
> var body = document.getElementsByTagName('body')[0];
> That is slightly longer than
> var body = document.body;
> but should not prevent you from using script to manipulate the body if you
> need to.
OK I've tried that before, problem is it returns undefined. I tried this:
document.getElementsByTagName('body')[0]
I get undefined, I tried:
document.getElementsByTagName('html')[0].childNodes[0] // or firstChild
I get object HTMLHeadElement
document.getElementsByTagName('html')[0]
gives object HTMLHtmlElement
document.getElementsByTagName('html')[0].childNodes[1] // and [2] [3] etc
gives undefined however, so I tired this:
document.getElementsByTagName('html')[0].childNodes.length
and I get 1... so only head is being found and it seems that the bug extends
to how DOM is constructed in Firefox when XSLT is involved...
Any ideas?
Julius
| ||||||
| Company | Legal | Press | Partners | Careers | Sitemap | Contact Us | Altova Blog | Mobile | Full Site | |||
|
