W3C home > Mailing lists > Public > www-style@w3.org > September 2009

Re: Proposal: getStyleAs(property, primitiveValue)

From: Giovanni Campagna <scampa.giovanni@gmail.com>
Date: Sat, 26 Sep 2009 19:40:46 +0200
Message-ID: <65307430909261040k5baaeb2ei1942c3e6570794ea@mail.gmail.com>
To: Garrett Smith <dhtmlkitchen@gmail.com>
Cc: Anne van Kesteren <annevk@opera.com>, Řyvind Stenhaug <oyvinds@opera.com>, www-style <www-style@w3.org>
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 GMT

This archive was generated by hypermail 2.3.1 : Tuesday, 26 March 2013 17:20:21 GMT