fix(platform-server): support setting innerText property
Domino doesn't support innerText. So the actual inner text wasn't getting set if the [innerText] was set on an element in a template. Add it to the domino adapter to map it to textContent. Also change wrongly named initParse5Adapter to initDominoAdapter.
This commit is contained in:

committed by
Matias Niemelä

parent
9ab9437319
commit
831613aab5
@ -30,7 +30,7 @@ function notSupported(feature: string): Error {
|
||||
export const INTERNAL_SERVER_PLATFORM_PROVIDERS: StaticProvider[] = [
|
||||
{provide: DOCUMENT, useFactory: _document, deps: [Injector]},
|
||||
{provide: PLATFORM_ID, useValue: PLATFORM_SERVER_ID},
|
||||
{provide: PLATFORM_INITIALIZER, useFactory: initParse5Adapter, multi: true, deps: [Injector]}, {
|
||||
{provide: PLATFORM_INITIALIZER, useFactory: initDominoAdapter, multi: true, deps: [Injector]}, {
|
||||
provide: PlatformLocation,
|
||||
useClass: ServerPlatformLocation,
|
||||
deps: [DOCUMENT, [Optional, INITIAL_CONFIG]]
|
||||
@ -40,7 +40,7 @@ export const INTERNAL_SERVER_PLATFORM_PROVIDERS: StaticProvider[] = [
|
||||
{provide: ALLOW_MULTIPLE_PLATFORMS, useValue: true}
|
||||
];
|
||||
|
||||
function initParse5Adapter(injector: Injector) {
|
||||
function initDominoAdapter(injector: Injector) {
|
||||
return () => { DominoAdapter.makeCurrent(); };
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user