mirror of https://github.com/sveltejs/svelte
fix: consider img with loading attribute not static (#14237)
* fix: consider img with loading attribute not static * chore: add comment for `is_static_element` * chore: better comment Co-authored-by: Ben McCann <322311+benmccann@users.noreply.github.com> --------- Co-authored-by: Ben McCann <322311+benmccann@users.noreply.github.com>pull/14253/head
parent
1e5a385c96
commit
d207666ec3
@ -0,0 +1,5 @@
|
|||||||
|
---
|
||||||
|
'svelte': patch
|
||||||
|
---
|
||||||
|
|
||||||
|
fix: consider img with loading attribute not static
|
@ -0,0 +1,5 @@
|
|||||||
|
import { test } from '../../test';
|
||||||
|
|
||||||
|
export default test({
|
||||||
|
html: `<h1></h1><img src="..." loading="lazy" />`
|
||||||
|
});
|
@ -0,0 +1,2 @@
|
|||||||
|
<h1></h1>
|
||||||
|
<img src="..." loading="lazy">
|
Loading…
Reference in new issue