From 0ca8329bcb572319d3d04db3ec492994fdb84180 Mon Sep 17 00:00:00 2001 From: "rods%netscape.com" Date: Wed, 24 Nov 1999 21:24:06 +0000 Subject: [PATCH] change to always check for upper case TEXT r=kmccluck bug 19607 git-svn-id: svn://10.0.0.236/trunk@54432 18797224-902f-48f8-a5cc-f745e15eee43 --- mozilla/layout/forms/nsFileControlFrame.cpp | 4 +++- mozilla/layout/html/forms/src/nsFileControlFrame.cpp | 4 +++- 2 files changed, 6 insertions(+), 2 deletions(-) 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; } }