Re: [heycam/webidl] Do indexed getters ever return null? (#532)

OK.  So looking at Firefox, the indexed getters we have that return nullable things are:

     ChromeNodeList.item
     CSSRuleList.item
     CSSValueList.item
     DOMRectList.item
     DOMStringList.item
     DOMTokenList.item
     FileList.item
     GridLines.item
     GridTracks.item
     HTMLAllCollection anonymous getter
     HTMLCollection.item
     HTMLFormControlsCollection.item
     HTMLOptionsCollection.item
     HTMLSelectElement.item
     MediaList.item
     MimeTypeArray.item
     NamedNodeMap.item
     NodeList.item
     PaintRequestList.item
     PluginArray.item
     Plugin.item
     RadioNodeList.item
     StyleSheetList.item
     TouchList.item
     TreeColumns.getColumnAt

(not all of these are defined in specs; I did check the two obvious non-spec ones in ChromeNodeList and TreeColumns and they don't return null).

Also, I have no idea why HTMLAllCollection's anonymous indexed getter is defined to maybe return null.  It can't, obviously.

-- 
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/532#issuecomment-372728641

Received on Tuesday, 13 March 2018 16:28:49 UTC