| Index: Source/core/svg/SVGInteger.cpp
|
| diff --git a/Source/core/svg/SVGInteger.cpp b/Source/core/svg/SVGInteger.cpp
|
| index c91da72424a97f9f1ce59266d1e7c223cbb6046b..2fc7e9a187a97e06ff93c2f5cafee2aa2b6da47b 100644
|
| --- a/Source/core/svg/SVGInteger.cpp
|
| +++ b/Source/core/svg/SVGInteger.cpp
|
| @@ -30,6 +30,7 @@
|
|
|
| #include "config.h"
|
| #include "core/svg/SVGInteger.h"
|
| +#include "core/html/parser/HTMLParserIdioms.h"
|
|
|
| #include "core/svg/SVGAnimationElement.h"
|
|
|
| @@ -66,7 +67,7 @@ void SVGInteger::setValueAsString(const String& string, ExceptionState& exceptio
|
| }
|
|
|
| bool valid = true;
|
| - m_value = string.toIntStrict(&valid);
|
| + m_value = stripLeadingAndTrailingHTMLSpaces(string).toIntStrict(&valid);
|
|
|
| if (!valid) {
|
| exceptionState.throwDOMException(SyntaxError, "The value provided ('" + string + "') is invalid.");
|
|
|