pyscript
pyscript copied to clipboard
ts strict - getAttribute
Working through TS strict errors related to getAttribute.
Element.getAttribute returns string | null
All existing code ignores the potential null and assumes string.
- Add a util for getAttribute which both tests for hasAttribute and supports string, null
- Implement across pyscript