Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

get the document html elements in firefox addon

I'm creating a firefox extension and I want to get the HTML page elements using javascript but the document.getElementsByTagName('*') is always giving me an xul objects array.

How can I get the HTML objects array ?

like image 684
Muhamad Bhaa Asfour Avatar asked Feb 06 '11 14:02

Muhamad Bhaa Asfour


1 Answers

If you want to access the current tab's content from an extension then you need to use content.document.getElementsByTagName('*') etc.

like image 178
Neil Avatar answered Sep 26 '22 15:09

Neil