<?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>135008</bug_id>
          
          <creation_ts>2014-07-16 22:45:23 -0700</creation_ts>
          <short_desc>document.body.hasOwnProperty(&apos;childNodes&apos;) returns false</short_desc>
          <delta_ts>2023-12-29 03:12:53 -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>528+ (Nightly build)</version>
          <rep_platform>iPhone / iPad</rep_platform>
          <op_sys>Other</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>INVALID</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="ShihChi Huang">huge.huang+webkitbug</reporter>
          <assigned_to name="Nobody">webkit-unassigned</assigned_to>
          <cc>annevk</cc>
    
    <cc>foghostor</cc>
    
    <cc>sam</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>1022961</commentid>
    <comment_count>0</comment_count>
    <who name="ShihChi Huang">huge.huang+webkitbug</who>
    <bug_when>2014-07-16 22:45:23 -0700</bug_when>
    <thetext>I cannot use webkit nightly in Yosemite so not sure if it&apos;s still a problem in latest build.

However, both Safari 8.0 and iOS Safari 8.0 returns false while executing below expression

```js
document.body.hasOwnProperty(&apos;childNodes&apos;)
```</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1023126</commentid>
    <comment_count>1</comment_count>
    <who name="Sam Weinig">sam</who>
    <bug_when>2014-07-17 15:42:26 -0700</bug_when>
    <thetext>This is expected, since the childNodes property is now on the prototype.  Is this breaking something for you?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1023152</commentid>
    <comment_count>2</comment_count>
    <who name="ShihChi Huang">huge.huang+webkitbug</who>
    <bug_when>2014-07-17 17:54:06 -0700</bug_when>
    <thetext>May I know what&apos;s the expected behavior? 

in safari prior to ios8 / yosemite and latest stable chrome browser it still returns true while executing document.body.hasOwnProperty(&apos;childNodes&apos;)</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1044429</commentid>
    <comment_count>3</comment_count>
    <who name="Junwei Liang">foghostor</who>
    <bug_when>2014-10-27 23:37:42 -0700</bug_when>
    <thetext>Any update on this?
We have exactly the same problem when call &apos;hasOwnProperty&apos; on DOM elements.
In safari prior to ios8/yosemite, it always returns true!

````js
var el = document.getElementById(&apos;dummy-div-id&apos;);
console.log(el.hasOwnProperty(&apos;className&apos;)); // false
````</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2002210</commentid>
    <comment_count>4</comment_count>
    <who name="Anne van Kesteren">annevk</who>
    <bug_when>2023-12-29 03:12:53 -0800</bug_when>
    <thetext>This is the expected behavior as per comment 1 and all browsers these days agree.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>