Bug 815928 part 4: Fix typo s/elemnet/element/ in comments & tests. DONTBUILD, rs=Waldo
authorDaniel Holbert <dholbert@cs.stanford.edu>
Tue, 27 Nov 2012 19:15:36 -0800
changeset 114326 50373599d928e4f17e9ab052457efec0cf65e88c
parent 114325 226112eeb3d3ab13f7f76bf6b32c6592858ace56
child 114327 8f83993bd9023c96928e89b8182da491c999ac51
push id23913
push useremorley@mozilla.com
push dateWed, 28 Nov 2012 17:11:31 +0000
treeherdermozilla-central@17c267a881cf [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersWaldo
bugs815928
milestone20.0a1
first release with
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
last release without
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
Bug 815928 part 4: Fix typo s/elemnet/element/ in comments & tests. DONTBUILD, rs=Waldo
accessible/tests/mochitest/tree/test_aria_globals.html
content/html/content/src/nsHTMLInputElement.h
content/html/content/src/nsHTMLTextAreaElement.cpp
content/html/content/test/forms/test_input_list_attribute.html
layout/reftests/css-ui-invalid/button/button-invalid.html
layout/reftests/css-ui-invalid/button/button-valid.html
layout/reftests/css-ui-valid/button/button-invalid.html
--- a/accessible/tests/mochitest/tree/test_aria_globals.html
+++ b/accessible/tests/mochitest/tree/test_aria_globals.html
@@ -33,17 +33,17 @@
         "live",
         "owns",
         "relevant"
       ];
 
       // Elements having ARIA global state or properties or referred by another
       // element must be accessible.
       ok(isAccessible("pawn"),
-         "Must be accessible because referred by another elemnet.");
+         "Must be accessible because referred by another element.");
 
       for (var idx = 0; idx < globalIds.length; idx++) {
         ok(isAccessible(globalIds[idx]),
            "Must be accessible becuase of " + "aria-" + globalIds[idx] +
            " presence");
       }
 
       // Unfocusable elements, having ARIA global state or property with a valid
--- a/content/html/content/src/nsHTMLInputElement.h
+++ b/content/html/content/src/nsHTMLInputElement.h
@@ -219,17 +219,17 @@ public:
   nsresult GetValidationMessage(nsAString& aValidationMessage,
                                 ValidityStateType aType);
   /**
    * Update the value missing validity state for radio elements when they have
    * a group.
    *
    * @param aIgnoreSelf Whether the required attribute and the checked state
    * of the current radio should be ignored.
-   * @note This method shouldn't be called if the radio elemnet hasn't a group.
+   * @note This method shouldn't be called if the radio element hasn't a group.
    */
   void     UpdateValueMissingValidityStateForRadio(bool aIgnoreSelf);
 
   /**
    * Set filters to the filePicker according to the accept attribute value.
    *
    * See:
    * http://dev.w3.org/html5/spec/forms.html#attr-input-accept
@@ -512,17 +512,17 @@ protected:
   nsresult SetDefaultValueAsValue();
 
   virtual void SetDirectionIfAuto(bool aAuto, bool aNotify);
 
   /**
    * Return if an element should have a specific validity UI
    * (with :-moz-ui-invalid and :-moz-ui-valid pseudo-classes).
    *
-   * @return Whether the elemnet should have a validity UI.
+   * @return Whether the element should have a validity UI.
    */
   bool ShouldShowValidityUI() const {
     /**
      * Always show the validity UI if the form has already tried to be submitted
      * but was invalid.
      *
      * Otherwise, show the validity UI if the element's value has been changed.
      */
--- a/content/html/content/src/nsHTMLTextAreaElement.cpp
+++ b/content/html/content/src/nsHTMLTextAreaElement.cpp
@@ -235,17 +235,17 @@ protected:
 
   virtual nsresult AfterSetAttr(int32_t aNamespaceID, nsIAtom *aName,
                                 const nsAttrValue* aValue, bool aNotify);
 
   /**
    * Return if an element should have a specific validity UI
    * (with :-moz-ui-invalid and :-moz-ui-valid pseudo-classes).
    *
-   * @return Whether the elemnet should have a validity UI.
+   * @return Whether the element should have a validity UI.
    */
   bool ShouldShowValidityUI() const {
     /**
      * Always show the validity UI if the form has already tried to be submitted
      * but was invalid.
      *
      * Otherwise, show the validity UI if the element's value has been changed.
      */
--- a/content/html/content/test/forms/test_input_list_attribute.html
+++ b/content/html/content/test/forms/test_input_list_attribute.html
@@ -45,28 +45,28 @@ function test3(aContent, aInput) {
   var datalist = document.createElement("datalist");
   datalist.id = 'd';
 
   aInput.setAttribute('list', 'd');
 
   return null;
 }
 
-// If one of the elemnet isn't in doc.
+// If one of the element isn't in doc.
 function test4(aContent, aInput) {
   var datalist = document.createElement("datalist");
   datalist.id = 'd';
 
   aContent.appendChild(aInput);
   aInput.setAttribute('list', 'd');
 
   return null;
 }
 
-// If one of the elemnet isn't in doc.
+// If one of the element isn't in doc.
 function test5(aContent, aInput) {
   var datalist = document.createElement("datalist");
   datalist.id = 'd';
 
   aContent.appendChild(datalist);
   aInput.setAttribute('list', 'd');
 
   return null;
--- a/layout/reftests/css-ui-invalid/button/button-invalid.html
+++ b/layout/reftests/css-ui-invalid/button/button-invalid.html
@@ -1,8 +1,8 @@
 <!DOCTYPE html>
 <html class="reftest-wait">
-  <!-- Test: button elemnet is never affected by :-moz-ui-invalid. -->
+  <!-- Test: button element is never affected by :-moz-ui-invalid. -->
   <link rel='stylesheet' type='text/css' href='style.css'>
   <body onload="document.getElementById('b').setCustomValidity('foo'); document.documentElement.className='';">
     <button class='notinvalid' id='b'></button>
   </body>
 </html>
--- a/layout/reftests/css-ui-invalid/button/button-valid.html
+++ b/layout/reftests/css-ui-invalid/button/button-valid.html
@@ -1,8 +1,8 @@
 <!DOCTYPE html>
 <html>
-  <!-- Test: button elemnet is never affected by :-moz-ui-invalid. -->
+  <!-- Test: button element is never affected by :-moz-ui-invalid. -->
   <link rel='stylesheet' type='text/css' href='style.css'>
   <body>
     <button class='notinvalid'</button>
   </body>
 </html>
--- a/layout/reftests/css-ui-valid/button/button-invalid.html
+++ b/layout/reftests/css-ui-valid/button/button-invalid.html
@@ -1,8 +1,8 @@
 <!DOCTYPE html>
 <html class="reftest-wait">
-  <!-- Test: button elemnet is never affected by :-moz-ui-valid. -->
+  <!-- Test: button element is never affected by :-moz-ui-valid. -->
   <link rel='stylesheet' type='text/css' href='style.css'>
   <body onload="document.getElementById('b').setCustomValidity('foo'); document.documentElement.className='';">
     <button class='notvalid' id='b'></button>
   </body>
 </html>