Description of the issue:
If you set HTML with attributes that contain escaped HTML code, when you get the HTML code the tags are unescaped.
How can this issue be reproduced?
If you use this:
x.innerHTML = '<span data-text="> "><span>> </span></span>';
x.innerHTML = ' ' + x.innerHTML;
The > before is not escaped. You end up with broken HTML.
If you console.log the innerHTML you get this code:
<span data-text="> "><span>> </span></span>
Expected result:
the page shows ">> instead of >
Brave Version( check About Brave):
Brave 1.80.120 (Oficjalna wersja) (64-bitowa)
Chromium: 138.0.7204.101
on Fedora 42
Additional Information::
Here is repro:
https://codepen.io/jcubic/pen/GgpZZyV
This is a breaking change that happen recently. It was working before.
It breaks my library jQuery Terminal
The above repro works fine in Google Chrome (tested in 138.0.7204.100).