In particular it does not work correctly with no arguments or undefined arguments. See tests at http://w3c-test.org/html/semantics/forms/the-option-element/option-element-constructor.html
Firefox and Edge work correctly for tests failing on Chrome and Safari TP.
The following revision refers to this bug: https://chromium.googlesource.com/chromium/src.git/+/850a8677a6589a4c223c4a05793435e70109fd55 commit 850a8677a6589a4c223c4a05793435e70109fd55 Author: shanmuga.m <shanmuga.m@samsung.com> Date: Mon May 22 08:08:45 2017 Do not create child node for Option constructor with no arguments/undefined/empty text. Avoid Option constructor to append child, if its having no arguments/undefined/empty text. spec: https://html.spec.whatwg.org/#the-option-element BUG= 723006 Review-Url: https://codereview.chromium.org/2891723002 Cr-Commit-Position: refs/heads/master@{#473523} [delete] https://crrev.com/c9f9768b2d76c8f09ffb715f5ba6eaa67ee243a7/third_party/WebKit/LayoutTests/external/wpt/html/semantics/forms/the-option-element/option-element-constructor-expected.txt [modify] https://crrev.com/850a8677a6589a4c223c4a05793435e70109fd55/third_party/WebKit/LayoutTests/external/wpt/html/semantics/forms/the-option-element/option-element-constructor.html [modify] https://crrev.com/850a8677a6589a4c223c4a05793435e70109fd55/third_party/WebKit/Source/core/html/HTMLOptionElement.cpp
Comment 1 by tkent@chromium.org
, May 17 2017Status: Available (was: Untriaged)