Normalize Python attribute names to DOM attribute names. Removes trailing underscores and maps special cases.
(self, name)
| 552 | setattr(self._dom_element, dom_name, value) |
| 553 | |
| 554 | def _normalize_attribute_name(self, name): |
| 555 | """ |
| 556 | Normalize Python attribute names to DOM attribute names. |
| 557 | |
| 558 | Removes trailing underscores and maps special cases. |
| 559 | """ |
| 560 | if name.endswith("_"): |
| 561 | name = name[:-1] |
| 562 | if name == "for": |
| 563 | return "htmlFor" |
| 564 | if name == "class": |
| 565 | return "className" |
| 566 | return name |
| 567 | |
| 568 | def get_event(self, name): |
| 569 | """ |
no outgoing calls
no test coverage detected