Home. 
.

transparent

transparent

transparent

Altova Mailing List Archives


Re: Highlight words?

From: "Julius Mong" <jxm96c@-------.--->
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 




transparent
Print
Mail
Like It
Disclaimer
.

These Archives are provided for informational purposes only and have been generated directly from the Altova mailing list archive system and are comprised of the lists set forth on www.altova.com/list/index.html. Therefore, Altova does not warrant or guarantee the accuracy, reliability, completeness, usefulness, non-infringement of intellectual property rights, or quality of any content on the Altova Mailing List Archive(s), regardless of who originates that content. You expressly understand and agree that you bear all risks associated with using or relying on that content. Altova will not be liable or responsible in any way for any content posted including, but not limited to, any errors or omissions in content, or for any losses or damage of any kind incurred as a result of the use of or reliance on any content. This disclaimer and limitation on liability is in addition to the disclaimers and limitations contained in the Website Terms of Use and elsewhere on the site.

.
.

transparent

transparent