test(security): work around an escaping bug in IE9 (#10493)

This commit is contained in:
Marc Laval 2016-08-12 19:34:55 +02:00 committed by vikerman
parent f0c1f9ef39
commit 6a011f4e8e
1 changed files with 1 additions and 1 deletions

View File

@ -214,7 +214,7 @@ function declareTests({useJit}: {useJit: boolean}) {
fixture.detectChanges();
expect(getDOM().getInnerHTML(e)).toEqual('also <img src="x"> evil');
ci.ctxProp = 'also <iframe srcdoc="evil"> evil';
ci.ctxProp = 'also <iframe srcdoc="evil"></iframe> evil';
fixture.detectChanges();
expect(getDOM().getInnerHTML(e)).toEqual('also evil');