On 7/16/15 11:45 AM, Travis Leithead wrote:
Now that WebIDL has added FrozenArray<> and dropped T[], it’s time to
switch over! On the other hand, there are a number of specs that have
already gone to Rec that used the old syntax.

Note that since the old syntax was never supported by any UA in any meaningful way I'm aware of, those are basically problems in those specs that should technically have prevented them from going to REC (due to lack of two interoperable implementations).

Looking at the uses of IDL arrays in the relevant specs (links would have helped!):

Recommendations:
·HTML5

Assuming we're talking about <http://www.w3.org/TR/2014/REC-html5-20141028/single-page.html>, I don't see any uses of IDL arrays in this specification. Am I missing something?

·Web Messaging

I'm not sure which specification this is referring to...

Other references:

·CSS OM

Presumably this is Document.styleSheetSets? In practice, I believe no one except Gecko implements this and I therefore don't expect it to make it to REC... Updating this draft to use FrozenArray<> would be possible, of course.

·Web Sockets

I assume we're talking about <http://www.w3.org/TR/2012/CR-websockets-20120920/>. This is just buggy and needs to be fixed as should <https://html.spec.whatwg.org/multipage/comms.html#the-websocket-interface>; it's using an IDL array as an argument, which is pretty much never what's desired even back in the world where IDL arrays existed. Certainly it's not desired here. What Gecko ships is a sequence argument instead. I just checked, and so does Blink. So does WebKit. What do Trident and Edge do?

Note that this is tracked by https://www.w3.org/Bugs/Public/show_bug.cgi?id=28102 at least.

·WebRTC

Are we talking about <http://www.w3.org/TR/2015/WD-webrtc-20150210/>? I don't see usage of IDL arrays here.

Legacy/Deprecated references:

·TypedArrays (replaced by ES2015)

This has no bearing on reality; we should just mark it so somehow and move on. IDL arrays are hardly the only problem in this document...

·Web Intents

This could use some mix of FrozenArray and sequence. But does anyone care about this document?

-Boris

Reply via email to