Matches all input elements of type file:: >>> from pyquery import PyQuery >>> d = PyQuery(' ') >>> d('input:file') [ ] ..
(self, xpath)
| 175 | return xpath |
| 176 | |
| 177 | def xpath_file_pseudo(self, xpath): |
| 178 | """Matches all input elements of type file:: |
| 179 | |
| 180 | >>> from pyquery import PyQuery |
| 181 | >>> d = PyQuery('<div><input type="file"/></div>') |
| 182 | >>> d('input:file') |
| 183 | [<input>] |
| 184 | |
| 185 | .. |
| 186 | """ |
| 187 | xpath.add_condition("@type = 'file' and name(.) = 'input'") |
| 188 | return xpath |
| 189 | |
| 190 | def xpath_input_pseudo(self, xpath): |
| 191 | """Matches all input elements:: |
nothing calls this directly
no outgoing calls
no test coverage detected