在firefox插件中获取文档html元素

Muh*_*our 6 html javascript firefox-addon

我正在创建一个firefox扩展,我想获得html页面元素

使用java脚本,但document.getElementsByTagName('*')总是给我

一个xul对象数组

我怎样才能获得html对象数组?

Nei*_*eil 5

如果要从扩展名访问当前选项卡的内容,则需要使用content.document.getElementsByTagName('*')etc。