<?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>55229</bug_id>
          
          <creation_ts>2011-02-25 10:11:06 -0800</creation_ts>
          <short_desc>REGRESSION (r66062) - inputElement.innerText = &quot;&quot; throws</short_desc>
          <delta_ts>2022-08-09 14:30:23 -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>528+ (Nightly build)</version>
          <rep_platform>All</rep_platform>
          <op_sys>All</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>CONFIGURATION CHANGED</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="Brady Eidson">beidson</reporter>
          <assigned_to name="Nobody">webkit-unassigned</assigned_to>
          <cc>abarth</cc>
    
    <cc>ahmad.saleem792</cc>
    
    <cc>ap</cc>
    
    <cc>bfulgham</cc>
    
    <cc>eric</cc>
    
    <cc>rniwa</cc>
    
    <cc>webkit-bug-importer</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>357999</commentid>
    <comment_count>0</comment_count>
    <who name="Brady Eidson">beidson</who>
    <bug_when>2011-02-25 10:11:06 -0800</bug_when>
    <thetext>REGRESSION (r66062) - set(Inner/Outer)Text on many types of elements throws an exception, and they didn&apos;t before.

Link to the change:
http://trac.webkit.org/changeset/66057
Link to the original bug:
https://bugs.webkit.org/show_bug.cgi?id=44626

ChangeLog says &quot;this is just moving code and should have no functional change.&quot;

But by replacing the usage of &quot;HTMLElement::endTagRequirement()&quot; with &quot;HTMLElement::ieForbidsInsertHTML()&quot; in 3 key places in HTMLElement, it had functional change.

Before this change, HTMLElement::deprecatedCreateContextualFragment would only fail to return a fragment for &lt;wbr&gt; elements.  Now it fails for ~20 tag names listed in HTMLElement::ieForbidsInsertHTML()

Before this change, HTMLElement::setInnerText and HTMLElement::setOuterText only threw exceptions for 10 tag names they knew about, and &lt;wbr&gt;.
Now they throw exceptions for the 10 tag names they knew about, and the ~20 listed in HTMLElement::ieForbidsInsertHTML()

This broke compatibility with other browsers like Firefox and Opera.  It also *broke* compatibility with IE while purporting to match IE&apos;s rules, as noted in the FIXME comment in ieForbidsInsertHTML()

Test case coming soon...</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>358079</commentid>
    <comment_count>1</comment_count>
      <attachid>83852</attachid>
    <who name="Brady Eidson">beidson</who>
    <bug_when>2011-02-25 11:27:35 -0800</bug_when>
    <thetext>Created attachment 83852
Test derived from

This is a test derived from a real world affected site my.schedulemaster.com

Sadly the real site requires logins and no pilot would be likely to hand theirs out (I sure am not).

But let&apos;s just say that a lot of pilots really like WebKit based browsers.  :)</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>358080</commentid>
    <comment_count>2</comment_count>
      <attachid>83853</attachid>
    <who name="Brady Eidson">beidson</who>
    <bug_when>2011-02-25 11:29:06 -0800</bug_when>
    <thetext>Created attachment 83853
Better test with explanatory text</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>358085</commentid>
    <comment_count>3</comment_count>
    <who name="Brady Eidson">beidson</who>
    <bug_when>2011-02-25 11:32:42 -0800</bug_when>
    <thetext>&lt;rdar://problem/9055014&gt;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>358603</commentid>
    <comment_count>4</comment_count>
    <who name="Eric Seidel (no email)">eric</who>
    <bug_when>2011-02-26 16:24:39 -0800</bug_when>
    <thetext>innerText isn&apos;t spec&apos;d, but the change in question was not supposed to change behavior.  Will investigate what changed.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>358604</commentid>
    <comment_count>5</comment_count>
    <who name="Eric Seidel (no email)">eric</who>
    <bug_when>2011-02-26 16:28:12 -0800</bug_when>
    <thetext>Firefox doesn&apos;t support innerText, so the testcase is misleading.  I suspect the site in question follows a different codepath for firefox.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>358605</commentid>
    <comment_count>6</comment_count>
    <who name="Eric Seidel (no email)">eric</who>
    <bug_when>2011-02-26 16:29:34 -0800</bug_when>
    <thetext>Has this shipped in a Safari?  I&apos;m testing with Version 5.0.3 (6533.19.4) and I see the same exception as top of tree.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>358718</commentid>
    <comment_count>7</comment_count>
    <who name="Brady Eidson">beidson</who>
    <bug_when>2011-02-27 10:21:33 -0800</bug_when>
    <thetext>(In reply to comment #6)
&gt; Has this shipped in a Safari?  I&apos;m testing with Version 5.0.3 (6533.19.4) and I see the same exception as top of tree.

Hmmmm.  Admittedly and amusingly I&apos;d never tried with Safari 5.0.3, I only tried with ToT and the patch partially rolled out.  Maybe &quot;partially&quot; rolled out invented the state I was expecting to see.

Will explore more when I&apos;m around code on Monday.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1890102</commentid>
    <comment_count>8</comment_count>
    <who name="Ahmad Saleem">ahmad.saleem792</who>
    <bug_when>2022-08-09 14:29:39 -0700</bug_when>
    <thetext>I am unable to reproduce this bug in Safari 15.6 on macOS 12.5 and it does not throw any exception in Console or no dialog box. It was similar to Firefox Nightly 105 and Chrome Canary 106.

Further, Safari also pass all test cases here:

https://wpt.fyi/results/html/dom/elements/the-innertext-and-outertext-properties/innertext-setter.html?label=master&amp;label=experimental&amp;aligned&amp;view=subtest&amp;q=innerText

I am going to mark this as &quot;RESOLVED CONFIGURATION CHANGED&quot; but if you are able to reproduce then please reopen this. Thanks!</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1890103</commentid>
    <comment_count>9</comment_count>
    <who name="Radar WebKit Bug Importer">webkit-bug-importer</who>
    <bug_when>2022-08-09 14:30:23 -0700</bug_when>
    <thetext>&lt;rdar://problem/98406179&gt;</thetext>
  </long_desc>
      
          <attachment
              isobsolete="1"
              ispatch="0"
              isprivate="0"
          >
            <attachid>83852</attachid>
            <date>2011-02-25 11:27:35 -0800</date>
            <delta_ts>2011-02-25 11:29:06 -0800</delta_ts>
            <desc>Test derived from</desc>
            <filename>test.html</filename>
            <type>text/html</type>
            <size>580</size>
            <attacher name="Brady Eidson">beidson</attacher>
            
              <data encoding="base64">PHNjcmlwdD4KCndpbmRvdy5vbmVycm9yID0gZnVuY3Rpb24oZXJyLCB1cmwsIGxpbmVudW1iZXIp
IHsKICAgYWxlcnQoIndpbmRvdy5vbmVycm9yIGNhbGxlZCB3aXRoICciICsgZXJyICsgIiciKTsK
fQoKZnVuY3Rpb24gdGVzdDEoKSB7CiAgICB2YXIgbm9kZSA9IGRvY3VtZW50LmdldEVsZW1lbnRC
eUlkKCJ0ZXN0bm9kZSIpOwogICAgdHJ5IHsKICAgICAgICBub2RlLmlubmVyVGV4dCA9ICIiOwog
ICAgfSBjYXRjaChlKSB7CiAgICAgICBhbGVydCgiQ2F1Z2h0IGV4Y2VwdGlvbiAnIiArIGUgKyAi
JyIpOwogICAgfQp9CgpmdW5jdGlvbiB0ZXN0MigpIHsKICAgIGRvY3VtZW50LmdldEVsZW1lbnRC
eUlkKCJ0ZXN0bm9kZSIpLmlubmVyVGV4dCA9ICIiOwp9Cgo8L3NjcmlwdD4KCjxodG1sPgo8aW5w
dXQgaWQ9InRlc3Rub2RlIiB0eXBlPSJ0ZXh0Ij48L2lucHV0Pjxicj4KPGJ1dHRvbiBvbmNsaWNr
PSJ0ZXN0MSgpIj5UZXN0IGV4Y2VwdGlvbiBoYW5kbGluZzwvYnV0dG9uPjxicj4KPGJ1dHRvbiBv
bmNsaWNrPSJ0ZXN0MigpIj5UZXN0IHdpbmRvdy5vbmVycm9yIGZhbGxiYWNrPC9idXR0b24+PGJy
Pgo8L2h0bWw+Cg==
</data>

          </attachment>
          <attachment
              isobsolete="0"
              ispatch="0"
              isprivate="0"
          >
            <attachid>83853</attachid>
            <date>2011-02-25 11:29:06 -0800</date>
            <delta_ts>2011-02-25 11:29:06 -0800</delta_ts>
            <desc>Better test with explanatory text</desc>
            <filename>test.html</filename>
            <type>text/html</type>
            <size>754</size>
            <attacher name="Brady Eidson">beidson</attacher>
            
              <data encoding="base64">PHNjcmlwdD4KCndpbmRvdy5vbmVycm9yID0gZnVuY3Rpb24oZXJyLCB1cmwsIGxpbmVudW1iZXIp
IHsKICAgYWxlcnQoIndpbmRvdy5vbmVycm9yIGNhbGxlZCB3aXRoICciICsgZXJyICsgIiciKTsK
fQoKZnVuY3Rpb24gdGVzdDEoKSB7CiAgICB2YXIgbm9kZSA9IGRvY3VtZW50LmdldEVsZW1lbnRC
eUlkKCJ0ZXN0bm9kZSIpOwogICAgdHJ5IHsKICAgICAgICBub2RlLmlubmVyVGV4dCA9ICIiOwog
ICAgfSBjYXRjaChlKSB7CiAgICAgICBhbGVydCgiQ2F1Z2h0IGV4Y2VwdGlvbiAnIiArIGUgKyAi
JyIpOwogICAgfQp9CgpmdW5jdGlvbiB0ZXN0MigpIHsKICAgIGRvY3VtZW50LmdldEVsZW1lbnRC
eUlkKCJ0ZXN0bm9kZSIpLmlubmVyVGV4dCA9ICIiOwp9Cgo8L3NjcmlwdD4KCjxodG1sPgo8aW5w
dXQgaWQ9InRlc3Rub2RlIiB0eXBlPSJ0ZXh0Ij48L2lucHV0Pjxicj4KPGJ1dHRvbiBvbmNsaWNr
PSJ0ZXN0MSgpIj5UZXN0IGV4Y2VwdGlvbiBoYW5kbGluZzwvYnV0dG9uPjxicj4KPGJ1dHRvbiBv
bmNsaWNrPSJ0ZXN0MigpIj5UZXN0IHdpbmRvdy5vbmVycm9yIGZhbGxiYWNrPC9idXR0b24+PGJy
Pjxicj4KSW4gSUUsIEZpcmVmb3gsIG9yIFdlYktpdCBiZWZvcmUgcjY2MDYyIHlvdSB3aWxsIHNl
ZSBubyBhbGVydHMgYXQgYWxsLCBiZWNhdXNlIHRoaXMgYWN0aW9uIGRvZXNuJ3QgdGhyb3cgYW4g
ZXhjZXB0aW9uLjxicj4KQWZ0ZXIgcjY2MDYyLCB5b3UnbGwgc2VlIHRoZSBhbGVydHMgaW4gV2Vi
S2l0Lgo8L2h0bWw+Cg==
</data>

          </attachment>
      

    </bug>

</bugzilla>