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

Remove unrelated checks from trusted-types-svg-script-set-href.html #50043

Merged
merged 2 commits into from
Jan 13, 2025

Conversation

fred-wang
Copy link
Contributor

This test is intended to cover setting href [1] [2] but it also currently verifies some (currently not specified) unrelated behavior when setting the text of the script via innerHTML. A similar test exist in block-text-node-insertion-into-svg-script-element.html, but for a disconnected script. This PR just move the unrelated test to trusted-types-svg-script.html instead.

[1] w3c/svgwg#934
[2] whatwg/dom#1268

This test is intended to cover setting href [1] [2] but it also
currently verifies some (currently not specified) unrelated behavior
when setting the text of the script via innerHTML. A similar test exist
in block-text-node-insertion-into-svg-script-element.html, but for a
disconnected script. This PR just move the unrelated test to
trusted-types-svg-script.html instead.

[1] w3c/svgwg#934
[2] whatwg/dom#1268
@fred-wang
Copy link
Contributor Author

I verified the tests still passes in Chrome release and Safari Tech Preview (except the already-failing test for class name).

@fred-wang fred-wang requested a review from lukewarlow January 13, 2025 08:39
Copy link
Member

@lukewarlow lukewarlow left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM - see other comment and decide as appropriate.

@fred-wang fred-wang merged commit 696792b into master Jan 13, 2025
17 checks passed
@fred-wang fred-wang deleted the remove-unrelated-tests-from-svg-href branch January 13, 2025 16:05
sadym-chromium pushed a commit that referenced this pull request Jan 14, 2025
…50043)

* Remove unrelated checks from trusted-types-svg-script-set-href.html

This test is intended to cover setting href [1] [2] but it also
currently verifies some (currently not specified) unrelated behavior
when setting the text of the script via innerHTML. A similar test exist
in block-text-node-insertion-into-svg-script-element.html, but for a
disconnected script. This PR just move the unrelated test to
trusted-types-svg-script.html instead.

[1] w3c/svgwg#934
[2] whatwg/dom#1268
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants