[Webkit-unassigned] [Bug 205635] New: XMLSerializer doesn't correctly encode entities in <style> element

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Sun Dec 29 20:52:07 PST 2019


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

            Bug ID: 205635
           Summary: XMLSerializer doesn't correctly encode entities in
                    <style> element
           Product: WebKit
           Version: Safari Technology Preview
          Hardware: Unspecified
                OS: Unspecified
            Status: NEW
          Severity: Normal
          Priority: P2
         Component: XML
          Assignee: webkit-unassigned at lists.webkit.org
          Reporter: xidorn-webkit at upsuper.org

Created attachment 386505

  --> https://bugs.webkit.org/attachment.cgi?id=386505&action=review

testcase

Please see the testcase, in Safari, it shows:
> <style xmlns="http://www.w3.org/1999/xhtml">/* & */</style>

while in both Firefox and Chrome it shows:
> <style xmlns="http://www.w3.org/1999/xhtml">/* & */</style>

The testcase basically just invokes XMLSerializer's serializeToString to serialize the following element:
> <style>/* & */</style>

and the output from Safari is not a valid XML.

-- 
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/20191230/c7a4f6ae/attachment.htm>


More information about the webkit-unassigned mailing list