We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7bf507e commit 5137aa0Copy full SHA for 5137aa0
test/unit/dom/dom.js
@@ -808,6 +808,14 @@ suite('DOM', function() {
808
}
809
});
810
811
+ test('should update select value when HTML special characters are in the name', function() {
812
+ testElement = myp5.createSelect(true);
813
+ testElement.option('&', 'foo');
814
+ assert.equal(testElement.elt.options[0].value, 'foo');
815
+ testElement.option('&', 'bar');
816
+ assert.equal(testElement.elt.options[0].value, 'bar');
817
+ });
818
+
819
test('calling selected(value) should updated selectedIndex', function() {
820
testElement = myp5.createSelect(true);
821
options = ['Sunday', 'Monday', 'Tuesday', 'Friday'];
0 commit comments