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
commit 87a4a5b302
Notes: sideshowbarker 2024-07-18 02:13:10 +09:00
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>