Skip to content

Commit

Permalink
Merge pull request #3342 from sveltejs/gh-3341
Browse files Browse the repository at this point in the history
prevent commas in attributes
  • Loading branch information
Rich-Harris committed Aug 3, 2019
2 parents fb37b06 + a03566e commit bc5aca0
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -240,7 +240,7 @@ export default class AttributeWrapper {
return chunk.type === 'Text'
? chunk.data.replace(/"/g, '\\"')
: `\${${chunk.render()}}`;
})}"`;
}).join('')}"`;
}
}

Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
export default {
html: `
<div>
<span class="a/42"/>
</div>
`
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
<div>
<span class="a/{42}"/>
</div>

0 comments on commit bc5aca0

Please sign in to comment.