W3C home > Mailing lists > Public > www-svg@w3.org > March 2006

Re: SVG12: SVGGlobal::document vs AbstractView

From: Bjoern Hoehrmann <derhoermi@gmx.net>
Date: Fri, 17 Mar 2006 20:29:26 +0100
To: "Jon Ferraiolo" <jonf@adobe.com>
Cc: <doug.schepers@vectoreal.com>, <www-svg@w3.org>
Message-ID: <rm2m12p5nskcr42vjeaqpnv4eon54c3mr1@hive.bjoern.hoehrmann.de>

* Jon Ferraiolo wrote:
>For ECMAScript, the entries on Global/SVGGlobal interface are supposed
>to be attached to the rootmost object within the ECMAScript scripting
>context, which means the Window object. Your proposed (a) would result
>in a 'document' attribute on the Window object which is of type
>"DocumentView" instead of type "Document". 

Since "The DocumentView interface is implemented by Document objects in
DOM implementations supporting DOM Views" I don't think this would be a
problem. The object would have all the methods and attributes from all
the interfaces implemented on the Document, SVGDocument, DocumentEvent,
DocumentTraversal, ... for the ECMAScript binding it does not make much
of a difference what the spec says here. It does make a difference for
IDL conformance, strongly typed languages, component models, ... For
those we would need to either do what I propose or drop what I propose
entirely, as far as I can tell.
-- 
Björn Höhrmann · mailto:bjoern@hoehrmann.de · http://bjoern.hoehrmann.de
Weinh. Str. 22 · Telefon: +49(0)621/4309674 · http://www.bjoernsworld.de
68309 Mannheim · PGP Pub. KeyID: 0xA4357E78 · http://www.websitedev.de/ 
Received on Friday, 17 March 2006 19:29:28 GMT

This archive was generated by hypermail 2.3.1 : Friday, 8 March 2013 15:54:34 GMT