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 hefeng committed Jan 25, 2019
1 parent 643cb52 commit 8758ac4
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 8758ac4

Please sign in to comment.