<?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>12735</bug_id>
          
          <creation_ts>2007-02-11 10:18:55 -0800</creation_ts>
          <short_desc>innerHTML for &lt;pre&gt; element is not markup but = innerText</short_desc>
          <delta_ts>2007-03-02 15:16:07 -0800</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>420+</version>
          <rep_platform>Mac</rep_platform>
          <op_sys>OS X 10.5</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>FIXED</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords>InRadar</keywords>
          <priority>P4</priority>
          <bug_severity>Trivial</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Stefan Frey">stele</reporter>
          <assigned_to name="Nobody">webkit-unassigned</assigned_to>
          <cc>abob</cc>
    
    <cc>ap</cc>
    
    <cc>justin.garcia</cc>
    
    <cc>msamuel</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>24246</commentid>
    <comment_count>0</comment_count>
    <who name="Stefan Frey">stele</who>
    <bug_when>2007-02-11 10:18:55 -0800</bug_when>
    <thetext>if a page contains something like

&lt;pre&gt;
   some text describing markup, eg &amp;lt;b&amp;gt;
&lt;/pre&gt;

the html returned by inner/outerHTML of any of its parents is

&lt;pre&gt;
   some text describing markup, eg &lt;b&gt;
&lt;/pre&gt;

I assume that &quot;startMarkup&quot; in &quot;markup.cpp&quot; should not call &quot;stringValueForRange&quot; for a &quot;preTag&quot;, but use the reular path. If I remove the preTag from the &quot;if&quot; at the beginning of the &quot;case Node::TEXT_NODE&quot; I get the desired result.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>24037</commentid>
    <comment_count>1</comment_count>
      <attachid>13126</attachid>
    <who name="Stefan Frey">stele</who>
    <bug_when>2007-02-12 01:50:09 -0800</bug_when>
    <thetext>Created attachment 13126
Check the innerHTML in the WebInspector!</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>23984</commentid>
    <comment_count>2</comment_count>
    <who name="Darin Adler">darin</who>
    <bug_when>2007-02-12 11:45:49 -0800</bug_when>
    <thetext>*** Bug 12744 has been marked as a duplicate of this bug. ***</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>23981</commentid>
    <comment_count>3</comment_count>
    <who name="Darin Adler">darin</who>
    <bug_when>2007-02-12 11:46:14 -0800</bug_when>
    <thetext>Bug 12744 has a good test case.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>23973</commentid>
    <comment_count>4</comment_count>
    <who name="Geoffrey Garen">ggaren</who>
    <bug_when>2007-02-12 12:17:53 -0800</bug_when>
    <thetext>I think a dup of this is in radar, assigned to Justin.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>20702</commentid>
    <comment_count>5</comment_count>
    <who name="Justin Garcia">justin.garcia</who>
    <bug_when>2007-03-02 13:45:42 -0800</bug_when>
    <thetext>&lt;rdar://problem/4545040&gt;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>20448</commentid>
    <comment_count>6</comment_count>
    <who name="Justin Garcia">justin.garcia</who>
    <bug_when>2007-03-02 14:55:41 -0800</bug_when>
    <thetext>r19948</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>20449</commentid>
    <comment_count>7</comment_count>
    <who name="Justin Garcia">justin.garcia</who>
    <bug_when>2007-03-02 15:16:07 -0800</bug_when>
    <thetext>r19949</thetext>
  </long_desc>
      
          <attachment
              isobsolete="0"
              ispatch="0"
              isprivate="0"
          >
            <attachid>13126</attachid>
            <date>2007-02-12 01:50:09 -0800</date>
            <delta_ts>2007-02-12 01:50:09 -0800</delta_ts>
            <desc>Check the innerHTML in the WebInspector!</desc>
            <filename>innerHTML-test.html</filename>
            <type>text/html</type>
            <size>274</size>
            <attacher name="Stefan Frey">stele</attacher>
            
              <data encoding="base64">PGh0bWw+CiAgPGhlYWQ+CiAgPC9oZWFkPgogIDxib2R5Pgo8cHJlPgoKJmx0O2h0bWwgeG1sbnM9
Imh0dHA6Ly93d3cudzMub3JnLzE5OTkveGh0bWwiIHhtbDpsYW5nPSJlbiIgbGFuZz0iZW4iJmd0
OwogICZsdDtoZWFkJmd0OwogICAgJmx0O3RpdGxlJmd0O2lubmVyIEhUTUwgdGVzdCZsdDsvdGl0
bGUmZ3Q7CiAgJmx0Oy9oZWFkJmd0OwogICZsdDtib2R5Jmd0OwogIC4uLgogICZsdDsvYm9keSZn
dDsKICAmbHQ7L2h0bWwmZ3Q7Cgo8L3ByZT4KCiAgPC9ib2R5Pgo8L2h0bWw+Cg==
</data>

          </attachment>
      

    </bug>

</bugzilla>