Skip to content

Commit 43816a5

Browse files
committed
fix(@angular-devkit/build-angular): remove type="text/css" from style tag
`type="text/css"` is deprecated, for more info see: https://developer.mozilla.org/en-US/docs/Web/HTML/Element/style#deprecated_attributes Closes: #27471
1 parent 28906b8 commit 43816a5

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
@@ -152,7 +152,7 @@ export class InlineFontsProcessor {
152152
if (hrefAttr) {
153153
const href = hrefAttr.value;
154154
const cssContent = hrefsContent.get(href);
155-
rewriter.emitRaw(`<style type="text/css">${cssContent}</style>`);
155+
rewriter.emitRaw(`<style>${cssContent}</style>`);
156156
} else {
157157
rewriter.emitStartTag(tag);
158158
}

0 commit comments

Comments
 (0)