mirror of https://github.com/sveltejs/svelte
parent
aa4d0fc264
commit
d63bab922e
@ -1,11 +1,4 @@
|
|||||||
|
// There is no relationship between the attribute name and the document node https://developer.mozilla.org/en-US/docs/Web/HTML/Microdata
|
||||||
export default {
|
export default {
|
||||||
props: {
|
html: '<div itemscope />'
|
||||||
itemscope: true
|
|
||||||
},
|
|
||||||
test({ assert, target, component }) {
|
|
||||||
const div = target.querySelector('div');
|
|
||||||
assert.ok(div.itemscope);
|
|
||||||
component.itemscope = false;
|
|
||||||
assert.ok(!div.itemscope);
|
|
||||||
}
|
|
||||||
};
|
};
|
||||||
|
|||||||
@ -1,5 +1 @@
|
|||||||
<script>
|
<div itemscope />
|
||||||
export let itemscope;
|
|
||||||
</script>
|
|
||||||
|
|
||||||
<div {itemscope} />
|
|
||||||
|
|||||||
Loading…
Reference in new issue