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

This commit is contained in:
Jason Jean
2017-03-14 18:38:24 -04:00
committed by Chuck Jazdzewski
parent 778f7d6f33
commit 80649ea03c
2 changed files with 15 additions and 2 deletions

View File

@ -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;