Skip to content
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
@gorhill

Description

@gorhill

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

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions