[Webkit-unassigned] [Bug 71669] Fix wrong test results of fast/js/custom-constructors.html

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Mon Nov 7 12:55:04 PST 2011


https://bugs.webkit.org/show_bug.cgi?id=71669





--- Comment #6 from Kentaro Hara <haraken at chromium.org>  2011-11-07 12:55:04 PST ---
(In reply to comment #5)
> I agree with Ojan that we should see what other browsers do to determine whether the bug is in WebKit or the spec.

Thank you, Ojan and Adam!

Firefox 7.0.1:
new Option(undefined).text => "undefined"
new Option(null).text => "null"
new Option('aaa', undefined).value => "undefined"
new Option('aaa', null).value => "null"
o = new Option(); o.label = undefined; o.label => "undefined"
o = new Option(); o.label = null; o.label => ""

Opera 11.52:
new Option(undefined).text => "undefined"
new Option(null).text => ""
new Option('aaa', undefined).value => "undefined"
new Option('aaa', null).value => ""
o = new Option(); o.label = undefined; o.label => "undefined"
o = new Option(); o.label = null; o.label => ""

Chrome 16.0.912.21 beta:
new Option(undefined).text => ""
new Option(null).text => "null"
new Option('aaa', undefined).value => "aaa"
new Option('aaa', null).value => "null"
o = new Option(); o.label = undefined; o.label => "undefined"
o = new Option(); o.label = null; o.label => ""

The spec:
new Option(undefined).text => "undefined"
new Option(null).text => "null"
new Option('aaa', undefined).value => "undefined"
new Option('aaa', null).value => "null"
o = new Option(); o.label = undefined; o.label => "undefined"
o = new Option(); o.label = null; o.label => "null"

I do not have an IE environment now. Could anyone try it?

All are different:-) Should we follow the spec in this case?

-- 
Configure bugmail: https://bugs.webkit.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.



More information about the webkit-unassigned mailing list