href should have / if path not provided

This commit is contained in:
Halil Durak
2025-10-20 12:41:08 +03:00
parent 535a21c9f2
commit b87a59fa49

View File

@@ -68,10 +68,10 @@
let a_again = document.elementFromPoint(1.5, 0.5); let a_again = document.elementFromPoint(1.5, 0.5);
testing.expectEqual('[object HTMLAnchorElement]', a_again.toString()); testing.expectEqual('[object HTMLAnchorElement]', a_again.toString());
testing.expectEqual('https://lightpanda.io', a_again.href); testing.expectEqual('https://lightpanda.io/', a_again.href);
let a_agains = document.elementsFromPoint(1.5, 0.5); let a_agains = document.elementsFromPoint(1.5, 0.5);
testing.expectEqual('https://lightpanda.io', a_agains[0].href); testing.expectEqual('https://lightpanda.io/', a_agains[0].href);
testing.expectEqual(true, !document.all); testing.expectEqual(true, !document.all);