You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The value attribute provides a value for element. The value of an option element is the value of the value content attribute, if there is one, or, if there is not, the value of the element's text IDL attribute.
Screenshots
n.a.
Device:
any
Additional context
Fix proposal is ready, I created this Issue for getting a taskId :)
The text was updated successfully, but these errors were encountered:
Describe the bug
An
<option>
element's interface should return the textContent as fallback if novalue
attribute is present.The current implementation returns an empty string in such cases.
happy-dom/packages/happy-dom/src/nodes/html-option-element/HTMLOptionElement.ts
Line 112 in 62e2920
To Reproduce
The DOM content:
<option id=test>Fallback value</option>
Expectation:
expect(test.value === 'Fallback value'); // test.value will return ''
Expected behavior
This request is based on the specification:
https://html.spec.whatwg.org/multipage/form-elements.html#the-option-element
Screenshots
n.a.
Device:
any
Additional context
Fix proposal is ready, I created this Issue for getting a taskId :)
The text was updated successfully, but these errors were encountered: