-
-
Notifications
You must be signed in to change notification settings - Fork 34.2k
Closed
Labels
blockedPRs that are blocked by other issues or PRs.PRs that are blocked by other issues or PRs.known limitationIssues that are identified as known limitations.Issues that are identified as known limitations.
Description
The regex at https://github.com/nodejs/node/blob/master/lib/internal/modules/esm/translators.js#L42 defines the allowable data: URIs:
const DATA_URL_PATTERN = /^[^/]+\/[^,;]+(;base64)?,([\s\S]*)$/;This rejects valid RFC2397 data: URIs with media parameters, like
data:text/javascript;charset=utf-8;base64,xxxx
Likewise, a valid URI like
data:,A%20brief%20note
is rejected ( '/' character is required in the media type - even though the media type is not used )
Metadata
Metadata
Assignees
Labels
blockedPRs that are blocked by other issues or PRs.PRs that are blocked by other issues or PRs.known limitationIssues that are identified as known limitations.Issues that are identified as known limitations.