LibWeb: Update Element::directionality() to match current spec text

This fixes a crash that occurred when determining the directionality of
input elements.
This commit is contained in:
Tim Ledbetter
2024-05-04 14:47:04 +01:00
committed by Andrew Kaster
parent 23473d64ca
commit 57f0ea186e
Notes: sideshowbarker 2024-07-17 01:53:23 +09:00
4 changed files with 244 additions and 107 deletions

View File

@@ -0,0 +1,14 @@
Input matches :dir(ltr): true
Input matches :dir(rtl): false
Input matches :dir(ltr): true
Input matches :dir(rtl): false
Input matches :dir(ltr): false
Input matches :dir(rtl): true
Input matches :dir(ltr): true
Input matches :dir(rtl): false
Input matches :dir(ltr): false
Input matches :dir(rtl): true
Input matches :dir(ltr): true
Input matches :dir(rtl): false
Input matches :dir(ltr): true
Input matches :dir(rtl): false