You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Might be worthwhile to use de.firstElementChild || de.firstChild instead, in case the firstChild is a comment node and the browser doesn’t support inserting before comment nodes.
(Props to Paul Irish for pointing out the mistake in my <details>/<summary> feature test, and John-David Dalton for coming up with this elegant solution.)
The text was updated successfully, but these errors were encountered:
This kinda technique is used throughout has.js:
E.g. https://github.com/phiggins42/has.js/blob/master/detect/bugs.js#L102-105
Might be worthwhile to use
de.firstElementChild || de.firstChild
instead, in case thefirstChild
is a comment node and the browser doesn’t support inserting before comment nodes.(Props to Paul Irish for pointing out the mistake in my
<details>
/<summary>
feature test, and John-David Dalton for coming up with this elegant solution.)The text was updated successfully, but these errors were encountered: