fix(platform-server): correctly implement get href in parse5 adapter (#15022)
This commit is contained in:

committed by
Chuck Jazdzewski

parent
778f7d6f33
commit
80649ea03c
@ -505,7 +505,7 @@ export class Parse5DomAdapter extends DomAdapter {
|
||||
isShadowRoot(node: any): boolean { return this.getShadowRoot(node) == node; }
|
||||
importIntoDoc(node: any): any { return this.clone(node); }
|
||||
adoptNode(node: any): any { return node; }
|
||||
getHref(el: any): string { return el.href; }
|
||||
getHref(el: any): string { return this.getAttribute(el, 'href'); }
|
||||
resolveAndSetHref(el: any, baseUrl: string, href: string) {
|
||||
if (href == null) {
|
||||
el.href = baseUrl;
|
||||
|
Reference in New Issue
Block a user