Closed
Description
Svelte template:
<img draggable="false">
HTML output:
<img draggable="true">
Expected output:
<img draggable="false">
A workaround is to write:
<img draggable={false}>
The cause
The svelte compiles generates img0.draggable = "false";
"false" is converted (by the browser) to true, and updates the DOM to draggable="true"
Svelte should be made aware of attributes like draggable
and spellcheck
and convert the string "false"
to a boolean false
before setting the property.