- From: Ms2ger <notifications@github.com>
- Date: Tue, 22 Jan 2019 08:07:30 -0800
- To: heycam/webidl <webidl@noreply.github.com>
- Cc: Subscribed <subscribed@noreply.github.com>
- Message-ID: <heycam/webidl/pull/625/c456456437@github.com>
I haven't yet been able to observe the named property visibility algorithm in either Chrome or WebKit, which makes this change unobservable there. <details> <summary>Test case</summary> ```html <!DOCTYPE html> <span id=x></span> <script> var c = document.getElementsByTagName("span"); c.__proto__ = new Proxy(Storage.prototype, { has(_, p) { w("has " + p); return true; }, get(_, p) { w("get " + p); return "from proto" }, }); w("===========") w(c.x) w("===========") c["x"] = "foo"; w("===========") w(c.x) w("===========") </script> ``` Chrome: ``` log: =========== log: get x log: from proto log: =========== log: =========== log: get x log: from proto log: =========== ``` WebKit: ``` log: =========== log: object "[object HTMLSpanElement]" (208 props: title="", lang="", translate=true, dir=""...) log: =========== log: =========== log: object "[object HTMLSpanElement]" (208 props: title="", lang="", translate=true, dir=""...) log: =========== ``` Gecko: ``` log: =========== log: has x log: get x log: from proto log: =========== log: has x log: =========== log: has x log: get x log: from proto log: =========== ``` </details> -- You are receiving this because you are subscribed to this thread. Reply to this email directly or view it on GitHub: https://github.com/heycam/webidl/pull/625#issuecomment-456456437
Received on Tuesday, 22 January 2019 16:07:52 UTC