Make the DocumentFragment to sanitize inert#12561
Open
zcorpan wants to merge 1 commit into
Open
Conversation
mozfreddyb
approved these changes
Jun 10, 2026
24 tasks
noamr
previously approved these changes
Jul 3, 2026
annevk
reviewed
Jul 3, 2026
| <li><p>Let <var>fragment</var> be a new <code>DocumentFragment</code> whose <span>node | ||
| document</span> is <var>contextElement</var>'s <span>node document</span>.</p></li> | ||
| document</span> is a new <code>Document</code> (whose <span | ||
| data-x="concept-document-bc">browsing context</span> is null).</p></li> |
Member
There was a problem hiding this comment.
Okay if we do need this I'm wondering if this needs to at least specify the type of document.
Contributor
There was a problem hiding this comment.
Actually I wonder if we can use the template document for this rather than create a new one?
Contributor
There was a problem hiding this comment.
Also maybe we should wait and do this as part of the streaming sanitizer? That issue is going to go away because removed elements are not going to be added to the fragment in the first place
Contributor
Actually it is, specifically streaming sanitizer. Maybe we should hold off on this. |
Preferring to do this as part of streaming sanitizer.
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 #12560.
(No PR template as this is only an issue in the spec AFAICT.)
/dynamic-markup-insertion.html ( diff )