<?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>42238</bug_id>
          
          <creation_ts>2010-07-14 00:15:20 -0700</creation_ts>
          <short_desc>Selection dumping code should not dump body&apos;s offset in the document</short_desc>
          <delta_ts>2010-07-14 12:57:20 -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>New Bugs</component>
          <version>528+ (Nightly build)</version>
          <rep_platform>Other</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></keywords>
          <priority>P2</priority>
          <bug_severity>Normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          <blocked>41123</blocked>
          <everconfirmed>1</everconfirmed>
          <reporter name="Eric Seidel (no email)">eric</reporter>
          <assigned_to name="Eric Seidel (no email)">eric</assigned_to>
          <cc>abarth</cc>
    
    <cc>ap</cc>
    
    <cc>eric</cc>
    
    <cc>hyatt</cc>
    
    <cc>webkit.review.bot</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>251004</commentid>
    <comment_count>0</comment_count>
    <who name="Eric Seidel (no email)">eric</who>
    <bug_when>2010-07-14 00:15:20 -0700</bug_when>
    <thetext>Selection dumping code should not dump body&apos;s offset in the document</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>251005</commentid>
    <comment_count>1</comment_count>
      <attachid>61476</attachid>
    <who name="Eric Seidel (no email)">eric</who>
    <bug_when>2010-07-14 00:17:37 -0700</bug_when>
    <thetext>Created attachment 61476
Patch</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>251006</commentid>
    <comment_count>2</comment_count>
    <who name="Eric Seidel (no email)">eric</who>
    <bug_when>2010-07-14 00:18:45 -0700</bug_when>
    <thetext>I&apos;ll probably need to write a little script to update all the layout test results.

This will make our results stop being sensitive to whether or not we allow whitespace nodes between the &lt;head&gt; and the &lt;body&gt; elements.  We have enough tests which are sensitive to that for other reasons already.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>251012</commentid>
    <comment_count>3</comment_count>
    <who name="Eric Seidel (no email)">eric</who>
    <bug_when>2010-07-14 01:02:08 -0700</bug_when>
    <thetext>I wrote a little script to update all the results:
#!/usr/bin/python

import fileinput
import os.path
import re


# Use IGNORECASE because &quot;BODY&quot; will be &quot;body&quot; in xhtml.
position_regexp = re.compile(r&quot;child \d {BODY} .* of document&quot;, re.IGNORECASE)


for (dirpath, dirnames, filenames) in os.walk(&quot;.&quot;):
    for name in filenames:
        if not name.endswith(&quot;-expected.txt&quot;):
            continue
        full_path = os.path.join(dirpath, name)
        file_input = fileinput.input(full_path, inplace=True)
        for line in file_input:
            print position_regexp.sub(&quot;body&quot;, line),</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>251013</commentid>
    <comment_count>4</comment_count>
      <attachid>61476</attachid>
    <who name="Nikolas Zimmermann">zimmermann</who>
    <bug_when>2010-07-14 01:05:00 -0700</bug_when>
    <thetext>Comment on attachment 61476
Patch

rs=me. Remember, that you probably have to update results on all platforms.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>251047</commentid>
    <comment_count>5</comment_count>
    <who name="Eric Seidel (no email)">eric</who>
    <bug_when>2010-07-14 02:08:31 -0700</bug_when>
    <thetext>I am having to land this in pieces due to SVN trouble.

http://trac.webkit.org/changeset/63291
http://trac.webkit.org/changeset/63292
so far. 2 more to go.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>251052</commentid>
    <comment_count>6</comment_count>
    <who name="WebKit Review Bot">webkit.review.bot</who>
    <bug_when>2010-07-14 02:17:37 -0700</bug_when>
    <thetext>http://trac.webkit.org/changeset/63292 might have broken GTK Linux 32-bit Debug
The following changes are on the blame list:
http://trac.webkit.org/changeset/63292
http://trac.webkit.org/changeset/63293</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>251054</commentid>
    <comment_count>7</comment_count>
    <who name="Eric Seidel (no email)">eric</who>
    <bug_when>2010-07-14 02:18:30 -0700</bug_when>
    <thetext>http://trac.webkit.org/changeset/63295 is part 3. :)</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>251055</commentid>
    <comment_count>8</comment_count>
    <who name="WebKit Review Bot">webkit.review.bot</who>
    <bug_when>2010-07-14 02:19:01 -0700</bug_when>
    <thetext>http://trac.webkit.org/changeset/63291 might have broken GTK Linux 32-bit Release</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>251058</commentid>
    <comment_count>9</comment_count>
    <who name="Eric Seidel (no email)">eric</who>
    <bug_when>2010-07-14 02:22:06 -0700</bug_when>
    <thetext>Committed r63296: &lt;http://trac.webkit.org/changeset/63296&gt;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>251358</commentid>
    <comment_count>10</comment_count>
    <who name="Alexey Proskuryakov">ap</who>
    <bug_when>2010-07-14 12:31:10 -0700</bug_when>
    <thetext>&gt; Selection dumping code should not dump body&apos;s offset in the document

Is that to avoid visual noise in test results?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>251372</commentid>
    <comment_count>11</comment_count>
    <who name="Eric Seidel (no email)">eric</who>
    <bug_when>2010-07-14 12:57:20 -0700</bug_when>
    <thetext>Basically.  Caused redundant testing.  HTML5 as currently spec&apos;d allows whitespace nodes between &lt;/head&gt; and &lt;body&gt;, thus changing the offset of &lt;body&gt; within &lt;html&gt;.  That part of the spec is currently under some debate, but it&apos;s better to have 100 tests failing because of that change (instead of nearly 1000 which failed before this patch).</thetext>
  </long_desc>
      
          <attachment
              isobsolete="1"
              ispatch="1"
              isprivate="0"
          >
            <attachid>61476</attachid>
            <date>2010-07-14 00:17:37 -0700</date>
            <delta_ts>2010-07-14 01:06:36 -0700</delta_ts>
            <desc>Patch</desc>
            <filename>bug-42238-20100714001736.patch</filename>
            <type>text/plain</type>
            <size>1773</size>
            <attacher name="Eric Seidel (no email)">eric</attacher>
            
              <data encoding="base64">ZGlmZiAtLWdpdCBhL1dlYkNvcmUvQ2hhbmdlTG9nIGIvV2ViQ29yZS9DaGFuZ2VMb2cKaW5kZXgg
N2QyNzA4NjM1YWY5MTgwODkzMmJlY2EwMzE1ZGM2ODdhYTA0Y2I4Ni4uNmI2MWRiOWI2MzUzYTJh
MDgwMTJmNTQwOGU3NTI5MWVmMzIzODY5OSAxMDA2NDQKLS0tIGEvV2ViQ29yZS9DaGFuZ2VMb2cK
KysrIGIvV2ViQ29yZS9DaGFuZ2VMb2cKQEAgLTEsMyArMSwxNiBAQAorMjAxMC0wNy0xNCAgRXJp
YyBTZWlkZWwgIDxlcmljQHdlYmtpdC5vcmc+CisKKyAgICAgICAgUmV2aWV3ZWQgYnkgTk9CT0RZ
IChPT1BTISkuCisKKyAgICAgICAgU2VsZWN0aW9uIGR1bXBpbmcgY29kZSBzaG91bGQgbm90IGR1
bXAgYm9keSdzIG9mZnNldCBpbiB0aGUgZG9jdW1lbnQKKyAgICAgICAgaHR0cHM6Ly9idWdzLndl
YmtpdC5vcmcvc2hvd19idWcuY2dpP2lkPTQyMjM4CisKKyAgICAgICAgVGhpcyByZXF1aXJlcyB1
cGRhdGluZyB0aGUgcmVzdWx0cyBvZiBtYW55IGxheW91dCB0ZXN0cywKKyAgICAgICAgYnV0IGhh
cyBubyBmdW5jdGlvbmFsIGNoYW5nZS4KKworICAgICAgICAqIHJlbmRlcmluZy9SZW5kZXJUcmVl
QXNUZXh0LmNwcDoKKyAgICAgICAgKFdlYkNvcmU6Om5vZGVQb3NpdGlvbik6CisKIDIwMTAtMDct
MTMgIEVyaWMgU2VpZGVsICA8ZXJpY0B3ZWJraXQ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gICAgICAgICAgICAvLyBXZSBkb24n
dCBjYXJlIHdoYXQgb2Zmc2V0IGJvZHkgbWF5IGJlIGluIHRoZSBkb2N1bWVudC4KKyAgICAgICAg
ICAgICAgICByZXN1bHQgKz0gImJvZHkiOworICAgICAgICAgICAgICAgIGJyZWFrOworICAgICAg
ICAgICAgfQogICAgICAgICAgICAgcmVzdWx0ICs9ICJjaGlsZCAiICsgU3RyaW5nOjpudW1iZXIo
bi0+bm9kZUluZGV4KCkpICsgIiB7IiArIGdldFRhZ05hbWUobikgKyAifSI7Ci0gICAgICAgIGVs
c2UKKyAgICAgICAgfSBlbHNlCiAgICAgICAgICAgICByZXN1bHQgKz0gImRvY3VtZW50IjsKICAg
ICB9CiAK
</data>

          </attachment>
      

    </bug>

</bugzilla>