-
Notifications
You must be signed in to change notification settings - Fork 133
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
Why does xmlns use http not https? #738
Comments
Thanks for filing the issue. XML namespace URLs are really opaque identifiers. The fact that some namespace URLs under w3.org resolve to a page describing them is a convenience. It wouldn't be compatible to change these URLs now. (You might be able to argue for DTD URLs to be updated, since in some XML parsers, those URLs will actually be fetched. But in practice, SVG User Agents don't operate their XML parsers in validating mode, and so never need to use that URL.) |
And notably, if you create some content with |
Ok - thanks for the insight. So these identifiers are just sort of like fingerprints and meaningless, unless the parser is validating, which most browsers are only performing in a shallow way. I.e. just a string validation looking exactly for e.g. |
@nothingismagick Meaningless for authors but required for user agents. Standalone SVGs are XML document. As @heycam said, those namespaces are identifiers (URI) and not supposed to be interpreted as URLs though the W3C does manage websites with the URL of the same string. |
Man in the middle attack an SVG that is being validated? |
That exploit is related specifically to the caching of external entities. And possibly DTDs - it's not clear. DTDs are the Entities are of the form The value inside an That attack could potentially affect SVG files. But it is unrelated to the |
XML namespaces aren't real URLs and the "schema" being used is in fact relevant. See also w3c/svgwg#738 for a similar question. Refs 5c05ff1
This is not really an issue per sé, more like a request for information. I noticed that it is normal to see
http://
used as a protocol reference to xmlns links and even doctypes. The following is made by affinity designer:If you visit those links manually (copy / paste) the w3.org site will automatically redirect to
https
. I am wondering whyhttps
is not preferred. Is this going to change with 2.0 ?I brought it up in a PR here:
mermaid-js/mermaid#940
The text was updated successfully, but these errors were encountered: