It creates an element with the tag <_>. I see no reasonable purpose to this.
what does document.createElement("_") do in javascript [closed]
-
03-06-2023 - |
Frage
Please have a look at https://github.com/eligrey/classList.js/blob/master/classList.js :
if ("document" in self && !("classList" in document.createElement("_"))) {
//...
}
What is the purpose of document.createElement("_")
? I know it creates an html element, but why use _
instead of an html element name?
Lösung
Lizenziert unter: CC-BY-SA mit Zuschreibung
Nicht verbunden mit StackOverflow