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
(cherry picked from commit 43816a5)
  • Loading branch information
alan-agius4 committed Apr 16, 2024
1 parent d0bff79 commit 0335d6a
Showing 1 changed file with 1 addition and 1 deletion.
Expand Up @@ -154,7 +154,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 0335d6a

Please sign in to comment.