[Webkit-unassigned] [Bug 71669] New: Fix wrong test results of fast/js/custom-constructors.html
bugzilla-daemon at webkit.org
bugzilla-daemon at webkit.org
Mon Nov 7 05:03:03 PST 2011
https://bugs.webkit.org/show_bug.cgi?id=71669
Summary: Fix wrong test results of
fast/js/custom-constructors.html
Product: WebKit
Version: 528+ (Nightly build)
Platform: Unspecified
OS/Version: Unspecified
Status: UNCONFIRMED
Severity: Normal
Priority: P2
Component: HTML DOM
AssignedTo: webkit-unassigned at lists.webkit.org
ReportedBy: haraken at chromium.org
CC: abarth at webkit.org, dominicc at chromium.org
Some test results in custom-constructors.html are wrong:
wrong: shouldBeEqualToString("new Option(undefined).innerText", "");
correct: shouldBeEqualToString("new Option(undefined).innerText", "undefined");
wrong: shouldBeEqualToString("new Option('somedata', undefined).value", "somedata");
correct: shouldBeEqualToString("new Option('somedata', undefined).value", "undefined");
According to the HTMLOptionElement spec (http://dev.w3.org/html5/spec/the-button-element.html#the-option-element), 'label' and 'value' do not have [TreatUndefinedAs=EmptyString]. Thus, a value undefined should be converted to a string "undefined", following the step 3 of the IDL conversion spec (http://dev.w3.org/2006/webapi/WebIDL/#es-DOMString).
--
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