Re: [whatwg/webidl] Named properties object / named property visibility algorithm with property on Window.prototype (#607)

I can't tell if this is fixed.

The current spec seems to have been changed at least once since this issue was filed. But I still don't understand something about the current spec.

https://webidl.spec.whatwg.org/#named-properties-object-getownproperty step 4.1 guards [[GetOwnProperty]] with the named property visibility algorithm.

https://webidl.spec.whatwg.org/#dfn-named-property-visibility step 2 says

> If O has an own property named P, then return false.

This implies to me that for a document like 

```html
<iframe id="DOMRect"></iframe>
```

the named properties object should not contain any value for `DOMRect`. But that is not the case in at least Chrome and Firefox: https://jsbin.com/nopokiqocu/1/edit?html,output

-- 
Reply to this email directly or view it on GitHub:
https://github.com/whatwg/webidl/issues/607#issuecomment-2308679426
You are receiving this because you are subscribed to this thread.

Message ID: <whatwg/webidl/issues/607/2308679426@github.com>

Received on Sunday, 25 August 2024 06:48:54 UTC