mirror of
https://github.com/servo/servo
synced 2026-05-12 18:06:32 +02:00
This was the last failure in this directory. To fix it, I had to spelunk into a couple of places: 1. We shouldn't use the `base_element()` of the document, but select the first base element, regardless if it has an empty href or not 2. We didn't implement target checking for elements. Only some values are valid and an empty target (which the test also confusingly uses) is not valid. Hence, it should fallback to the base element 3. We weren't sanitizing the value in case it contains an ASCII tab or newline + U+003C. This is true for both the form target as well as for other link elements. All in all, added a lot more specification text to figure out what was going on. Signed-off-by: Tim van der Lippe <tvanderlippe@gmail.com>
77 KiB
77 KiB