Matches all elements that are disabled:: >>> from pyquery import PyQuery >>> d = PyQuery(' ') >>> d('input:disabled') [ ] ..
(self, xpath)
| 149 | )''' % (bool_op, bool_op, bool_op) |
| 150 | |
| 151 | def xpath_disabled_pseudo(self, xpath): |
| 152 | """Matches all elements that are disabled:: |
| 153 | |
| 154 | >>> from pyquery import PyQuery |
| 155 | >>> d = PyQuery('<div><input disabled="disabled"/></div>') |
| 156 | >>> d('input:disabled') |
| 157 | [<input>] |
| 158 | |
| 159 | .. |
| 160 | """ |
| 161 | xpath.add_condition(self._format_disabled_xpath()) |
| 162 | return xpath |
| 163 | |
| 164 | def xpath_enabled_pseudo(self, xpath): |
| 165 | """Matches all elements that are enabled:: |
nothing calls this directly
no test coverage detected