handle processing instructions during sanitization
Categories
(Core :: DOM: Security, task)
Tracking
()
People
(Reporter: helmut, Assigned: helmut)
References
(Depends on 1 open bug, Blocks 2 open bugs)
Details
Attachments
(1 external file)
Now that the HTML parser can produce ProcessingInstruction nodes (bug 2053472 / the PI parser), the Sanitizer must handle them. Implement the "sanitize" ProcessingInstruction step (SanitizeChildren step 1.4 in dom/security/sanitizer/Sanitizer.cpp, currently a TODO left by bug 2044714): remove a PI when the processingInstructions allow list lacks its target or the removeProcessingInstructions list contains it, handled separately from comments.
Also make the <template for> patch path reachable under sanitize-while-parsing (dom.security.sanitizer.while-parsing), where appends currently route through SanitizedAppendElement and bypass patching. WPT: template-for-sanitizer-config.html from https://github.com/web-platform-tests/wpt/pull/63320.
| Assignee | ||
Comment 1•1 month ago
|
||
Implement the sanitize ProcessingInstruction step (SanitizeChildren step
1.4), previously a TODO from bug 2044714, now that the HTML parser can
produce ProcessingInstruction nodes: remove a PI when the
processingInstructions allow list lacks its target or the
removeProcessingInstructions list contains it, handled separately from
comments.
Updated•1 month ago
|
Updated•1 month ago
|
Updated•6 days ago
|
Description
•