[Webkit-unassigned] [Bug 254692] innerHTML and outerHTML escapes <, >, &, and nbsp inside `noscript`

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Tue Apr 4 15:00:08 PDT 2023


https://bugs.webkit.org/show_bug.cgi?id=254692

--- Comment #1 from Ahmad Saleem <ahmad.saleem792 at gmail.com> ---
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'

-- 
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.webkit.org/pipermail/webkit-unassigned/attachments/20230404/3b346ec9/attachment-0001.htm>


More information about the webkit-unassigned mailing list