<?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>43677</bug_id>
          
          <creation_ts>2010-08-07 13:28:01 -0700</creation_ts>
          <short_desc>document-&gt;documentElement can always be null</short_desc>
          <delta_ts>2010-08-07 15:40:41 -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>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Adam Barth">abarth</reporter>
          <assigned_to name="Adam Barth">abarth</assigned_to>
          <cc>sam</cc>
    
    <cc>skylined</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>261757</commentid>
    <comment_count>0</comment_count>
    <who name="Adam Barth">abarth</who>
    <bug_when>2010-08-07 13:28:01 -0700</bug_when>
    <thetext>document-&gt;documentElement can always be null</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>261758</commentid>
    <comment_count>1</comment_count>
      <attachid>63824</attachid>
    <who name="Adam Barth">abarth</who>
    <bug_when>2010-08-07 13:28:45 -0700</bug_when>
    <thetext>Created attachment 63824
Patch</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>261759</commentid>
    <comment_count>2</comment_count>
      <attachid>63824</attachid>
    <who name="Sam Weinig">sam</who>
    <bug_when>2010-08-07 13:32:04 -0700</bug_when>
    <thetext>Comment on attachment 63824
Patch

Looks good. Is there a test we can add?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>261760</commentid>
    <comment_count>3</comment_count>
    <who name="Adam Barth">abarth</who>
    <bug_when>2010-08-07 13:39:37 -0700</bug_when>
    <thetext>Probably.  You just need to grab an object that has this method and then remove the &lt;html&gt; element from the document, and then call the method.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>261789</commentid>
    <comment_count>4</comment_count>
    <who name="Adam Barth">abarth</who>
    <bug_when>2010-08-07 14:50:31 -0700</bug_when>
    <thetext>Here&apos;s the repro:

&lt;body onload=&quot;document.open();window.styleMedia.matchMedium();&quot;&gt;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>261791</commentid>
    <comment_count>5</comment_count>
    <who name="Adam Barth">abarth</who>
    <bug_when>2010-08-07 14:50:46 -0700</bug_when>
    <thetext>*** Bug 43139 has been marked as a duplicate of this bug. ***</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>261796</commentid>
    <comment_count>6</comment_count>
    <who name="Adam Barth">abarth</who>
    <bug_when>2010-08-07 15:40:41 -0700</bug_when>
    <thetext>Committed r64925: &lt;http://trac.webkit.org/changeset/64925&gt;</thetext>
  </long_desc>
      
          <attachment
              isobsolete="0"
              ispatch="1"
              isprivate="0"
          >
            <attachid>63824</attachid>
            <date>2010-08-07 13:28:45 -0700</date>
            <delta_ts>2010-08-07 13:32:04 -0700</delta_ts>
            <desc>Patch</desc>
            <filename>bug-43677-20100807132843.patch</filename>
            <type>text/plain</type>
            <size>1282</size>
            <attacher name="Adam Barth">abarth</attacher>
            
              <data encoding="base64">ZGlmZiAtLWdpdCBhL1dlYkNvcmUvQ2hhbmdlTG9nIGIvV2ViQ29yZS9DaGFuZ2VMb2cKaW5kZXgg
ZDlhNWNjMDBiNGJhOGZkZjBlYTBiZThmMDZiOTdhMTdiYjEzOWZmNi4uMmVkMmQyNmJmOWFkMjV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kBAIC01Niw3
ICs1Niw4IEBAIGJvb2wgU3R5bGVNZWRpYTo6bWF0Y2hNZWRpdW0oY29uc3QgU3RyaW5nJiBxdWVy
eSkgY29uc3QKICAgICBEb2N1bWVudCogZG9jdW1lbnQgPSBtX2ZyYW1lLT5kb2N1bWVudCgpOwog
ICAgIEFTU0VSVChkb2N1bWVudCk7CiAgICAgRWxlbWVudCogZG9jdW1lbnRFbGVtZW50ID0gZG9j
dW1lbnQtPmRvY3VtZW50RWxlbWVudCgpOwotICAgIEFTU0VSVChkb2N1bWVudEVsZW1lbnQpOwor
ICAgIGlmICghZG9jdW1lbnRFbGVtZW50KQorICAgICAgICByZXR1cm4gZmFsc2U7CiAKICAgICBD
U1NTdHlsZVNlbGVjdG9yKiBzdHlsZVNlbGVjdG9yID0gZG9jdW1lbnQtPnN0eWxlU2VsZWN0b3Io
KTsKICAgICBpZiAoIXN0eWxlU2VsZWN0b3IpCg==
</data>
<flag name="review"
          id="52244"
          type_id="1"
          status="+"
          setter="sam"
    />
          </attachment>
      

    </bug>

</bugzilla>