diff options
Diffstat (limited to 'inspector.js')
-rw-r--r-- | inspector.js | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/inspector.js b/inspector.js index 9b93bda..22aba05 100644 --- a/inspector.js +++ b/inspector.js @@ -36,6 +36,13 @@ function runInspector(node){ inspectObject(node); } } + +function getIDList(filter, isChrome){ + var doc = isChrome ? document : content.document; + var iter = buffer.evaluateXPath('//*[@id and contains(@id,"' + filter + '")]',doc); + return [["#" + e.id, "TagName: "+ e.tagName] for (e in iter)]; +} + var options = [ [["-frame","-f"], commands.OPTION_NOARG] ]; |