[Webkit-unassigned] [Bug 183087] Safari not handling undefined global variables with same name as element Id correctly.

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Mon Feb 26 22:41:41 PST 2018


--- Comment #7 from Keith Miller <keith_miller at apple.com> ---
Without looking closer I would guess this is because of the way that JSGlobalObject does getOwnPropertySlot and addGlobalVariable. If you define a variable it won't clear the existing global property, which I assume is the '<div id="someElement"></div>'. And when you do a getOwnPropertySlot on the global object it will see the old global property instead of shadowing. This is just a hunch, I can debug it more thoroughly later.

You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.webkit.org/pipermail/webkit-unassigned/attachments/20180227/ad08d427/attachment-0001.html>

More information about the webkit-unassigned mailing list