Index: Source/core/html/forms/DateInputType.cpp |
diff --git a/Source/core/html/forms/DateInputType.cpp b/Source/core/html/forms/DateInputType.cpp |
index 668ddde1678cd954b151f43a17740ced745f1eda..b1a3f9e95e0242135dfa39c209ec82c51bf28972 100644 |
--- a/Source/core/html/forms/DateInputType.cpp |
+++ b/Source/core/html/forms/DateInputType.cpp |
@@ -77,9 +77,9 @@ StepRange DateInputType::createStepRange(AnyStepHandling anyStepHandling) const |
{ |
DEFINE_STATIC_LOCAL(const StepRange::StepDescription, stepDescription, (dateDefaultStep, dateDefaultStepBase, dateStepScaleFactor, StepRange::ParsedStepValueShouldBeInteger)); |
- const Decimal stepBase = parseToNumber(element().fastGetAttribute(minAttr), 0); |
- const Decimal minimum = parseToNumber(element().fastGetAttribute(minAttr), Decimal::fromDouble(DateComponents::minimumDate())); |
- const Decimal maximum = parseToNumber(element().fastGetAttribute(maxAttr), Decimal::fromDouble(DateComponents::maximumDate())); |
+ const Decimal stepBase = parseToNumber(element().fastGetAttribute(minAttr), element().fastGetAttribute(valueAttr), 0); |
+ const Decimal minimum = parseToNumber(element().fastGetAttribute(minAttr), String(), Decimal::fromDouble(DateComponents::minimumDate())); |
+ const Decimal maximum = parseToNumber(element().fastGetAttribute(maxAttr), String(), Decimal::fromDouble(DateComponents::maximumDate())); |
const Decimal step = StepRange::parseStep(anyStepHandling, stepDescription, element().fastGetAttribute(stepAttr)); |
return StepRange(stepBase, minimum, maximum, step, stepDescription); |
} |