Open
Description
Describe the bug
Happy-Dom evaluates a dataset key as undefined when it is set to an empty string.
The browser evaluates it correctly to empty string.
To Reproduce
Steps to reproduce the behavior:
document.body.dataset.test = ''
console.log(document.body.dataset.test)
- It will output
undefined
while it should output''
Expected behavior
It should be evaluated to empty string.
Additional context
It is a regression introduced in v16.0.0 - latest working version is v15.11.7.