mirror of https://github.com/sveltejs/svelte
add test for #7938
parent
1276db9855
commit
070c349a98
@ -0,0 +1,41 @@
|
|||||||
|
/* generated by Svelte vX.Y.Z */
|
||||||
|
import {
|
||||||
|
SvelteComponent,
|
||||||
|
attr,
|
||||||
|
detach,
|
||||||
|
element,
|
||||||
|
init,
|
||||||
|
insert,
|
||||||
|
noop,
|
||||||
|
safe_not_equal
|
||||||
|
} from "svelte/internal";
|
||||||
|
|
||||||
|
function create_fragment(ctx) {
|
||||||
|
let a;
|
||||||
|
|
||||||
|
return {
|
||||||
|
c() {
|
||||||
|
a = element("a");
|
||||||
|
a.innerHTML = `<span class="inner"></span>`;
|
||||||
|
attr(a, "class", "outer");
|
||||||
|
},
|
||||||
|
m(target, anchor) {
|
||||||
|
insert(target, a, anchor);
|
||||||
|
},
|
||||||
|
p: noop,
|
||||||
|
i: noop,
|
||||||
|
o: noop,
|
||||||
|
d(detaching) {
|
||||||
|
if (detaching) detach(a);
|
||||||
|
}
|
||||||
|
};
|
||||||
|
}
|
||||||
|
|
||||||
|
class Component extends SvelteComponent {
|
||||||
|
constructor(options) {
|
||||||
|
super();
|
||||||
|
init(this, options, null, create_fragment, safe_not_equal, {});
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
export default Component;
|
||||||
@ -0,0 +1,3 @@
|
|||||||
|
<svelte:element this='a' class='outer'>
|
||||||
|
<svelte:element this='span' class='inner' />
|
||||||
|
</svelte:element>
|
||||||
Loading…
Reference in new issue