From 52940bc44c14382bfd26f55ff48ffaa372d43497 Mon Sep 17 00:00:00 2001 From: win7-7 Date: Mon, 3 Feb 2020 16:59:23 +0200 Subject: Issue #1384 - Match standard for colSpan/rowSpan HTML standardizes proper behavior of colSpan and rowSpan: The main thing is that getting the .rowSpan and .colSpan IDL properties will now return the actual clamped value that we use. --- dom/base/nsContentUtils.cpp | 1 + 1 file changed, 1 insertion(+) (limited to 'dom/base/nsContentUtils.cpp') diff --git a/dom/base/nsContentUtils.cpp b/dom/base/nsContentUtils.cpp index b6cbbbace..4f7b71b19 100644 --- a/dom/base/nsContentUtils.cpp +++ b/dom/base/nsContentUtils.cpp @@ -1088,6 +1088,7 @@ nsContentUtils::ParseHTMLInteger(const nsAString& aValue, int sign = 1; if (*iter == char16_t('-')) { sign = -1; + result |= eParseHTMLInteger_Negative; ++iter; } else if (*iter == char16_t('+')) { result |= eParseHTMLInteger_NonStandard; -- cgit v1.2.3