Skip to content

Commit

Permalink
Don't use .includes yet
Browse files Browse the repository at this point in the history
  • Loading branch information
Sebmaster committed Dec 19, 2016
1 parent 05e0c53 commit 7c2861d
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion lib/jsdom/living/html-collection.js
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@ function resetHTMLCollectionTo(collection, impls) {
}

// Don't override existing named ones
if (keys.includes(value)) {
if (keys.indexOf(value) !== -1) {
return;
}

Expand Down
2 changes: 1 addition & 1 deletion lib/jsdom/living/nodes/Document-impl.js
Original file line number Diff line number Diff line change
Expand Up @@ -653,7 +653,7 @@ class DocumentImpl extends NodeImpl {
"Cannot create CDATA sections in HTML documents");
}

if (data.includes("]]>")) {
if (data.indexOf("]]>") !== -1) {
throw new DOMException(DOMException.INVALID_CHARACTER_ERR,
"CDATA section data cannot contain the string \"]]>\"");
}
Expand Down

0 comments on commit 7c2861d

Please sign in to comment.