diff --git a/src/compiler/compile/render_dom/wrappers/Element/Attribute.ts b/src/compiler/compile/render_dom/wrappers/Element/Attribute.ts index 6cb3a00218..64178030f6 100644 --- a/src/compiler/compile/render_dom/wrappers/Element/Attribute.ts +++ b/src/compiler/compile/render_dom/wrappers/Element/Attribute.ts @@ -364,7 +364,6 @@ const attribute_lookup: { [key in BooleanAttributes]: AttributeMetadata } & { [k indeterminate: { applies_to: ['input'] }, inert: {}, ismap: { property_name: 'isMap', applies_to: ['img'] }, - itemscope: {}, loop: { applies_to: ['audio', 'bgsound', 'video'] }, multiple: { applies_to: ['input', 'select'] }, muted: { applies_to: ['audio', 'video'] }, diff --git a/src/shared/boolean_attributes.ts b/src/shared/boolean_attributes.ts index 668dd97975..10513ec712 100644 --- a/src/shared/boolean_attributes.ts +++ b/src/shared/boolean_attributes.ts @@ -13,7 +13,6 @@ const _boolean_attributes = [ 'hidden', 'inert', 'ismap', - 'itemscope', 'loop', 'multiple', 'muted', diff --git a/test/runtime/samples/attribute-boolean-itemscope/_config.js b/test/runtime/samples/attribute-boolean-itemscope/_config.js index b5b21cfc47..43041884f8 100644 --- a/test/runtime/samples/attribute-boolean-itemscope/_config.js +++ b/test/runtime/samples/attribute-boolean-itemscope/_config.js @@ -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 { - props: { - itemscope: true - }, - test({ assert, target, component }) { - const div = target.querySelector('div'); - assert.ok(div.itemscope); - component.itemscope = false; - assert.ok(!div.itemscope); - } + html: '
' }; diff --git a/test/runtime/samples/attribute-boolean-itemscope/main.svelte b/test/runtime/samples/attribute-boolean-itemscope/main.svelte index 83265a983c..50cd039ad3 100644 --- a/test/runtime/samples/attribute-boolean-itemscope/main.svelte +++ b/test/runtime/samples/attribute-boolean-itemscope/main.svelte @@ -1,5 +1 @@ - - -
+