Describe the bug
Try to use popover and observe that no types are incorrect even though typescript lib.dom.d.ts has definitions for it.
Try to add popover property and observe that its value is set as attribute instead of property.
<button popoverTargetElement={popoverElement} />
Reproduction
Reproduction
<script>
let target = $state();
let popover = $state()
const workaround = (node) => {
node.popoverTargetElement = popover
}
</script>
<button
bind:this={target}
popoverTargetElement={target}
>
Open
</button>
<button
bind:this={target}
use:workaround
>
Open workaround
</button>
<div bind:this={popover} popover>
Popup
</div>
Logs
No response
System Info
"svelte": "5.0.0-next.26"
Severity
annoyance