update-empty-popup.html   [plain text]

<html lang="en">
<p><b>BUG ID:</b> <a href="http://bugs.webkit.org/show_bug.cgi?id=13379">Bugzilla bug 13379</a> REGRESSION: Cannot add an option to a selected popup</p>

<p id="test" style="background-color:skyblue; padding:3px;"><b>STEPS TO TEST:</b> 
1. Click on the empty popup button.<br>
2. Click on the Test button.

<p id="success" style="background-color:palegreen; padding:3px;"><b>TEST PASS:</b> 
The popup button will change to display the word SUCCESS.

<p id="failure" style="background-color:#FF3300; padding:3px;"><b>TEST FAIL:</b>  
The popup button will become wider but will not display any text. Clicking the popup
once will not bring up the menu.

<select id="select"></select>
<input type="button" onclick='document.getElementById("select").add(new Option("SUCCESS"))' value="Test">