mirror of
https://github.com/gryf/pentadactyl-pm.git
synced 2025-12-23 16:52:25 +01:00
inline odd buffer.getElement - only used in liberator.help
This commit is contained in:
@@ -1292,13 +1292,6 @@ function Buffer() //{{{
|
||||
return selection;
|
||||
},
|
||||
|
||||
// quick function to get elements inside the document reliably
|
||||
// argument "args" is something like: @id='myid' or @type='text' (don't forget the quotes around myid)
|
||||
getElement: function (args, index)
|
||||
{
|
||||
return buffer.evaluateXPath("//*[" + (args || "") + "]").snapshotItem(index || 0);
|
||||
},
|
||||
|
||||
// more advanced than a simple elem.focus() as it also works for iframes
|
||||
// and image maps
|
||||
// TODO: merge with followLink()?
|
||||
|
||||
Reference in New Issue
Block a user