diff --git a/src/snapshot.ts b/src/snapshot.ts index 3acbdb5b..1423f6d9 100644 --- a/src/snapshot.ts +++ b/src/snapshot.ts @@ -67,11 +67,7 @@ export function absoluteToStylesheet(cssText: string, href: string): string { }); } -const RELATIVE_PATH = /^(\.\.|\.|)\//; function absoluteToDoc(doc: Document, attributeValue: string): string { - if (!RELATIVE_PATH.test(attributeValue)) { - return attributeValue; - } const a: HTMLAnchorElement = doc.createElement('a'); a.href = attributeValue; return a.href;