Merge pull request #3342 from sveltejs/gh-3341

prevent commas in attributes
pull/3346/head
Rich Harris 5 years ago committed by GitHub
commit bc5aca0ffe
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -240,7 +240,7 @@ export default class AttributeWrapper {
return chunk.type === 'Text'
? chunk.data.replace(/"/g, '\\"')
: `\${${chunk.render()}}`;
})}"`;
}).join('')}"`;
}
}

@ -0,0 +1,7 @@
export default {
html: `
<div>
<span class="a/42"/>
</div>
`
}
Loading…
Cancel
Save