すべての非表示要素を選択する方法を探しています。のようなものwebkit.window.document.querySelectorAll("p:hidden")
。
たとえば、html
<html>
<head></head>
<body>
<p>123</p>
<p style="display:none;"></p>
</body>
</html>
で非表示を選択できますが、 と の間に"p[style*='display:none']"
スペースがあると機能しません。のように。display
none
<p style="display: none;"></p>
要約すると、WebKit を使用してすべての非表示要素を選択する方法が必要です。