mirror of
https://github.com/mozilla/gecko-dev.git
synced 2025-02-24 19:37:15 +00:00
change to always check for upper case TEXT
r=kmccluck bug 19607
This commit is contained in:
parent
6af28faed3
commit
5d16e3d2d2
@ -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;
|
||||
}
|
||||
}
|
||||
|
@ -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;
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user