mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2026-04-19 10:20:22 +00:00
We now use OrderedHashMap instead of HashMap to ensure that attributes on XML elements retain their original order.
11 lines
345 B
HTML
11 lines
345 B
HTML
<!doctype html>
|
|
<script src="../include.js"></script>
|
|
<script>
|
|
test(() => {
|
|
const doc = new DOMParser().parseFromString(`<xml><foo a='1' b='2' c='3' d='4' e='5'/></xml>`, "application/xml");
|
|
const e = doc.firstChild.firstChild;
|
|
for (const a of e.attributes) {
|
|
println(a.name);
|
|
}
|
|
});
|
|
</script>
|