| Summary: | innerHTML and outerHTML escapes <, >, &, and nbsp inside `noscript` | ||
|---|---|---|---|
| Product: | WebKit | Reporter: | Ahmad Saleem <ahmad.saleem792> |
| Component: | DOM | Assignee: | Ryosuke Niwa <rniwa> |
| Status: | RESOLVED FIXED | ||
| Severity: | Normal | CC: | annevk, cdumez, karlcow, rniwa, webkit-bug-importer |
| Priority: | P2 | Keywords: | BrowserCompat, InRadar, WPTImpact |
| Version: | WebKit Nightly Build | ||
| Hardware: | Unspecified | ||
| OS: | Unspecified | ||
|
Description
Ahmad Saleem
2023-03-29 14:33:39 PDT
I am not sure about 'GetExecutionContext()', but this can be something possible:
if (parentName) {
bool isNoscriptTagWithScriptEnabled = *parentName == noscriptTag && text.script() && text.document().domWindow() && text.script()->canExecuteScripts(NotAboutToExecuteScript);
if (*parentName == scriptTag || *parentName == styleTag || *parentName == xmpTag
|| *parentName == noembedTag || *parentName == noframesTag || *parentName == plaintextTag
|| *parentName == iframeTag || isNoscriptTagWithScriptEnabled)
return EntityMaskInCDATA;
return EntityMaskInHTMLPCDATA;
}
In above 'script()' is wrong, I thought it might be equivalent of 'GetExecutionContext()' but I got build error as below:
no member named 'script' in 'WebCore::Text'
Pull request: https://github.com/WebKit/WebKit/pull/13388 Committed 263633@main (b731e7a77411): <https://commits.webkit.org/263633@main> Reviewed commits have been landed. Closing PR #13388 and removing active labels. |