| Index: Source/core/dom/Element.cpp
|
| diff --git a/Source/core/dom/Element.cpp b/Source/core/dom/Element.cpp
|
| index 37a28cb55da10196c78ac468503f8a55e7a30e55..250f3a24ba785233f8d5f75988f49ace46f4d837 100644
|
| --- a/Source/core/dom/Element.cpp
|
| +++ b/Source/core/dom/Element.cpp
|
| @@ -2850,6 +2850,11 @@ unsigned Element::getUnsignedIntegralAttribute(const QualifiedName& attributeNam
|
|
|
| void Element::setUnsignedIntegralAttribute(const QualifiedName& attributeName, unsigned value)
|
| {
|
| + // Range restrictions are enforced for unsigned IDL attributes that
|
| + // reflect content attributes,
|
| + // http://www.whatwg.org/specs/web-apps/current-work/multipage/common-dom-interfaces.html#reflecting-content-attributes-in-idl-attributes
|
| + if (value > 0x7fffffffu)
|
| + value = 0;
|
| setAttribute(attributeName, AtomicString::number(value));
|
| }
|
|
|
|
|