fix(ivy): shadow all DOM properties in DebugElement.properties
(#33781)
Fixes #33695 PR Close #33781
This commit is contained in:

committed by
Alex Rickabaugh

parent
6d06d9d3c6
commit
5be23a309e
@ -921,6 +921,7 @@ function declareTests(config?: {useJit: boolean}) {
|
||||
@Directive({selector: '[host-properties]', host: {'[id]': 'id', '[title]': 'unknownProp'}})
|
||||
class DirectiveWithHostProps {
|
||||
id = 'one';
|
||||
unknownProp = 'unknownProp';
|
||||
}
|
||||
|
||||
const fixture =
|
||||
@ -933,7 +934,7 @@ function declareTests(config?: {useJit: boolean}) {
|
||||
|
||||
const tc = fixture.debugElement.children[0];
|
||||
expect(tc.properties['id']).toBe('one');
|
||||
expect(tc.properties['title']).toBe(undefined);
|
||||
expect(tc.properties['title']).toBe('unknownProp');
|
||||
});
|
||||
|
||||
it('should not allow pipes in hostProperties', () => {
|
||||
|
Reference in New Issue
Block a user