Get an attribute from the element. Attributes starting with `on_` return `Event` instances. Other attributes are retrieved from the underlying DOM element.
(self, name)
| 522 | ) |
| 523 | |
| 524 | def __getattr__(self, name): |
| 525 | """ |
| 526 | Get an attribute from the element. |
| 527 | |
| 528 | Attributes starting with `on_` return `Event` instances. Other |
| 529 | attributes are retrieved from the underlying DOM element. |
| 530 | """ |
| 531 | if name.startswith("on_"): |
| 532 | return self.get_event(name) |
| 533 | dom_name = self._normalize_attribute_name(name) |
| 534 | return getattr(self._dom_element, dom_name) |
| 535 | |
| 536 | def __setattr__(self, name, value): |
| 537 | """ |
nothing calls this directly
no test coverage detected