<?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>18101</bug_id>
          
          <creation_ts>2008-03-25 21:44:47 -0700</creation_ts>
          <short_desc>REGRESSION node.innerHTML doesn&apos;t escape &gt; in strings</short_desc>
          <delta_ts>2008-05-14 22:24:01 -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>OS X 10.5</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>DUPLICATE</resolution>
          <dup_id>18976</dup_id>
          
          <bug_file_loc>http://turtle.dojotoolkit.org/~bill/innerHTML.html</bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>P2</priority>
          <bug_severity>Normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>0</everconfirmed>
          <reporter name="Bill Keese">bill</reporter>
          <assigned_to name="Nobody">webkit-unassigned</assigned_to>
          <cc>ap</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>75261</commentid>
    <comment_count>0</comment_count>
    <who name="Bill Keese">bill</who>
    <bug_when>2008-03-25 21:44:47 -0700</bug_when>
    <thetext>By way of example,   getting innerHTML on &lt;button&gt;&amp;gt;&lt;/button&gt; will return &gt; whereas it should return &amp;gt; (like on Safari 3.0, FF, and IE).   See attached test case.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>75262</commentid>
    <comment_count>1</comment_count>
      <attachid>20074</attachid>
    <who name="Bill Keese">bill</who>
    <bug_when>2008-03-25 21:45:45 -0700</bug_when>
    <thetext>Created attachment 20074
little test case.  the alert should show &amp;gt; but instead shows &gt;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>75611</commentid>
    <comment_count>2</comment_count>
    <who name="Alexey Proskuryakov">ap</who>
    <bug_when>2008-03-28 03:00:38 -0700</bug_when>
    <thetext>We do escape &apos;&lt;&apos; and &apos;&amp;&apos; - what is the reason to escape &apos;&gt;&apos;?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>77269</commentid>
    <comment_count>3</comment_count>
    <who name="Bill Keese">bill</who>
    <bug_when>2008-04-11 03:57:45 -0700</bug_when>
    <thetext>(In reply to comment #2)
&gt; We do escape &apos;&lt;&apos; and &apos;&amp;&apos; - what is the reason to escape &apos;&gt;&apos;?
&gt; 

Hmm, well I filed this ticket because it&apos;s causing one of our product&apos;s unit tests to fail (and since Safari 3.1&apos;s behavior was different than all other browsers I tested) but as far as practical issues, I can&apos;t think of anything... OK I will close the bug.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>77270</commentid>
    <comment_count>4</comment_count>
    <who name="Alexey Proskuryakov">ap</who>
    <bug_when>2008-04-11 04:13:05 -0700</bug_when>
    <thetext>Thank you for filing this bug - having seen it will make practical problems caused by this easier to recognize, if we ever encounter any.

Not escaping &apos;&gt;&apos; makes the code slightly faster, so I hesitate to &quot;fix&quot; this pre-emptively.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>80460</commentid>
    <comment_count>5</comment_count>
    <who name="Alexey Proskuryakov">ap</who>
    <bug_when>2008-05-14 22:23:49 -0700</bug_when>
    <thetext>Reopening to close as a duplicate - this was fixed, after all.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>80461</commentid>
    <comment_count>6</comment_count>
    <who name="Alexey Proskuryakov">ap</who>
    <bug_when>2008-05-14 22:24:01 -0700</bug_when>
    <thetext>

*** This bug has been marked as a duplicate of 18976 ***</thetext>
  </long_desc>
      
          <attachment
              isobsolete="0"
              ispatch="0"
              isprivate="0"
          >
            <attachid>20074</attachid>
            <date>2008-03-25 21:45:45 -0700</date>
            <delta_ts>2008-03-25 21:45:45 -0700</delta_ts>
            <desc>little test case.  the alert should show &amp;gt; but instead shows &gt;</desc>
            <filename>innerHTML.html</filename>
            <type>text/html</type>
            <size>214</size>
            <attacher name="Bill Keese">bill</attacher>
            
              <data encoding="base64">PGh0bWw+Cjxib2R5IG9ubG9hZD0iYWxlcnQoZG9jdW1lbnQuZ2V0RWxlbWVudEJ5SWQoJ2J1dHRv
bicpLmlubmVySFRNTCkiPgoJVGhpcyBpcyBhIHRlc3Qgb2YgaW5uZXJIVE1MIHRvIHNlZSBpZiBp
dCBjb252ZXJ0cyBzcGVjaWFsIGNoYXJzIGxpa2UgJmd0OyB0byBlbnRpdGllcy4KCTxidXR0b24g
aWQ9ImJ1dHRvbiI+Jmd0OzwvYnV0dG9uPgo8L2JvZHk+CjwvaHRtbD4KCg==
</data>

          </attachment>
      

    </bug>

</bugzilla>