MCPcopy Create free account
hub / github.com/gawel/pyquery / xpath_hidden_pseudo

Method xpath_hidden_pseudo

pyquery/cssselectpatch.py:287–298  ·  view source on GitHub ↗

Matches all hidden input elements:: >>> from pyquery import PyQuery >>> d = PyQuery(' ') >>> d('input:hidden') [ ] ..

(self, xpath)

Source from the content-addressed store, hash-verified

285 return xpath
286
287 def xpath_hidden_pseudo(self, xpath):
288 """Matches all hidden input elements::
289
290 >>> from pyquery import PyQuery
291 >>> d = PyQuery('<div><input type="hidden"/></div>')
292 >>> d('input:hidden')
293 [<input>]
294
295 ..
296 """
297 xpath.add_condition("@type = 'hidden' and name(.) = 'input'")
298 return xpath
299
300 def xpath_image_pseudo(self, xpath):
301 """Matches all image input elements::

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected