(self, attrs)
| 584 | self._optgroup = None |
| 585 | |
| 586 | def _start_option(self, attrs): |
| 587 | debug("%s", attrs) |
| 588 | if self._select is None: |
| 589 | raise ParseError("OPTION outside of SELECT") |
| 590 | if self._option is not None: |
| 591 | self._end_option() |
| 592 | |
| 593 | d = {} |
| 594 | for key, val in attrs: |
| 595 | d[key] = self.unescape_attr_if_required(val) |
| 596 | |
| 597 | self._option = {} |
| 598 | self._option.update(d) |
| 599 | if (self._optgroup and "disabled" in self._optgroup and |
| 600 | "disabled" not in self._option): |
| 601 | self._option["disabled"] = None |
| 602 | |
| 603 | def _end_option(self): |
| 604 | debug("") |
no test coverage detected