test(security): work around an escaping bug in IE9 (#10493)
This commit is contained in:
parent
f0c1f9ef39
commit
6a011f4e8e
|
@ -214,7 +214,7 @@ function declareTests({useJit}: {useJit: boolean}) {
|
||||||
fixture.detectChanges();
|
fixture.detectChanges();
|
||||||
expect(getDOM().getInnerHTML(e)).toEqual('also <img src="x"> evil');
|
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();
|
fixture.detectChanges();
|
||||||
expect(getDOM().getInnerHTML(e)).toEqual('also evil');
|
expect(getDOM().getInnerHTML(e)).toEqual('also evil');
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue