Bug 1400256 - Fix element.findByLinkText docs. r?whimboo
MozReview-Commit-ID: 86JggzRlwMN
--- a/testing/marionette/element.js
+++ b/testing/marionette/element.js
@@ -393,25 +393,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|.
*