diff --git a/content/html/content/src/nsHTMLInputElement.cpp b/content/html/content/src/nsHTMLInputElement.cpp
index 07b6faef2fd9..d4f25bb6af04 100644
--- a/content/html/content/src/nsHTMLInputElement.cpp
+++ b/content/html/content/src/nsHTMLInputElement.cpp
@@ -498,6 +498,10 @@ nsHTMLInputElement::StringToAttribute(nsIAtom* aAttribute,
return NS_CONTENT_ATTR_HAS_VALUE;
}
}
+ else if (aAttribute == nsHTMLAtoms::border) {
+ nsGenericHTMLElement::ParseValue(aValue, 0, aResult, eHTMLUnit_Pixel);
+ return NS_CONTENT_ATTR_HAS_VALUE;
+ }
return NS_CONTENT_ATTR_NOT_THERE;
}
diff --git a/layout/html/content/src/nsHTMLInputElement.cpp b/layout/html/content/src/nsHTMLInputElement.cpp
index 07b6faef2fd9..d4f25bb6af04 100644
--- a/layout/html/content/src/nsHTMLInputElement.cpp
+++ b/layout/html/content/src/nsHTMLInputElement.cpp
@@ -498,6 +498,10 @@ nsHTMLInputElement::StringToAttribute(nsIAtom* aAttribute,
return NS_CONTENT_ATTR_HAS_VALUE;
}
}
+ else if (aAttribute == nsHTMLAtoms::border) {
+ nsGenericHTMLElement::ParseValue(aValue, 0, aResult, eHTMLUnit_Pixel);
+ return NS_CONTENT_ATTR_HAS_VALUE;
+ }
return NS_CONTENT_ATTR_NOT_THERE;
}