Bug 1409031 - Correct markup for element.getContainer docs. r?whimboo draft
authorAndreas Tolfsen <ato@sny.no>
Mon, 16 Oct 2017 15:28:47 +0100
changeset 680891 9d6baa0a52d8ad1d18e8ac72f7000fce26f51533
parent 680890 4c1f5c0b87df81d4403d42fd1e16b77dd212acd9
child 680892 afc40fa7dbbf6fe1bed4fab9221e78ba709990f3
push id84664
push userbmo:ato@sny.no
push dateMon, 16 Oct 2017 14:31:31 +0000
reviewerswhimboo
bugs1409031
milestone58.0a1
Bug 1409031 - Correct markup for element.getContainer docs. r?whimboo MozReview-Commit-ID: KkfKLxy8cmJ
testing/marionette/element.js
--- a/testing/marionette/element.js
+++ b/testing/marionette/element.js
@@ -808,19 +808,20 @@ element.inViewport = function(el, x = un
       vp.top <= c.y + win.pageYOffset &&
       c.y + win.pageYOffset <= vp.bottom);
 };
 
 /**
  * Gets the element's container element.
  *
  * An element container is defined by the WebDriver
- * specification to be an <option> element in a valid element context
- * (https://html.spec.whatwg.org/#concept-element-contexts), meaning
- * that it has an ancestral element that is either <datalist> or <select>.
+ * specification to be an <tt>&lt;option&gt;</tt> element in a
+ * <a href="https://html.spec.whatwg.org/#concept-element-contexts">valid
+ * element context</a>, meaning that it has an ancestral element
+ * that is either <tt>&lt;datalist&gt;</tt> or <tt>&lt;select&gt;</tt>.
  *
  * If the element does not have a valid context, its container element
  * is itself.
  *
  * @param {Element} el
  *     Element to get the container of.
  *
  * @return {Element}