garycourt/uri-js

Invalid scheme syntax permitted

Closed this issue · 1 comments

urijs.parse("any(http://www.w3.org/ns/ttml/profile/ttml2-transformation")

does not result in an error, even though the scheme component of an absolute URI is constrained to ALPHA *( ALPHA / DIGIT / "+" / "-" / "." ) per RFC 3986, and the path-noscheme of a relative URI cannot contain a ":" until after the first "/".

The reason you are not seeing an error here is because URI.js does not perform validation on a parsed URI. Instead, it will try and parse the URI as permissively as it can. URI validation is not currently supported by this library.