1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-05-31 14:38:11 +00:00

LibWeb: Remove FIXMe's for HTML attribute serialization steps

As far as I can tell all of these steps are just equivalent to using the
qualified name. Add some tests which cover some of these cases, and
remove the FIXME's.
This commit is contained in:
Shannon Booth 2023-11-10 20:43:19 +13:00 committed by Andreas Kling
parent 96fc1741b5
commit 87a4a5b302
3 changed files with 44 additions and 21 deletions

View file

@ -0,0 +1,17 @@
<div id="id1">
<ol reversed xml:myattribute></ol>
<ol xmlns:somename></ol>
<svg xmlns="http://www.w3.org/2000/svg">
<script xlink:href="test"></script>
<script href="test"></script>
<script id="script" madeup:thing="test"></script>
</svg>
<label xml:lang="en-US" class="struct"></label>
</div>
<script src="../include.js"></script>
<script>
test(() => {
document.getElementById('script').setAttributeNS("http://www.w3.org/2000/xmlns/", "xmlns", "5");
println(document.getElementById('id1').innerHTML);
});
</script>