HTMLSelectElement add() should support adding group of options element (HTMLOptGroupE...
authorcommit-queue@webkit.org <commit-queue@webkit.org@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Mon, 22 Dec 2014 02:00:04 +0000 (02:00 +0000)
committercommit-queue@webkit.org <commit-queue@webkit.org@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Mon, 22 Dec 2014 02:00:04 +0000 (02:00 +0000)
commit1fe25a9931aed84de916250a5103472b7d742501
treea863227739b92ece384286a86facf3f0d3fba046
parente0bef60641fa3b1e8b5fa43cc6d5e0f1bdc1fac2
HTMLSelectElement add() should support adding group of options element (HTMLOptGroupElement).
https://bugs.webkit.org/show_bug.cgi?id=139806

Patch by Shivakumar JM <shiva.jm@samsung.com> on 2014-12-21
Reviewed by Darin Adler.

Source/WebCore:

HTMLSelectElement add() should support adding group of options (optgroup) element.

Test: fast/dom/HTMLSelectElement/select-add-optgroup.html

* html/HTMLSelectElement.cpp:
(WebCore::HTMLSelectElement::add):

LayoutTests:

* fast/dom/HTMLSelectElement/select-add-optgroup-expected.txt: Added.
* fast/dom/HTMLSelectElement/select-add-optgroup.html: Added.

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@177629 268f45cc-cd09-0410-ab3c-d52691b4dbfc
LayoutTests/ChangeLog
LayoutTests/fast/dom/HTMLSelectElement/select-add-optgroup-expected.txt [new file with mode: 0644]
LayoutTests/fast/dom/HTMLSelectElement/select-add-optgroup.html [new file with mode: 0644]
Source/WebCore/ChangeLog
Source/WebCore/html/HTMLSelectElement.cpp