Skip to content

Commit

Permalink
fix(@angular-devkit/build-angular): remove type="text/css" from `st…
Browse files Browse the repository at this point in the history
…yle` 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
  • Loading branch information
alan-agius4 committed Apr 16, 2024
1 parent 28906b8 commit 43816a5
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -152,7 +152,7 @@ export class InlineFontsProcessor {
if (hrefAttr) {
const href = hrefAttr.value;
const cssContent = hrefsContent.get(href);
rewriter.emitRaw(`<style type="text/css">${cssContent}</style>`);
rewriter.emitRaw(`<style>${cssContent}</style>`);
} else {
rewriter.emitStartTag(tag);
}
Expand Down

0 comments on commit 43816a5

Please sign in to comment.