hi,
is there a way of getting the position and size of a text node in
Firefox without altering the DOM? For example, suppose I have a
document fragment like this:
<div>
textnode1
<img>
textnode2 textnode3
</div>
I can get the div's coordinates, but that doesn't help me much if I
want to know the position (and ideally also the size) of textnode2. I
could wrap the text node into a new <spanelement, but that often
alters the look of the page.
I need this for a xulrunner application, so it's fine if it only works
in (some version of) Firefox/Mozilla.
Thanks,
wo.