-
Notifications
You must be signed in to change notification settings - Fork 2
Open
Labels
Description
FYI: @abrahamjuliot
htmlelement keys as per TZP (and creepy)
- so we're getting keys on a div element, right? what about other element types?
const id = "html-element-version"
const element = document.createElement("div")
element.setAttribute("id", id)
document.body.appendChild(element)
const htmlElement = document.getElementById(id)
const keys = []
for (const key in htmlElement) {keys.push(key)}
//... etc .. using same mini hashing function as creepy
try {document.getElementById(id).remove()} catch(e) {} // cleanup
HTML*Element keys - see https://arkenfox.github.io/TZP/tests/htmlelements.html
more to follow
abrahamjuliot