W3C home > Mailing lists > Public > public-script-coord@w3.org > July to September 2011

Re: [whatwg] Unforgeable document property

From: Ian Hickson <ian@hixie.ch>
Date: Fri, 23 Sep 2011 18:54:10 +0000 (UTC)
To: David Bruant <bruant@enseirb-matmeca.fr>
cc: public-script-coord@w3.org
Message-ID: <Pine.LNX.4.64.1109231853160.16440@ps20323.dreamhostps.com>
On Fri, 23 Sep 2011, David Bruant wrote:
>
> [with correct public-script-coord address]
> 
> Le 23/09/2011 11:54, David Bruant a écrit :
> > Hi,
> > 
> > I have noticed on a recent commit [1] that the "document" property of the
> > window object is now defined as [[Unforgeable]] (and still readonly). As per
> > WebIDL, it makes the property non-configurable (in ECMAScript 5 terms).
> > Consequently, it will make impossible to wrap the object document with an
> > ES.next proxy [2] and replace the "document" property value with the wrapped
> > document.
> > 
> > I think that there is definitely a use case here as replacing the document
> > with a proxy could help developers fixing the DOM and adding workarounds to
> > browser bugs. Consequently, I think the "document" property of the window
> > object should be kept configurable.

Is this compatible with the Web?

The change was made to align the spec with implementations.

-- 
Ian Hickson               U+1047E                )\._.,--....,'``.    fL
http://ln.hixie.ch/       U+263A                /,   _.. \   _\  ;`._ ,.
Things that are impossible just take longer.   `._.-(,_..'--(,_..'`-.;.'
Received on Friday, 23 September 2011 18:57:05 UTC

This archive was generated by hypermail 2.3.1 : Wednesday, 8 May 2013 19:30:04 UTC