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

Create safe setter for SVGUseElement.href #218

Merged
merged 1 commit into from
Oct 13, 2022
Merged

Conversation

copybara-service[bot]
Copy link

@copybara-service copybara-service bot commented Oct 12, 2022

Create safe setter for SVGUseElement.href

The attribute contains a URL that points to an SVG fragment to be loaded and
presented inside the element. The URL can additionally contain a URL fragment
representing the ID of a particular element to fetch from within that fragment.
See https://developer.mozilla.org/en-US/docs/Web/SVG/Content_type#iri for
details.

The element only supports loading same-origin resources, but data: and javascript: URLs could cause XSS (e.g. w3c/trusted-types#357) and are thus sanitized.

The attribute contains a URL that points to an SVG fragment to be loaded and
presented inside the element. The URL can additionally contain a URL fragment
representing the ID of a particular element to fetch from within that fragment.
See https://developer.mozilla.org/en-US/docs/Web/SVG/Content_type#iri for
details.

The <use> element only supports loading same-origin resources, but data: and javascript: URLs could cause XSS (e.g. w3c/trusted-types#357) and are thus sanitized.

PiperOrigin-RevId: 480854265
@copybara-service copybara-service bot merged commit 67e52bf into main Oct 13, 2022
@copybara-service copybara-service bot deleted the test_480590023 branch October 13, 2022 11:15
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant