Bug 8992

Summary: Some HTML DOM attributes have incorrect types
Product: WebKit Reporter: Anders Carlsson <andersca>
Component: DOMAssignee: Nobody <webkit-unassigned>
Status: RESOLVED FIXED    
Severity: Normal CC: ian
Priority: P2    
Version: 420+   
Hardware: Mac   
OS: OS X 10.4   
See Also: https://bugs.webkit.org/show_bug.cgi?id=250274
Attachments:
Description Flags
Test case
none
Improved patch
none
Improved testcase andersca: review+

Anders Carlsson
Reported 2006-05-19 03:36:03 PDT
The attached test program gives: HTMLImageElement.border is of type number HTMLPreElement.width is of type number HTMLBaseFontElement.size is of type string on Safari. Firefox (which matches the DOM HTML spec) gives: HTMLImageElement.border is of type string HTMLPreElement.width is of type number HTMLBaseFontElement.size is of type number
Attachments
Test case (800 bytes, text/html)
2006-05-19 03:40 PDT, Anders Carlsson
no flags
Improved patch (6.88 KB, patch)
2006-07-27 12:17 PDT, Rob Buis
no flags
Improved testcase (6.73 KB, patch)
2006-07-27 12:32 PDT, Rob Buis
andersca: review+
Anders Carlsson
Comment 1 2006-05-19 03:40:19 PDT
Created attachment 8403 [details] Test case
Rob Buis
Comment 2 2006-07-27 12:17:35 PDT
Created attachment 9722 [details] Improved patch I just copied the original testcase for this one. I tried to use resources/js-test-pre.js, but shouldBe("typeof img.border", "string"); doesnt work, it gives no output. Cheers, Rob.
Rob Buis
Comment 3 2006-07-27 12:32:30 PDT
Created attachment 9724 [details] Improved testcase Mitz pointed out a way to make it work using shouldBe, so this patch is better. Cheers, Rob.
Anders Carlsson
Comment 4 2006-07-27 12:53:21 PDT
Comment on attachment 9724 [details] Improved testcase r=me
Note You need to log in before you can comment on or make changes to this bug.