mirror of
https://github.com/LadybirdBrowser/ladybird
synced 2026-04-26 17:55:07 +02:00
LibWeb: Update attribute name validation in Element.toggleAttribute
This now follows the latest specification steps.
This commit is contained in:
committed by
Tim Ledbetter
parent
4593c28769
commit
acf2d773d5
Notes:
github-actions[bot]
2025-06-19 10:02:19 +00:00
Author: https://github.com/tcl3 Commit: https://github.com/LadybirdBrowser/ladybird/commit/acf2d773d58 Pull-request: https://github.com/LadybirdBrowser/ladybird/pull/5140 Reviewed-by: https://github.com/AtkinsSJ ✅
@@ -15,10 +15,10 @@
|
||||
}
|
||||
|
||||
try {
|
||||
element.toggleAttribute("0");
|
||||
println("FAIL ('0')");
|
||||
element.toggleAttribute("=");
|
||||
println("FAIL ('=')");
|
||||
} catch (err) {
|
||||
println("PASS ('0'): " + err.name);
|
||||
println("PASS ('='): " + err.name);
|
||||
}
|
||||
});
|
||||
</script>
|
||||
|
||||
Reference in New Issue
Block a user