LibWeb: Implement the HTMLAreaElement.relList attribute

This returns a DOMTokenList that reflects the `rel` attribute.
This commit is contained in:
Tim Ledbetter 2024-05-16 06:02:56 +01:00 committed by Andreas Kling
commit 0a3e1846f0
Notes: sideshowbarker 2024-07-17 02:29:45 +09:00
5 changed files with 24 additions and 1 deletions

View file

@ -4,3 +4,9 @@ a.relList for after setting rel to "whatever": whatever
a.relList for after setting rel to "prefetch": prefetch
a.relList contains "prefetch": true
a.relList contains "whatever": false
area.relList initial length: 0
area.relList always returns the same value: true
area.relList for after setting rel to "whatever": whatever
area.relList for after setting rel to "prefetch": prefetch
area.relList contains "prefetch": true
area.relList contains "whatever": false