<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "https://bugs.webkit.org/page.cgi?id=bugzilla.dtd">

<bugzilla version="5.0.4.1"
          urlbase="https://bugs.webkit.org/"
          
          maintainer="admin@webkit.org"
>

    <bug>
          <bug_id>157052</bug_id>
          
          <creation_ts>2016-04-26 16:55:06 -0700</creation_ts>
          <short_desc>innerHTML getter for &lt;style&gt; and &lt;script&gt; in XML document is inconsistent with the setter</short_desc>
          <delta_ts>2022-08-11 14:11:21 -0700</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>1</classification_id>
          <classification>Unclassified</classification>
          <product>WebKit</product>
          <component>DOM</component>
          <version>WebKit Nightly Build</version>
          <rep_platform>Unspecified</rep_platform>
          <op_sys>Unspecified</op_sys>
          <bug_status>NEW</bug_status>
          <resolution></resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords>InRadar</keywords>
          <priority>P2</priority>
          <bug_severity>Normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Boris Zbarsky">bzbarsky</reporter>
          <assigned_to name="Nobody">webkit-unassigned</assigned_to>
          <cc>ahmad.saleem792</cc>
    
    <cc>ap</cc>
    
    <cc>bfulgham</cc>
    
    <cc>cdumez</cc>
    
    <cc>rniwa</cc>
    
    <cc>webkit-bug-importer</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>1187581</commentid>
    <comment_count>0</comment_count>
      <attachid>277423</attachid>
    <who name="Boris Zbarsky">bzbarsky</who>
    <bug_when>2016-04-26 16:55:06 -0700</bug_when>
    <thetext>Created attachment 277423
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.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1890697</commentid>
    <comment_count>1</comment_count>
    <who name="Ahmad Saleem">ahmad.saleem792</who>
    <bug_when>2022-08-11 14:09:42 -0700</bug_when>
    <thetext>*** Safari 15.6 on macOS 12.5 ***

&amp;lt;foo&amp;gt;&amp;lt;/foo&amp;gt;

&amp;amp;lt;foo&amp;amp;gt;&amp;amp;lt;/foo&amp;amp;gt;


*** Firefox Nightly 105 ***

&lt;foo&gt;&lt;/foo&gt;

&lt;foo&gt;&lt;/foo&gt;

*** Chrome Canary 106 ***

&amp;lt;foo&amp;gt;&amp;lt;/foo&amp;gt;

&amp;amp;lt;foo&amp;amp;gt;&amp;amp;lt;/foo&amp;amp;gt;

___________

As can be seen above this is still present and both dialogs are different. Chrome bug has been marked as &quot;External Dependency&quot; without any clarity but just wanted to share updated status. Thanks!</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1890699</commentid>
    <comment_count>2</comment_count>
    <who name="Radar WebKit Bug Importer">webkit-bug-importer</who>
    <bug_when>2022-08-11 14:11:21 -0700</bug_when>
    <thetext>&lt;rdar://problem/98528339&gt;</thetext>
  </long_desc>
      
          <attachment
              isobsolete="0"
              ispatch="0"
              isprivate="0"
          >
            <attachid>277423</attachid>
            <date>2016-04-26 16:55:06 -0700</date>
            <delta_ts>2016-04-26 16:55:06 -0700</delta_ts>
            <desc>Testcase</desc>
            <filename>baz.xhtml</filename>
            <type>application/xhtml+xml</type>
            <size>312</size>
            <attacher name="Boris Zbarsky">bzbarsky</attacher>
            
              <data encoding="base64">PGh0bWwgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkveGh0bWwiPgogIDxzY3JpcHQ+CiAg
ICA8IVtDREFUQVsKICAgIHZhciBzdHlsZSA9IGRvY3VtZW50LmNyZWF0ZUVsZW1lbnROUygiaHR0
cDovL3d3dy53My5vcmcvMTk5OS94aHRtbCIsICJzdHlsZSIpOwogICAgc3R5bGUuaW5uZXJIVE1M
ID0gIjxmb28+PC9mb28+IjsKICAgIGFsZXJ0KHN0eWxlLmlubmVySFRNTCk7CiAgICBzdHlsZS5p
bm5lckhUTUwgPSBzdHlsZS5pbm5lckhUTUw7CiAgICBhbGVydChzdHlsZS5pbm5lckhUTUwpOwog
ICAgXV0+CiAgPC9zY3JpcHQ+CjwvaHRtbD4K
</data>

          </attachment>
      

    </bug>

</bugzilla>