🐛 noDelete is trying to fix unsetting HTMLElement dataset properties #1765
Labels
A-Linter
Area: linter
S-Bug-confirmed
Status: report has been confirmed as a valid bug
S-Help-wanted
Status: you're familiar with the code base and want to help the project
Environment information
What happened?
delete el.dataset.dateOfBirth;
changed to
el.dataset.dateOfBirth = undefined;
Expected result
delete el.dataset.dateOfBirth;
left as is or...
el.removeAttribute('data-date-of-birth');
I'm not sure which is preferable at least in terms of performance.
Code of Conduct
The text was updated successfully, but these errors were encountered: