diff options
Diffstat (limited to 'Source/WebCore/html/StepRange.cpp')
-rw-r--r-- | Source/WebCore/html/StepRange.cpp | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/Source/WebCore/html/StepRange.cpp b/Source/WebCore/html/StepRange.cpp index 7948020d0..6b7c76369 100644 --- a/Source/WebCore/html/StepRange.cpp +++ b/Source/WebCore/html/StepRange.cpp @@ -36,8 +36,9 @@ using namespace HTMLNames; StepRange::StepRange(const HTMLInputElement* element) { step = 1; - if (element->hasAttribute(precisionAttr)) - hasStep = !equalIgnoringCase(element->getAttribute(precisionAttr), "float"); + const AtomicString& precisionValue = element->fastGetAttribute(precisionAttr); + if (!precisionValue.isNull()) + hasStep = !equalIgnoringCase(precisionValue, "float"); else hasStep = element->getAllowedValueStep(&step); |