Skip to content
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

<base> does not support data: and javascript: URLs #28865

Closed
annevk opened this issue Aug 31, 2023 · 2 comments · Fixed by #28917
Closed

<base> does not support data: and javascript: URLs #28865

annevk opened this issue Aug 31, 2023 · 2 comments · Fixed by #28917
Labels
Content:HTML Hypertext Markup Language docs

Comments

@annevk
Copy link
Contributor

annevk commented Aug 31, 2023

This has been implemented for quite a while in Chromium and WebKit, but was not yet standardized. That is being addressed now in whatwg/html#9665 and it might also be worth documenting on MDN.

@github-actions github-actions bot added the needs triage Triage needed by staff and/or partners. Automatically applied when an issue is opened. label Aug 31, 2023
@hamishwillee hamishwillee added the Content:HTML Hypertext Markup Language docs label Aug 31, 2023
@hamishwillee
Copy link
Collaborator

hamishwillee commented Aug 31, 2023

Thanks. Yes it should be documented in <base> and I guess also HTMLBaseElement once dynamic case is fixed.

It it that https and http are the only real valid base URL protocols following this change or are there others? (it would be better to write "only https and http are allowed" than "data and javascript URLs are forbidden).

@hamishwillee hamishwillee removed the needs triage Triage needed by staff and/or partners. Automatically applied when an issue is opened. label Aug 31, 2023
@annevk
Copy link
Contributor Author

annevk commented Sep 1, 2023

No, all schemes are allowed, except for "data" and "javascript".

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Content:HTML Hypertext Markup Language docs
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants