-
Notifications
You must be signed in to change notification settings - Fork 423
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Support implicit iterable interfaces #235
Changes from 3 commits
bb6ca8c
0e4ebf4
605b247
545daec
a724ac8
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,104 @@ | ||
|
||
///////////////////////////// | ||
/// MSEdge DOM ES6 APIs | ||
///////////////////////////// | ||
|
||
interface AudioTrackList { | ||
[Symbol.iterator](): IterableIterator<AudioTrack> | ||
} | ||
|
||
interface CSSRuleList { | ||
[Symbol.iterator](): IterableIterator<CSSRule> | ||
} | ||
|
||
interface CSSStyleDeclaration { | ||
[Symbol.iterator](): IterableIterator<string> | ||
} | ||
|
||
interface ClientRectList { | ||
[Symbol.iterator](): IterableIterator<ClientRect> | ||
} | ||
|
||
interface DOMStringList { | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. does not seem itrable, https://www.w3.org/TR/DOM-Level-3-Core/core.html#DOMStringList There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. It meets the standard on WHATWG spec: interface DOMStringList {
readonly attribute unsigned long length;
getter DOMString? item(unsigned long index);
boolean contains(DOMString string);
}; It has 1. an indexed property getter and 2. an integer-typed attribute named “length”. |
||
[Symbol.iterator](): IterableIterator<string> | ||
} | ||
|
||
interface DOMTokenList { | ||
[Symbol.iterator](): IterableIterator<string> | ||
} | ||
|
||
interface DataTransferItemList { | ||
[Symbol.iterator](): IterableIterator<File> | ||
} | ||
|
||
interface FileList { | ||
[Symbol.iterator](): IterableIterator<File> | ||
} | ||
|
||
interface HTMLAllCollection { | ||
[Symbol.iterator](): IterableIterator<Element> | ||
} | ||
|
||
interface HTMLCollection { | ||
[Symbol.iterator](): IterableIterator<Element> | ||
} | ||
|
||
interface MSRangeCollection { | ||
[Symbol.iterator](): IterableIterator<Range> | ||
} | ||
|
||
interface MediaList { | ||
[Symbol.iterator](): IterableIterator<string> | ||
} | ||
|
||
interface MimeTypeArray { | ||
[Symbol.iterator](): IterableIterator<Plugin> | ||
} | ||
|
||
interface NamedNodeMap { | ||
[Symbol.iterator](): IterableIterator<Attr> | ||
} | ||
|
||
interface NodeList { | ||
[Symbol.iterator](): IterableIterator<Node> | ||
} | ||
|
||
interface Plugin { | ||
[Symbol.iterator](): IterableIterator<MimeType> | ||
} | ||
|
||
interface PluginArray { | ||
[Symbol.iterator](): IterableIterator<Plugin> | ||
} | ||
|
||
interface SourceBufferList { | ||
[Symbol.iterator](): IterableIterator<SourceBuffer> | ||
} | ||
|
||
interface Storage { | ||
[Symbol.iterator](): IterableIterator<string> | ||
} | ||
|
||
interface StyleSheetList { | ||
[Symbol.iterator](): IterableIterator<StyleSheet> | ||
} | ||
|
||
interface StyleSheetPageList { | ||
[Symbol.iterator](): IterableIterator<CSSPageRule> | ||
} | ||
|
||
interface TextTrackCueList { | ||
[Symbol.iterator](): IterableIterator<TextTrackCue> | ||
} | ||
|
||
interface TextTrackList { | ||
[Symbol.iterator](): IterableIterator<TextTrack> | ||
} | ||
|
||
interface TouchList { | ||
[Symbol.iterator](): IterableIterator<Touch> | ||
} | ||
|
||
interface VideoTrackList { | ||
[Symbol.iterator](): IterableIterator<VideoTrack> | ||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
i would remove
MSEdge
/IE
alltogether.