Repository navigation
setHTML and config option fixes - #15498
Merged
Merged
Conversation
hamishwillee
requested review from
a team and
sideshowbarker
and removed request for
a team
April 29, 2022 01:55
Contributor
Preview URLs
FlawsNone! 🎉 External URLsURL: No new external URLs URL: No new external URLs URL: No new external URLs (this comment was updated 2022-04-29 06:04:50.408508) |
sideshowbarker
approved these changes
Apr 29, 2022
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Fixes #15414
Element.setHTML()takes an options object that contains a reference to a sanitizer, rather than taking a sanitizer directly according to the spec. This updates to match the spec.NOTE in practice a sanitizer object can be passed directly, and that appears in some spec examples. I will ask for correction/clarification in the spec repo.
In addition, the spec now states that the config options are supported (when I updated the docs in FF84 this was still marked as "still being worked out". What I have done is removed that comment and made sure the config options are correct.
BUT I have not gone through and updated examples to set the configuration. I'll create an issue for that.
EDITED: