You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
svelte/test/hydration/samples/raw/_config.js

19 lines
304 B

8 years ago
export default {
skip: true, // existing nodes are blown away
props: {
raw: '<p>this is some html</p> <p>and so is this</p>'
8 years ago
},
snapshot(target) {
const ps = target.querySelectorAll('p');
return {
p0: ps[0],
text0: ps[0].firstChild,
p1: ps[1],
text1: ps[1].firstChild
};
}
};