Skip to content

Commit

Permalink
test: add test case for vuejs#7223
Browse files Browse the repository at this point in the history
  • Loading branch information
yyx990803 authored and aJean committed Aug 19, 2020
1 parent d088df2 commit 17edbb9
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions test/ssr/ssr-string.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -1112,6 +1112,20 @@ describe('SSR: renderToString', () => {
done()
})
})

// #7223
it('should not double escape attribute values', done => {
renderVmWithOptions({
template: `
<div>
<div id="a\nb"></div>
</div>
`
}, result => {
expect(result).toContain(`<div id="a\nb"></div>`)
done()
})
})
})

function renderVmWithOptions (options, cb) {
Expand Down

0 comments on commit 17edbb9

Please sign in to comment.