From d7ddf458363f7dace4e3665790624e4c95d3e242 Mon Sep 17 00:00:00 2001 From: Andrea Marchesini Date: Wed, 13 Mar 2013 15:54:24 -0400 Subject: [PATCH] Bug 850346 - Change inputmode to inputMode for nsHTMLInputElement. r=bz --- content/html/content/src/nsHTMLInputElement.cpp | 2 +- .../content/test/forms/test_input_attributes_reflection.html | 2 +- dom/interfaces/html/nsIDOMHTMLInputElement.idl | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/content/html/content/src/nsHTMLInputElement.cpp b/content/html/content/src/nsHTMLInputElement.cpp index 01ce70ba43f..03f1ba69e30 100644 --- a/content/html/content/src/nsHTMLInputElement.cpp +++ b/content/html/content/src/nsHTMLInputElement.cpp @@ -964,7 +964,7 @@ NS_IMPL_ENUM_ATTR_DEFAULT_MISSING_INVALID_VALUES(nsHTMLInputElement, FormMethod, "", kFormDefaultMethod->tag) NS_IMPL_BOOL_ATTR(nsHTMLInputElement, FormNoValidate, formnovalidate) NS_IMPL_STRING_ATTR(nsHTMLInputElement, FormTarget, formtarget) -NS_IMPL_ENUM_ATTR_DEFAULT_VALUE(nsHTMLInputElement, Inputmode, inputmode, +NS_IMPL_ENUM_ATTR_DEFAULT_VALUE(nsHTMLInputElement, InputMode, inputmode, kInputDefaultInputmode->tag) NS_IMPL_BOOL_ATTR(nsHTMLInputElement, Multiple, multiple) NS_IMPL_NON_NEGATIVE_INT_ATTR(nsHTMLInputElement, MaxLength, maxlength) diff --git a/content/html/content/test/forms/test_input_attributes_reflection.html b/content/html/content/test/forms/test_input_attributes_reflection.html index 8a88e052ad4..373abd19dea 100644 --- a/content/html/content/test/forms/test_input_attributes_reflection.html +++ b/content/html/content/test/forms/test_input_attributes_reflection.html @@ -112,7 +112,7 @@ reflectUnsignedInt({ // .inputmode reflectLimitedEnumerated({ element: document.createElement("input"), - attribute: "inputmode", + attribute: "inputMode", validValues: [ "numeric", "digit", "uppercase", "lowercase", "titlecase", "autocapitalized", "auto" ], invalidValues: [ "", "foo", "tulip" ], defaultValue: "auto" diff --git a/dom/interfaces/html/nsIDOMHTMLInputElement.idl b/dom/interfaces/html/nsIDOMHTMLInputElement.idl index 2baac163c4f..19daf793ec4 100644 --- a/dom/interfaces/html/nsIDOMHTMLInputElement.idl +++ b/dom/interfaces/html/nsIDOMHTMLInputElement.idl @@ -43,7 +43,7 @@ interface nsIDOMHTMLInputElement : nsIDOMHTMLElement attribute unsigned long height; attribute boolean indeterminate; - attribute DOMString inputmode; + attribute DOMString inputMode; readonly attribute nsIDOMHTMLElement list; attribute DOMString max;