Skip to content

function properties (e.g. vs element keys) #268

@Thorin-Oakenpants

Description

@Thorin-Oakenpants

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions