Skip to content

Commit

Permalink
Escape null in WebIDL2JSValueAsUnsupported
Browse files Browse the repository at this point in the history
  • Loading branch information
TimothyGu authored and domenic committed May 27, 2019
1 parent 93944f6 commit c1b4591
Show file tree
Hide file tree
Showing 8 changed files with 15 additions and 15 deletions.
4 changes: 2 additions & 2 deletions lib/jsdom/living/attributes/NamedNodeMap.webidl
@@ -1,8 +1,8 @@
[Exposed=Window, LegacyUnenumerableNamedProperties]
interface NamedNodeMap {
readonly attribute unsigned long length;
[WebIDL2JSValueAsUnsupported=null] getter Attr? item(unsigned long index);
[WebIDL2JSValueAsUnsupported=null] getter Attr? getNamedItem(DOMString qualifiedName);
[WebIDL2JSValueAsUnsupported=_null] getter Attr? item(unsigned long index);
[WebIDL2JSValueAsUnsupported=_null] getter Attr? getNamedItem(DOMString qualifiedName);
Attr? getNamedItemNS(DOMString? namespace, DOMString localName);
[CEReactions] Attr? setNamedItem(Attr attr);
[CEReactions] Attr? setNamedItemNS(Attr attr);
Expand Down
2 changes: 1 addition & 1 deletion lib/jsdom/living/file-api/FileList.webidl
@@ -1,5 +1,5 @@
[Exposed=(Window,Worker), Serializable]
interface FileList {
[WebIDL2JSValueAsUnsupported=null] getter File? item(unsigned long index);
[WebIDL2JSValueAsUnsupported=_null] getter File? item(unsigned long index);
readonly attribute unsigned long length;
};
12 changes: 6 additions & 6 deletions lib/jsdom/living/navigator/Navigator.webidl
Expand Up @@ -55,16 +55,16 @@ interface NavigatorPlugins {
interface PluginArray {
void refresh(optional boolean reload = false);
readonly attribute unsigned long length;
[WebIDL2JSValueAsUnsupported=null] getter Plugin? item(unsigned long index);
[WebIDL2JSValueAsUnsupported=null] getter Plugin? namedItem(DOMString name);
[WebIDL2JSValueAsUnsupported=_null] getter Plugin? item(unsigned long index);
[WebIDL2JSValueAsUnsupported=_null] getter Plugin? namedItem(DOMString name);
};

[Exposed=Window,
LegacyUnenumerableNamedProperties]
interface MimeTypeArray {
readonly attribute unsigned long length;
[WebIDL2JSValueAsUnsupported=null] getter MimeType? item(unsigned long index);
[WebIDL2JSValueAsUnsupported=null] getter MimeType? namedItem(DOMString name);
[WebIDL2JSValueAsUnsupported=_null] getter MimeType? item(unsigned long index);
[WebIDL2JSValueAsUnsupported=_null] getter MimeType? namedItem(DOMString name);
};

[Exposed=Window,
Expand All @@ -74,8 +74,8 @@ interface Plugin {
readonly attribute DOMString description;
readonly attribute DOMString filename;
readonly attribute unsigned long length;
[WebIDL2JSValueAsUnsupported=null] getter MimeType? item(unsigned long index);
[WebIDL2JSValueAsUnsupported=null] getter MimeType? namedItem(DOMString name);
[WebIDL2JSValueAsUnsupported=_null] getter MimeType? item(unsigned long index);
[WebIDL2JSValueAsUnsupported=_null] getter MimeType? namedItem(DOMString name);
};

[Exposed=Window]
Expand Down
2 changes: 1 addition & 1 deletion lib/jsdom/living/nodes/DOMTokenList.webidl
@@ -1,7 +1,7 @@
[Exposed=Window]
interface DOMTokenList {
readonly attribute unsigned long length;
[WebIDL2JSValueAsUnsupported=null] getter DOMString? item(unsigned long index);
[WebIDL2JSValueAsUnsupported=_null] getter DOMString? item(unsigned long index);
boolean contains(DOMString token);
[CEReactions] void add(DOMString... tokens);
[CEReactions] void remove(DOMString... tokens);
Expand Down
4 changes: 2 additions & 2 deletions lib/jsdom/living/nodes/HTMLCollection.webidl
@@ -1,6 +1,6 @@
[Exposed=Window, LegacyUnenumerableNamedProperties]
interface HTMLCollection {
readonly attribute unsigned long length;
[WebIDL2JSValueAsUnsupported=null] getter Element? item(unsigned long index);
[WebIDL2JSValueAsUnsupported=null] getter Element? namedItem(DOMString name);
[WebIDL2JSValueAsUnsupported=_null] getter Element? item(unsigned long index);
[WebIDL2JSValueAsUnsupported=_null] getter Element? namedItem(DOMString name);
};
2 changes: 1 addition & 1 deletion lib/jsdom/living/nodes/HTMLSelectElement.webidl
Expand Up @@ -14,7 +14,7 @@ interface HTMLSelectElement : HTMLElement {

[SameObject] readonly attribute HTMLOptionsCollection options;
[CEReactions] attribute unsigned long length;
[WebIDL2JSValueAsUnsupported=null] getter Element? item(unsigned long index);
[WebIDL2JSValueAsUnsupported=_null] getter Element? item(unsigned long index);
HTMLOptionElement? namedItem(DOMString name);
[CEReactions] void add((HTMLOptionElement or HTMLOptGroupElement) element, optional (HTMLElement or long)? before = null);
[CEReactions] void remove(); // ChildNode overload
Expand Down
2 changes: 1 addition & 1 deletion lib/jsdom/living/nodes/NodeList.webidl
@@ -1,6 +1,6 @@
[Exposed=Window]
interface NodeList {
[WebIDL2JSValueAsUnsupported=null] getter Node? item(unsigned long index);
[WebIDL2JSValueAsUnsupported=_null] getter Node? item(unsigned long index);
readonly attribute unsigned long length;
iterable<Node>;
};
2 changes: 1 addition & 1 deletion lib/jsdom/living/webstorage/Storage.webidl
Expand Up @@ -2,7 +2,7 @@
interface Storage {
readonly attribute unsigned long length;
DOMString? key(unsigned long index);
[WebIDL2JSValueAsUnsupported=null] getter DOMString? getItem(DOMString key);
[WebIDL2JSValueAsUnsupported=_null] getter DOMString? getItem(DOMString key);
setter void setItem(DOMString key, DOMString value);
deleter void removeItem(DOMString key);
void clear();
Expand Down

0 comments on commit c1b4591

Please sign in to comment.