[Webkit-unassigned] [Bug 157052] New: innerHTML getter for <style> and <script> in XML document is inconsistent with the setter

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Tue Apr 26 16:55:06 PDT 2016


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

            Bug ID: 157052
           Summary: innerHTML getter for <style> and <script> in XML
                    document is inconsistent with the setter
    Classification: Unclassified
           Product: WebKit
           Version: WebKit Nightly Build
          Hardware: Unspecified
                OS: Unspecified
            Status: NEW
          Severity: Normal
          Priority: P2
         Component: HTML DOM
          Assignee: webkit-unassigned at lists.webkit.org
          Reporter: bzbarsky at mit.edu

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

STEPS TO REPRODUCE: Load attached testcase from a .xhtml filename.

EXPECTED RESULTS: The two alerts should show the same text.

ACTUAL RESULTS: Two alerts showing different text.

ADDITIONAL INFORMATION: Looks like the innerHTML setter on script/style sets the textContent even in XML, but the getter serializes as XML and ends up escaping things.

See also https://github.com/w3c/DOM-Parsing/issues/6 and https://bugs.chromium.org/p/chromium/issues/detail?id=605973 for the Blink equivalent of this bug.

-- 
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.webkit.org/pipermail/webkit-unassigned/attachments/20160426/b95cfe2a/attachment.html>


More information about the webkit-unassigned mailing list