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
Use of _ properties and of window.name is not the right way to detect the JSDOM environment. The User-Agent string should rather be used.
Note we need to detect JSDOM for 2 reasons:
not to run the Details element polyfill, which triggers some error in JSDOM for some reason. The polyfill is needed right now because the element is not yet supported in Edge.
to apply specific date translation logic as localization of dates (at least in Chinese) does not seem to work in JSDOM
Fix for w3c#255
Also stick to `indexOf` instead of `includes` in case people are looking at the
roadmap using IE (but keep `includes` in the generation logic since it should
only run on modern user-agents)
See comment in #252 (comment)
Use of
_
properties and ofwindow.name
is not the right way to detect the JSDOM environment. The User-Agent string should rather be used.Note we need to detect JSDOM for 2 reasons:
We may be able to get rid of 2 through #253. And we should be able to get rid of 1 once Edge supports the details element
The text was updated successfully, but these errors were encountered: