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 {};


   [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?

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

This archive was generated by hypermail 2.4.0 : Friday, 17 January 2020 17:14:07 UTC