Hi there, I'm developing a Mozilla extension that will allow users to preview search results. For this purpose, a target page is loaded into a dedicated IFRAME and then parts of this page which are considered irrelevant to the user's information need are removed. I have a couple of questions concerning Mozilla DOM, layout etc and found this group.
The first question: is there any way to get coordinates (say, X and Y relative to parent's coordinates) and width and height for a text node? The reason I need this is that a text node may be quite large and consume valuable space on the page, so it's better to be removed if it is irrelevant. I cannot get this information from DOM (such properties as clientWidth and offsetWidth don't seem to exist for text nodes), and document.getBoxObjectFor throws an error when I pass it in a text node. Thank you in advance for any suggestions! _______________________________________________ dev-tech-layout mailing list [email protected] https://lists.mozilla.org/listinfo/dev-tech-layout

