Re: Proposal: getStyleAs(property, primitiveValue)

2009/9/25 Garrett Smith <dhtmlkitchen@gmail.com>:
> On Fri, Sep 25, 2009 at 5:05 AM, Anne van Kesteren <annevk@opera.com> wrote:
>> On Thu, 24 Sep 2009 20:45:51 +0200, Garrett Smith <dhtmlkitchen@gmail.com>
>> wrote:
>>>
>>> document is a property of window. It has been that way for many years
>>> before there was ever an AbstractView.
>>>
>>> AbstractView is relatively new, in contrast to nonstandard window and
>>> its "document" property.
>>
>> Are you talking about implementations or specifications?
>
> Implementations.
>
> The global window property is much older, back into the 90's, before I
> became involved in web development.
>
> As far as the DOM
>> specifications are concerned AbstractView is relatively old and document is
>> its sole member:
>>
>> http://www.w3.org/TR/DOM-Level-2-Views/views.html
>>
>
> Still doesn't say that an AbstractView is window, though.
>

HTML5 says so, at <http://www.whatwg.org/html5#default-view>
This means that everything that belongs to AbstractView or defaultView
(such as getComputedStyle or document) is exposed on window, and by
extension the ES global object.
Any other behaviour is just a bug.

Giovanni

Received on Saturday, 26 September 2009 17:41:32 UTC