Skip to content

Commit 880e251

Browse files
alan-agius4filipesilva
authored andcommitted
fix(@angular-devkit/build-angular): remove title attribute from inlined fonts style tag
title is not a valid style tag attribute. Closes #19271
1 parent a7df989 commit 880e251

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/angular_devkit/build_angular/src/utils/index-file/inline-fonts.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,7 @@ export class InlineFontsProcessor {
8383
if (hrefAttr) {
8484
const href = hrefAttr.value;
8585
const cssContent = hrefsContent.get(href);
86-
rewriter.emitRaw(`<style type="text/css" title="${href}">${cssContent}</style>`);
86+
rewriter.emitRaw(`<style type="text/css">${cssContent}</style>`);
8787
} else {
8888
rewriter.emitStartTag(tag);
8989
}

0 commit comments

Comments
 (0)