Skip to content

Commit dfa8685

Browse files
committed
Merge pull request #127 from tarjoilija/fix-hints
Ignore disabled input elements in hinttags
2 parents 0b36234 + ede15ee commit dfa8685

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

common/content/hints.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -1254,7 +1254,7 @@ const Hints = Module("hints", {
12541254
},
12551255
options: function () {
12561256
const DEFAULT_HINTTAGS =
1257-
util.makeXPath(["input[not(@type='hidden')]", "a", "area", "iframe", "textarea", "button", "select"])
1257+
util.makeXPath(["input[not(@type='hidden' or @disabled)]", "a", "area", "iframe", "textarea", "button", "select"])
12581258
+ " | //*[@onclick or @onmouseover or @onmousedown or @onmouseup or @oncommand or @role='link'or @role='button' or @role='checkbox' or @role='combobox' or @role='listbox' or @role='listitem' or @role='menuitem' or @role='menuitemcheckbox' or @role='menuitemradio' or @role='option' or @role='radio' or @role='scrollbar' or @role='slider' or @role='spinbutton' or @role='tab' or @role='textbox' or @role='treeitem' or @tabindex]"
12591259
+ (config.name == "Muttator" ?
12601260
" | //xhtml:div[@class='wrappedsender']/xhtml:div[contains(@class,'link')]" :

common/locale/en-US/options.xml

+1-1
Original file line numberDiff line numberDiff line change
@@ -607,7 +607,7 @@
607607
<tags>'ht' 'hinttags'</tags>
608608
<spec>'hinttags' 'ht'</spec>
609609
<type>string</type>
610-
<default>//input[not(@type='hidden')] | //xhtml:input[not(@type='hidden')] | //a | //xhtml:a | //area | //xhtml:area | //iframe | //xhtml:iframe | //textarea | //xhtml:textarea | //button | //xhtml:button | //select | //xhtml:select | //*[@onclick or @onmouseover or @onmousedown or @onmouseup or @oncommand or @role='link'or @role='button' or @role='checkbox' or @role='combobox' or @role='listbox' or @role='listitem' or @role='menuitem' or @role='menuitemcheckbox' or @role='menuitemradio' or @role='option' or @role='radio' or @role='scrollbar' or @role='slider' or @role='spinbutton' or @role='tab' or @role='textbox' or @role='treeitem' or @tabindex]</default>
610+
<default>//input[not(@type='hidden' or @disabled)] | //xhtml:input[not(@type='hidden')] | //a | //xhtml:a | //area | //xhtml:area | //iframe | //xhtml:iframe | //textarea | //xhtml:textarea | //button | //xhtml:button | //select | //xhtml:select | //*[@onclick or @onmouseover or @onmousedown or @onmouseup or @oncommand or @role='link'or @role='button' or @role='checkbox' or @role='combobox' or @role='listbox' or @role='listitem' or @role='menuitem' or @role='menuitemcheckbox' or @role='menuitemradio' or @role='option' or @role='radio' or @role='scrollbar' or @role='slider' or @role='spinbutton' or @role='tab' or @role='textbox' or @role='treeitem' or @tabindex]</default>
611611
<description>
612612
<p>XPath string of hintable elements activated by <k>f</k> and <k>F</k></p>
613613
</description>

0 commit comments

Comments
 (0)