| Index: Source/core/html/HTMLElement.cpp | 
| diff --git a/Source/core/html/HTMLElement.cpp b/Source/core/html/HTMLElement.cpp | 
| index 5ab64fcbaada007cbea96431797b715ff08501b6..ca8bde5bf5f1102766ce8db7d2f9dec8d838a175 100644 | 
| --- a/Source/core/html/HTMLElement.cpp | 
| +++ b/Source/core/html/HTMLElement.cpp | 
| @@ -127,8 +127,10 @@ static inline CSSValueID unicodeBidiAttributeForDirAuto(HTMLElement* element) | 
| unsigned HTMLElement::parseBorderWidthAttribute(const AtomicString& value) const | 
| { | 
| unsigned borderWidth = 0; | 
| -    if (value.isEmpty() || !parseHTMLNonNegativeInteger(value, borderWidth)) | 
| -        return hasTagName(tableTag) ? 1 : borderWidth; | 
| +    if (value.isEmpty() || !parseHTMLNonNegativeInteger(value, borderWidth)) { | 
| +        if (hasTagName(tableTag) && !value.isNull()) | 
| +            return 1; | 
| +    } | 
| return borderWidth; | 
| } | 
|  | 
|  |