Hi,
I am new to using xpath and document.evaluate and I would like some
help with this. I'm trying to use an xpath expression in a
document.evaluate to get a div with the name titleInfoArea.
Below is the code containing everything and is ready to run in your
browser.
http://pastebin.com/4AcfN43T
In Firefox, result.singleNodeValue works and returns [object
HTMLDivElement], which is what I want. However in Chrome, it is null.
What is interesting is that I need to generate the HTML on-the-fly
with createElementByP, but if I put the HTML into the body of the
document and let the script do it's work, Chrome behaves as expected
returning the div, but for this project I need to generate the html so
that is not an option.
Any ideas as to what could be causing this?
Thanks.