From 8cbf15852155575d275cb37ac0092a771342272d Mon Sep 17 00:00:00 2001 From: mike Date: Tue, 18 Dec 2012 23:48:15 -0500 Subject: Fix #464 - Support placeholder attribute for inputs in find mode Whereas find mode normally identifies inputs by their value, if a value is blank, find mode will use the placeholder value instead, if it exists --- content_scripts/link_hints.coffee | 2 ++ 1 file changed, 2 insertions(+) (limited to 'content_scripts') diff --git a/content_scripts/link_hints.coffee b/content_scripts/link_hints.coffee index 32eb6ad5..1f5e5d05 100644 --- a/content_scripts/link_hints.coffee +++ b/content_scripts/link_hints.coffee @@ -352,6 +352,8 @@ filterHints = showLinkText = true else if (element.type != "password") linkText = element.value + if not linkText and 'placeholder' of element + linkText = element.placeholder # check if there is an image embedded in the tag else if (nodeName == "a" && !element.textContent.trim() && element.firstElementChild && -- cgit v1.2.3