Skip to content

Commit 0c67b2d

Browse files
Firefox Nightly escapes < and > in attributes when serializing HTML (#26688)
* FF139 attributes in serialized HTML escaped for < and > * Update api/Element.json Co-authored-by: Claas Augner <[email protected]> * Apply suggestions from code review * Update api/Element.json * Apply suggestions from code review * Apply suggestions from code review * Apply suggestions from code review Co-authored-by: Claas Augner <[email protected]> --------- Co-authored-by: Claas Augner <[email protected]>
1 parent d16d15b commit 0c67b2d

File tree

2 files changed

+198
-0
lines changed

2 files changed

+198
-0
lines changed

api/Element.json

Lines changed: 123 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5934,6 +5934,47 @@
59345934
"standard_track": true,
59355935
"deprecated": false
59365936
}
5937+
},
5938+
"escapes_lt_gt_in_attributes": {
5939+
"__compat": {
5940+
"description": "Serializes `<` and `>` in attributes as `&amp;lt;` and `&amp;gt;` (see [this spec issue](https://github.com/whatwg/html/issues/6235))",
5941+
"support": {
5942+
"chrome": {
5943+
"version_added": "114",
5944+
"flags": [
5945+
{
5946+
"type": "preference",
5947+
"name": "enable-experimental-web-platform-features",
5948+
"value_to_set": "enabled"
5949+
}
5950+
]
5951+
},
5952+
"chrome_android": "mirror",
5953+
"edge": "mirror",
5954+
"firefox": {
5955+
"version_added": "preview"
5956+
},
5957+
"firefox_android": "mirror",
5958+
"ie": {
5959+
"version_added": false
5960+
},
5961+
"oculus": "mirror",
5962+
"opera": "mirror",
5963+
"opera_android": "mirror",
5964+
"safari": {
5965+
"version_added": "preview"
5966+
},
5967+
"safari_ios": "mirror",
5968+
"samsunginternet_android": "mirror",
5969+
"webview_android": "mirror",
5970+
"webview_ios": "mirror"
5971+
},
5972+
"status": {
5973+
"experimental": true,
5974+
"standard_track": false,
5975+
"deprecated": false
5976+
}
5977+
}
59375978
}
59385979
},
59395980
"gotpointercapture_event": {
@@ -6296,6 +6337,47 @@
62966337
"deprecated": false
62976338
}
62986339
}
6340+
},
6341+
"escapes_lt_gt_in_attributes": {
6342+
"__compat": {
6343+
"description": "Serializes `<` and `>` in attributes as `&amp;lt;` and `&amp;gt;` (see [this spec issue](https://github.com/whatwg/html/issues/6235))",
6344+
"support": {
6345+
"chrome": {
6346+
"version_added": "114",
6347+
"flags": [
6348+
{
6349+
"type": "preference",
6350+
"name": "enable-experimental-web-platform-features",
6351+
"value_to_set": "enabled"
6352+
}
6353+
]
6354+
},
6355+
"chrome_android": "mirror",
6356+
"edge": "mirror",
6357+
"firefox": {
6358+
"version_added": "preview"
6359+
},
6360+
"firefox_android": "mirror",
6361+
"ie": {
6362+
"version_added": false
6363+
},
6364+
"oculus": "mirror",
6365+
"opera": "mirror",
6366+
"opera_android": "mirror",
6367+
"safari": {
6368+
"version_added": "preview"
6369+
},
6370+
"safari_ios": "mirror",
6371+
"samsunginternet_android": "mirror",
6372+
"webview_android": "mirror",
6373+
"webview_ios": "mirror"
6374+
},
6375+
"status": {
6376+
"experimental": true,
6377+
"standard_track": false,
6378+
"deprecated": false
6379+
}
6380+
}
62996381
}
63006382
},
63016383
"input_event": {
@@ -7473,6 +7555,47 @@
74737555
"standard_track": true,
74747556
"deprecated": false
74757557
}
7558+
},
7559+
"escapes_lt_gt_in_attributes": {
7560+
"__compat": {
7561+
"description": "Serializes `<` and `>` in attributes as `&amp;lt;` and `&amp;gt;` (see [this spec issue](https://github.com/whatwg/html/issues/6235))",
7562+
"support": {
7563+
"chrome": {
7564+
"version_added": "114",
7565+
"flags": [
7566+
{
7567+
"type": "preference",
7568+
"name": "enable-experimental-web-platform-features",
7569+
"value_to_set": "enabled"
7570+
}
7571+
]
7572+
},
7573+
"chrome_android": "mirror",
7574+
"edge": "mirror",
7575+
"firefox": {
7576+
"version_added": "preview"
7577+
},
7578+
"firefox_android": "mirror",
7579+
"ie": {
7580+
"version_added": false
7581+
},
7582+
"oculus": "mirror",
7583+
"opera": "mirror",
7584+
"opera_android": "mirror",
7585+
"safari": {
7586+
"version_added": "preview"
7587+
},
7588+
"safari_ios": "mirror",
7589+
"samsunginternet_android": "mirror",
7590+
"webview_android": "mirror",
7591+
"webview_ios": "mirror"
7592+
},
7593+
"status": {
7594+
"experimental": true,
7595+
"standard_track": false,
7596+
"deprecated": false
7597+
}
7598+
}
74767599
}
74777600
},
74787601
"part": {

api/ShadowRoot.json

Lines changed: 75 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -391,6 +391,40 @@
391391
"standard_track": true,
392392
"deprecated": false
393393
}
394+
},
395+
"escapes_lt_gt_in_attributes": {
396+
"__compat": {
397+
"description": "Serializes `<` and `>` in attributes as `&amp;lt;` and `&amp;gt;` (see [this spec issue](https://github.com/whatwg/html/issues/6235))",
398+
"support": {
399+
"chrome": {
400+
"version_added": false
401+
},
402+
"chrome_android": "mirror",
403+
"edge": "mirror",
404+
"firefox": {
405+
"version_added": "preview"
406+
},
407+
"firefox_android": "mirror",
408+
"ie": {
409+
"version_added": false
410+
},
411+
"oculus": "mirror",
412+
"opera": "mirror",
413+
"opera_android": "mirror",
414+
"safari": {
415+
"version_added": "preview"
416+
},
417+
"safari_ios": "mirror",
418+
"samsunginternet_android": "mirror",
419+
"webview_android": "mirror",
420+
"webview_ios": "mirror"
421+
},
422+
"status": {
423+
"experimental": true,
424+
"standard_track": false,
425+
"deprecated": false
426+
}
427+
}
394428
}
395429
},
396430
"getSelection": {
@@ -542,6 +576,47 @@
542576
"deprecated": false
543577
}
544578
}
579+
},
580+
"escapes_lt_gt_in_attributes": {
581+
"__compat": {
582+
"description": "Serializes `<` and `>` in attributes as `&amp;lt;` and `&amp;gt;` (see [this spec issue](https://github.com/whatwg/html/issues/6235))",
583+
"support": {
584+
"chrome": {
585+
"version_added": "114",
586+
"flags": [
587+
{
588+
"type": "preference",
589+
"name": "enable-experimental-web-platform-features",
590+
"value_to_set": "enabled"
591+
}
592+
]
593+
},
594+
"chrome_android": "mirror",
595+
"edge": "mirror",
596+
"firefox": {
597+
"version_added": "preview"
598+
},
599+
"firefox_android": "mirror",
600+
"ie": {
601+
"version_added": false
602+
},
603+
"oculus": "mirror",
604+
"opera": "mirror",
605+
"opera_android": "mirror",
606+
"safari": {
607+
"version_added": "preview"
608+
},
609+
"safari_ios": "mirror",
610+
"samsunginternet_android": "mirror",
611+
"webview_android": "mirror",
612+
"webview_ios": "mirror"
613+
},
614+
"status": {
615+
"experimental": true,
616+
"standard_track": false,
617+
"deprecated": false
618+
}
619+
}
545620
}
546621
},
547622
"mode": {

0 commit comments

Comments
 (0)