Open
Description
checknodes.js - node-red/node-red-dev-cli - GitHub1s
/<script.+?type=['"]text\/javascript['"].*?>([\S\s]*?)<\/script>/ig
This does not match valid HTML v5 javascript script tag which may not have the type
attribute set.
From MDN:
The HTML5 specification urges authors to omit the attribute rather than provide a redundant MIME type.
This results in:
---Validating Nodes---
Unable to parse nodes/wiser.js
Unable to parse nodes/wiser-listen.js
It would probably be better to have a negative check to eliminate script tags that have type="text/html"
or the older red
attributes.
Metadata
Metadata
Assignees
Labels
No labels