W3C home > Mailing lists > Public > public-script-coord@w3.org > October to December 2012

XMLDocument and Document.location and WebIDL spec don't play nice together

From: Boris Zbarsky <bzbarsky@MIT.EDU>
Date: Fri, 07 Dec 2012 01:51:16 -0500
Message-ID: <50C191E4.2040904@mit.edu>
To: "public-script-coord@w3.org" <public-script-coord@w3.org>, Anne van Kesteren <annevk@annevk.nl>
http://dom.spec.whatwg.org/#xmldocument says:

   interface XMLDocument : Document {};

http://www.whatwg.org/specs/web-apps/current-work/multipage/dom.html#the-document-object 
says:

   [PutForwards=href, Unforgeable] readonly attribute Location? location;

and http://dev.w3.org/2006/webapi/WebIDL/#Unforgeable says:

   The [Unforgeable] extended attribute [....] also MUST NOT appear on an
   attribute on interface A if there exists another interface B that has
   A as an inherited interface.

Per above, XMLDocument has Document as an inherited interface, so the 
while thing is not valid WebIDL.

I'm not sure why WebIDL has the above requirement, but removing it seems 
like the simplest way forward here, unless it creates some sort of 
security problem I'm missing.  Cameron?

-Boris
Received on Friday, 7 December 2012 07:35:16 UTC

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