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
Describe the bug
Setting x.value = null, where x is an HTMLInputElement, results in a value with the string "null" instead of an empty string. All browsers I've tested (at least Chrome and Firefox) reset the value to an empty string when set to null.
To Reproduce
Steps to reproduce the behavior:
constx=document.createElement("input");x.value=null;// inspect x.value in the console, its value is "null"
Expected behavior x.value should have an empty string instead of "null".
Additional context
happy-dom v15.8.0
The text was updated successfully, but these errors were encountered:
Describe the bug
Setting
x.value = null
, wherex
is anHTMLInputElement
, results in avalue
with the string"null"
instead of an empty string. All browsers I've tested (at least Chrome and Firefox) reset thevalue
to an empty string when set tonull
.To Reproduce
Steps to reproduce the behavior:
Expected behavior
x.value
should have an empty string instead of"null"
.Additional context
happy-dom v15.8.0
The text was updated successfully, but these errors were encountered: