Bug 1400256 - Document element.isCollection. r?whimboo draft
authorAndreas Tolfsen <ato@sny.no>
Sat, 16 Sep 2017 14:35:41 +0100
changeset 680844 6286dd066bd5e4a4f563c68bd7ff5c825b0fee3a
parent 680843 e98c5edbbb4823770bf3dc2c47e59fdddbaab832
child 680845 a01742ce1b7c3d81510f987a33ce6ccb2bb84092
push id84656
push userbmo:ato@sny.no
push dateMon, 16 Oct 2017 14:02:26 +0000
reviewerswhimboo
bugs1400256
milestone58.0a1
Bug 1400256 - Document element.isCollection. r?whimboo MozReview-Commit-ID: EPNA642phzp
testing/marionette/element.js
--- a/testing/marionette/element.js
+++ b/testing/marionette/element.js
@@ -617,17 +617,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]":