Re: [heycam/webidl] How to do aliases of legacy interfaces (HTMLDocument, WebKitCSSMatrix...) (#362)

So an alternative could be to use `NamedConstructor`. It means `WebKitCSSMatrix === DOMMatrix` is false but `WebKitCSSMatrix.prototype === DOMMatrix.prototype` is true. It also allows using a different signature for the old name; e.g. we could have the string argument only for `WebKitCSSMatrix`...

I searched on httparchive, nerdydata.com, github.com, and couldn't find any instance of "WebKitCSSMatrix.prototype" (just 1 in nerdydata that was in a JS comment).

Would `NamedConstructor` work for `webkitURL`?

An alias is probably cleaner, but thought I'd bring this up as a possibility...

-- 
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/heycam/webidl/issues/362#issuecomment-301702127

Received on Tuesday, 16 May 2017 07:43:46 UTC