(element: Element, attributeName: string)
| 81 | ]); |
| 82 | |
| 83 | function getAttribute(element: Element, attributeName: string): string | null { |
| 84 | return element.getAttribute(attributeName.toLowerCase()); |
| 85 | } |
| 86 | |
| 87 | function getProperty(element: Element, propertyName: string): unknown { |
| 88 | return (element as unknown as Record<string, unknown>)[propertyName]; |