Bug 1409031 - Fix element.findByLinkText docs. r?whimboo draft
authorAndreas Tolfsen <ato@sny.no>
Thu, 05 Oct 2017 12:56:28 +0100
changeset 680889 07d5fce1635894852369fc8536d6b18f846656b7
parent 680782 c6a2643362a67cdf7a87ac165454fce4b383debb
child 680890 4c1f5c0b87df81d4403d42fd1e16b77dd212acd9
push id84664
push userbmo:ato@sny.no
push dateMon, 16 Oct 2017 14:31:31 +0000
reviewerswhimboo
bugs1409031
milestone58.0a1
Bug 1409031 - Fix element.findByLinkText docs. r?whimboo MozReview-Commit-ID: 86JggzRlwMN
testing/marionette/element.js
--- a/testing/marionette/element.js
+++ b/testing/marionette/element.js
@@ -392,25 +392,26 @@ element.findByXPathAll = function(root, 
   while (el) {
     rv.push(el);
     el = iter.iterateNext();
   }
   return rv;
 };
 
 /**
- * Find all hyperlinks dscendant of |node| which link text is |s|.
+ * Find all hyperlinks descendant of <var>node</var> which link text
+ * is <var>s</var>.
  *
  * @param {DOMElement} node
- *     Where in the DOM hierarchy to being searching.
+ *     Where in the DOM hierarchy to begin searching.
  * @param {string} s
  *     Link text to search for.
  *
  * @return {Array.<DOMAnchorElement>}
- *     Sequence of link elements which text is |s|.
+ *     Sequence of link elements which text is <var>s</var>.
  */
 element.findByLinkText = function(node, s) {
   return filterLinks(node, link => link.text.trim() === s);
 };
 
 /**
  * Find all hyperlinks descendant of |node| which link text contains |s|.
  *