WebCore:
authordglazkov@chromium.org <dglazkov@chromium.org@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Tue, 27 Jan 2009 17:24:04 +0000 (17:24 +0000)
committerdglazkov@chromium.org <dglazkov@chromium.org@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Tue, 27 Jan 2009 17:24:04 +0000 (17:24 +0000)
commit202b58e2a0df8bc918c0d0f61dea61ce6bb9e4ae
tree7c69fcdf5c6c51c82a449aa4399420bb1dd89a71
parent5da37ab1e365988989ce96e1e24c21b3804b2543
WebCore:

2009-01-27  Mads Ager  <ager@chromium.org>

        Reviewed by Darin Adler.

        https://bugs.webkit.org/show_bug.cgi?id=23300
        Follow Firefox in throwing exceptions when using selection
        functions on HTMLInputElements that cannot have selection.

        This requires custom setSelectionRange, setSelectionStart and
        setSelectionEnd implementations, but it gets rid of the custom
        getOwnPropertySlot.

        * bindings/js/JSHTMLInputElementCustom.cpp:
        (WebCore::JSHTMLInputElement::selectionStart):
        (WebCore::JSHTMLInputElement::selectionEnd):
        (WebCore::JSHTMLInputElement::setSelectionRange):
        * html/HTMLInputElement.idl:

LayoutTests:

2009-01-27  Mads Ager  <ager@chromium.org>

        Reviewed by Darin Adler.

        https://bugs.webkit.org/show_bug.cgi?id=23300
        Update test of selection functions on HTMLInputElements to expect
        the selection functions to throw exceptions when used on buttons.
        This is consistent with the Firefox behavior.

        * fast/forms/selection-functions-expected.txt:
        * fast/forms/selection-functions.html:

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@40293 268f45cc-cd09-0410-ab3c-d52691b4dbfc
LayoutTests/ChangeLog
LayoutTests/fast/forms/selection-functions-expected.txt
LayoutTests/fast/forms/selection-functions.html
WebCore/ChangeLog
WebCore/bindings/js/JSHTMLInputElementCustom.cpp
WebCore/html/HTMLInputElement.idl