Skip to content

Commit c730343

Browse files
authored
Merge pull request microsoft#1674 from karanbirsingh/notype
[load-themed-styles] removing text/css type from style element
2 parents f08a904 + 4e3638c commit c730343

File tree

2 files changed

+11
-1
lines changed

2 files changed

+11
-1
lines changed
Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
{
2+
"changes": [
3+
{
4+
"packageName": "@microsoft/load-themed-styles",
5+
"comment": "Removed type attribute from style tags to align with WHATWG HTML guidelines",
6+
"type": "patch"
7+
}
8+
],
9+
"packageName": "@microsoft/load-themed-styles",
10+
"email": "karansin@microsoft.com"
11+
}

libraries/load-themed-styles/src/index.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -395,7 +395,6 @@ function registerStyles(styleArray: ThemableArray): void {
395395
} = resolveThemableArray(styleArray);
396396

397397
styleElement.setAttribute('data-load-themed-styles', 'true');
398-
styleElement.type = 'text/css';
399398
if (_styleNonce) {
400399
styleElement.setAttribute('nonce', _styleNonce);
401400
}

0 commit comments

Comments
 (0)