Skip to content

Commit 86e4d75

Browse files
committed
test: add test case for vuejs#7223
1 parent 73a89bf commit 86e4d75

File tree

1 file changed

+14
-0
lines changed

1 file changed

+14
-0
lines changed

test/ssr/ssr-string.spec.js

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1112,6 +1112,20 @@ describe('SSR: renderToString', () => {
11121112
done()
11131113
})
11141114
})
1115+
1116+
// #7223
1117+
it('should not double escape attribute values', done => {
1118+
renderVmWithOptions({
1119+
template: `
1120+
<div>
1121+
<div id="a\nb"></div>
1122+
</div>
1123+
`
1124+
}, result => {
1125+
expect(result).toContain(`<div id="a\nb"></div>`)
1126+
done()
1127+
})
1128+
})
11151129
})
11161130

11171131
function renderVmWithOptions (options, cb) {

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy