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
Created attachment 8403 [details] Test case
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.
Created attachment 9724 [details] Improved testcase Mitz pointed out a way to make it work using shouldBe, so this patch is better. Cheers, Rob.
Comment on attachment 9724 [details] Improved testcase r=me