Hi guys,

I need a way to return the full node of a XPATH result, but I don't know how or even if it is possible.
For example, if I try something like this,

<a href=""moz-txt-link-freetext" href="http://">http://www.site.com">This is a Link</a>
.......

<script>
.....
var blabla = document.evaluate("//a", document, null, 7,null);

blabla.snapshotItem(0) will return "This a Link" and blabla.snapshotItem(0).href will return "http://www.site.com" and so on... But what I really need is a way to return exactly "<a href=""http://www.site.com" target="_blank">http://www.site.com">This is a Link</a>" that is the matched node.

Is possible to do it? I've tried somethings like nodeValue e things like that but none of them worked.... Someone can help-me?

Thanks for the attention

--
Renato Rodrigues
http://www.renatorodrigues.com
http://orkutbar.mozdev.org
_______________________________________________
Project_owners mailing list
[email protected]
http://mozdev.org/mailman/listinfo/project_owners

Reply via email to