-
-
Notifications
You must be signed in to change notification settings - Fork 225
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
HTML: scheme data validation error #475
Comments
The specification isn't 100% clear on which characters are allowed and which not, see e.g. #180 (comment). Browsers seem to differ in their implementation, and so do data URI generators. Actually, the following HTML file shows up fine in Firefox and Chrome: <!doctype html>
<html lang="en">
<head>
<meta charset="utf-8">
<title>Test</title>
</head>
<body>
<img src="data:image/svg+xml,%3Csvg xmlns=%22http://www.w3.org/2000/svg%22 viewBox=%220 0 100 100%22%3E%3Ctext y=%2290%22 font-size=%2290%22%3EA%3C/text%3E%3C/svg%3E">
</body>
</html> I'll ask in the original issue at Hugo which browser is causing the issue. |
https://datatracker.ietf.org/doc/html/rfc2396#section-2.4
The space character does not have a representation using an unreserved character. |
Well, the following are not allowed in any URL/URI: |
This has been fixed and released in v.2.11.0! |
We have an SVG element:
This is encoded into a
link
element'shref
attribute using thedata
URI scheme:When minified,
%20
is replaced by spaces:The resulting page does not validate on
https://validator.w3.org/
:The text was updated successfully, but these errors were encountered: