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
{{ message }}
This repository was archived by the owner on Nov 15, 2017. It is now read-only.
Cursiously, there was no document.scripts property, which caused an error to be thrown when trying to access the document.scripts.length property. I say "curiously" because as per https://developer.mozilla.org/en-US/docs/Web/API/document.scripts, my understanding was that the document.scripts property was always present -- though maybe empty.
Well not in the DOM of this web page.
Fix will be to use document.querySelectorAll, and be prepared to receive null.
The particularity of the script tags on this page is that their type is application/ecmascript.
The text was updated successfully, but these errors were encountered:
I found a page which had five script tags in the source, but none of these were reported in the matrix: http://eligrey.com/demos/FileSaver.js/?.
Cursiously, there was no
document.scripts
property, which caused an error to be thrown when trying to access thedocument.scripts.length
property. I say "curiously" because as per https://developer.mozilla.org/en-US/docs/Web/API/document.scripts, my understanding was that thedocument.scripts
property was always present -- though maybe empty.Well not in the DOM of this web page.
Fix will be to use
document.querySelectorAll
, and be prepared to receivenull
.The particularity of the script tags on this page is that their type is
application/ecmascript
.The text was updated successfully, but these errors were encountered: