Skip to content

Commit 0335d6a

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 (cherry picked from commit 43816a5)
1 parent d0bff79 commit 0335d6a

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

0 commit comments

Comments
 (0)