mirror of
https://github.com/gryf/pentadactyl-pm.git
synced 2025-12-20 23:57:59 +01:00
Fix show image extended hint commands on XHTML pages.
This commit is contained in:
@@ -63,7 +63,7 @@ function Hints() //{{{
|
|||||||
const Mode = new Struct("prompt", "action", "tags");
|
const Mode = new Struct("prompt", "action", "tags");
|
||||||
Mode.defaultValue("tags", function () function () options.hinttags);
|
Mode.defaultValue("tags", function () function () options.hinttags);
|
||||||
function extended() options.extendedhinttags;
|
function extended() options.extendedhinttags;
|
||||||
function images() "//img";
|
function images() "//img | //xhtml:img";
|
||||||
|
|
||||||
const hintModes = {
|
const hintModes = {
|
||||||
";": Mode("Focus hint", function (elem) buffer.focusElement(elem), extended),
|
";": Mode("Focus hint", function (elem) buffer.focusElement(elem), extended),
|
||||||
@@ -762,9 +762,12 @@ function Hints() //{{{
|
|||||||
////////////////////// OPTIONS /////////////////////////////////////////////////
|
////////////////////// OPTIONS /////////////////////////////////////////////////
|
||||||
/////////////////////////////////////////////////////////////////////////////{{{
|
/////////////////////////////////////////////////////////////////////////////{{{
|
||||||
|
|
||||||
const DEFAULT_HINTTAGS = "//*[@onclick or @onmouseover or @onmousedown or @onmouseup or @oncommand or @class='lk' or @role='link'] | " +
|
// TODO: document class='lk', what is it? --djk
|
||||||
"//input[not(@type='hidden')] | //a | //area | //iframe | //textarea | //button | //select | " +
|
const DEFAULT_HINTTAGS =
|
||||||
"//xhtml:input[not(@type='hidden')] | //xhtml:a | //xhtml:area | //xhtml:iframe | //xhtml:textarea | //xhtml:button | //xhtml:select";
|
["input[not(@type='hidden')]", "a", "area", "iframe", "textarea", "button", "select"].reduce(
|
||||||
|
function (path, node) Array.concat(path, node, "xhtml:" + node),
|
||||||
|
"*[@onclick or @onmouseover or @onmousedown or @onmouseup or @oncommand or @class='lk' or @role='link']"
|
||||||
|
).map(function (node) "//" + node).join(" | ");
|
||||||
|
|
||||||
function checkXPath(val)
|
function checkXPath(val)
|
||||||
{
|
{
|
||||||
|
|||||||
Reference in New Issue
Block a user