This repository was archived by the owner on Nov 15, 2017. It is now read-only.
This repository was archived by the owner on Nov 15, 2017. It is now read-only.
Script tags not reported -- error thrown in content script #158
Closed
Description
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 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
.
Metadata
Metadata
Assignees
Labels
No labels