Bug 1409031 - Document element.isCollection. r?whimboo draft
authorAndreas Tolfsen <ato@sny.no>
Sat, 16 Sep 2017 14:35:41 +0100
changeset 680890 4c1f5c0b87df81d4403d42fd1e16b77dd212acd9
parent 680889 07d5fce1635894852369fc8536d6b18f846656b7
child 680891 9d6baa0a52d8ad1d18e8ac72f7000fce26f51533
push id84664
push userbmo:ato@sny.no
push dateMon, 16 Oct 2017 14:31:31 +0000
reviewerswhimboo
bugs1409031
milestone58.0a1
Bug 1409031 - Document element.isCollection. r?whimboo MozReview-Commit-ID: EPNA642phzp
testing/marionette/element.js
--- a/testing/marionette/element.js
+++ b/testing/marionette/element.js
@@ -598,17 +598,25 @@ function findElements(using, value, root
       }
       return [];
 
     default:
       throw new InvalidSelectorError(`No such strategy: ${using}`);
   }
 }
 
-/** Determines if |obj| is an HTML or JS collection. */
+/**
+ * Determines if <var>obj<var> is an HTML or JS collection.
+ *
+ * @param {*} seq
+ *     Type to determine.
+ *
+ * @return {boolean}
+ *     True if <var>seq</va> is collection.
+ */
 element.isCollection = function(seq) {
   switch (Object.prototype.toString.call(seq)) {
     case "[object Arguments]":
     case "[object Array]":
     case "[object FileList]":
     case "[object HTMLAllCollection]":
     case "[object HTMLCollection]":
     case "[object HTMLFormControlsCollection]":