문제

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?

도움이 되었습니까?

해결책

It creates an element with the tag <_>. I see no reasonable purpose to this.

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top