Allow ;p to yank any element which contains text

This commit is contained in:
Oliver Blanthorn 2017-11-29 12:09:37 +00:00
parent 3c282ab1df
commit 6cd93b233d
No known key found for this signature in database
GPG key ID: 2BB8C36BB504BFF3

View file

@ -197,7 +197,7 @@ function hintables() {
function elementswithtext() {
return DOM.getElemsBySelector(HINTTAGS_text_selectors,
return DOM.getElemsBySelector("*",
[DOM.isVisible, hint => {
return hint.textContent != ""
}]
@ -252,20 +252,6 @@ select,
[tabindex]
`
const HINTTAGS_text_selectors = `
input:not([type=hidden]):not([disabled]),
a,
area,
iframe,
textarea,
button,
p,
div,
pre,
code,
span
`
const HINTTAGS_img_selectors = `
img,
[src]