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

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