WebCore:

        Reviewed by Sam.

        Fix for <rdar://problem/5497357> REGRESSION: Safari doesn't show the month days on AirFrance reservation page

        Test: fast/dom/HTMLSelectElement/options-collection-set-string-length.html

        * bindings/js/JSHTMLOptionsCollectionCustom.cpp: (WebCore::JSHTMLOptionsCollection::setLength):
          Convert the value to a number.  We already have code here to check if the value is not a number.
          This matches other browsers, which allow a string value to be used to set the length.

LayoutTests:

        Reviewed by Sam.

        Test for <rdar://problem/5497357> REGRESSION: Safari doesn't show the month days on AirFrance reservation page

        * fast/dom/HTMLSelectElement/options-collection-set-string-length-expected.txt: Added.
        * fast/dom/HTMLSelectElement/options-collection-set-string-length.html: Added.



git-svn-id: http://svn.webkit.org/repository/webkit/trunk@25698 268f45cc-cd09-0410-ab3c-d52691b4dbfc
5 files changed