summaryrefslogtreecommitdiffstats
path: root/WebCore/wml/WMLElement.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'WebCore/wml/WMLElement.cpp')
-rw-r--r--WebCore/wml/WMLElement.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/WebCore/wml/WMLElement.cpp b/WebCore/wml/WMLElement.cpp
index 5c8a94c..9b0be47 100644
--- a/WebCore/wml/WMLElement.cpp
+++ b/WebCore/wml/WMLElement.cpp
@@ -26,6 +26,7 @@
#include "Attribute.h"
#include "CSSPropertyNames.h"
#include "HTMLNames.h"
+#include "HTMLParserIdioms.h"
#include "RenderObject.h"
#include "WMLErrorHandling.h"
#include "WMLNames.h"
@@ -73,7 +74,7 @@ void WMLElement::parseMappedAttribute(Attribute* attr)
} else if (attr->name() == HTMLNames::tabindexAttr) {
String indexstring = attr->value();
int tabindex = 0;
- if (parseHTMLInteger(tabindex)) {
+ if (parseHTMLInteger(indexstring, tabindex)) {
// Clamp tabindex to the range of 'short' to match Firefox's behavior.
setTabIndexExplicitly(max(static_cast<int>(std::numeric_limits<short>::min()), min(tabindex, static_cast<int>(std::numeric_limits<short>::max()))));
}