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

I think that aliases (`LegacyAlias=(SVGMatrix,WebKitCSSMatrix)`) would be better, because we already have aliases for a number of things in Chromium, and when things are exactly identical there are less things that can go wrong when trying to move from a prefixed API to an unprefixed one.

It's *possible* that `NamedConstructor` would work out, but I don't volunteer to do the research. These are the existing aliases in Chromium:
* WebKitTransitionEvent
* WebKitAnimationEvent
* webkitURL
* WebKitMutationObserver
* webkitMediaStream
* webkitRTCPeerConnection

There are also a bunch of webkitSpeech*, but they're not only prefixed and use aliases just to keep "webkit" out of most of the code. (You could tell from toString() on the instances of course.)

-- 
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-301764955

Received on Tuesday, 16 May 2017 12:22:34 UTC