From 3e8da45a36d6347a0b4d7c6b00d5e84b87038a0f Mon Sep 17 00:00:00 2001 From: Atul Aggarwal Date: Sat, 3 Sep 2011 12:15:03 +0530 Subject: [PATCH] Bug 668819 - HTMLTableColElement span should be unsigned long try: -b do -p linux,linux64,win32 -u all -t all --- .../content/src/nsHTMLTableColElement.cpp | 2 +- content/html/content/test/Makefile.in | 1 + content/html/content/test/test_bug668819.html | 28 +++++++++++++++++++ .../html/nsIDOMHTMLTableColElement.idl | 4 +-- 4 files changed, 32 insertions(+), 3 deletions(-) create mode 100644 content/html/content/test/test_bug668819.html diff --git a/content/html/content/src/nsHTMLTableColElement.cpp b/content/html/content/src/nsHTMLTableColElement.cpp index bb645ba5c38c..20cf37365818 100644 --- a/content/html/content/src/nsHTMLTableColElement.cpp +++ b/content/html/content/src/nsHTMLTableColElement.cpp @@ -114,7 +114,7 @@ NS_IMPL_ELEMENT_CLONE(nsHTMLTableColElement) NS_IMPL_STRING_ATTR(nsHTMLTableColElement, Align, align) NS_IMPL_STRING_ATTR(nsHTMLTableColElement, Ch, _char) NS_IMPL_STRING_ATTR(nsHTMLTableColElement, ChOff, charoff) -NS_IMPL_INT_ATTR_DEFAULT_VALUE(nsHTMLTableColElement, Span, span, 1) +NS_IMPL_UINT_ATTR_NON_ZERO_DEFAULT_VALUE(nsHTMLTableColElement, Span, span, 1) NS_IMPL_STRING_ATTR(nsHTMLTableColElement, VAlign, valign) NS_IMPL_STRING_ATTR(nsHTMLTableColElement, Width, width) diff --git a/content/html/content/test/Makefile.in b/content/html/content/test/Makefile.in index 52d15d492618..b37c21a48e9f 100644 --- a/content/html/content/test/Makefile.in +++ b/content/html/content/test/Makefile.in @@ -277,6 +277,7 @@ _TEST_FILES = \ test_checked.html \ test_bug677658.html \ test_bug677463.html \ + test_bug668819.html \ $(NULL) libs:: $(_TEST_FILES) diff --git a/content/html/content/test/test_bug668819.html b/content/html/content/test/test_bug668819.html new file mode 100644 index 000000000000..b1e79d91d489 --- /dev/null +++ b/content/html/content/test/test_bug668819.html @@ -0,0 +1,28 @@ + + + + + Test for Bug 668819 + + + + + + +Mozilla Bug 668819 +

+
+
+
+ + + diff --git a/dom/interfaces/html/nsIDOMHTMLTableColElement.idl b/dom/interfaces/html/nsIDOMHTMLTableColElement.idl index 1c31b721e3be..ce0927f3405f 100644 --- a/dom/interfaces/html/nsIDOMHTMLTableColElement.idl +++ b/dom/interfaces/html/nsIDOMHTMLTableColElement.idl @@ -50,13 +50,13 @@ * http://www.whatwg.org/specs/web-apps/current-work/ */ -[scriptable, uuid(b0c8daa0-6b74-4436-b1ca-2de5d6d3fe33)] +[scriptable, uuid(d61a4bf0-2ed9-41e9-b308-2ac575e24036)] interface nsIDOMHTMLTableColElement : nsIDOMHTMLElement { attribute DOMString align; attribute DOMString ch; attribute DOMString chOff; - attribute long span; + attribute unsigned long span; attribute DOMString vAlign; attribute DOMString width; };