diff --git a/mozilla/layout/forms/nsFileControlFrame.cpp b/mozilla/layout/forms/nsFileControlFrame.cpp index 6431af0c3fc..6af23cf53c2 100644 --- a/mozilla/layout/forms/nsFileControlFrame.cpp +++ b/mozilla/layout/forms/nsFileControlFrame.cpp @@ -322,7 +322,9 @@ nsFileControlFrame::GetTextControlFrame(nsIFrame* aStart) nsString value; if (NS_CONTENT_ATTR_HAS_VALUE == content->GetAttribute(kNameSpaceID_None, nsHTMLAtoms::type, value)) { - if (value == "text") { + value.ToUpperCase(); + nsString txt("TEXT"); + if (value == txt) { return (nsTextControlFrame*)childFrame; } } diff --git a/mozilla/layout/html/forms/src/nsFileControlFrame.cpp b/mozilla/layout/html/forms/src/nsFileControlFrame.cpp index 6431af0c3fc..6af23cf53c2 100644 --- a/mozilla/layout/html/forms/src/nsFileControlFrame.cpp +++ b/mozilla/layout/html/forms/src/nsFileControlFrame.cpp @@ -322,7 +322,9 @@ nsFileControlFrame::GetTextControlFrame(nsIFrame* aStart) nsString value; if (NS_CONTENT_ATTR_HAS_VALUE == content->GetAttribute(kNameSpaceID_None, nsHTMLAtoms::type, value)) { - if (value == "text") { + value.ToUpperCase(); + nsString txt("TEXT"); + if (value == txt) { return (nsTextControlFrame*)childFrame; } }