mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-08-08 09:09:43 +00:00
LibWeb: Use correct IDL for HTTPFormElement's method attribute
Removed the custom getter and updated the idl so that the attribute is Reflected and Enumerated.
This commit is contained in:
parent
ebe89a3207
commit
6892482755
Notes:
github-actions[bot]
2024-10-21 21:42:12 +00:00
Author: https://github.com/samu698
Commit: 6892482755
Pull-request: https://github.com/LadybirdBrowser/ladybird/pull/1884
Reviewed-by: https://github.com/ADKaster ✅
Reviewed-by: https://github.com/BodilessSleeper
Reviewed-by: https://github.com/stelar7
Reviewed-by: https://github.com/tcl3
5 changed files with 83 additions and 19 deletions
23
Tests/LibWeb/Text/input/form-method-attribute.html
Normal file
23
Tests/LibWeb/Text/input/form-method-attribute.html
Normal file
|
@ -0,0 +1,23 @@
|
|||
<script src="./include.js"></script>
|
||||
<script>
|
||||
test(() => {
|
||||
const form = document.createElement('form');
|
||||
const values = [
|
||||
'', undefined, null,
|
||||
'get', 'post', 'dialog',
|
||||
'GeT', 'POST', 'DIAlog',
|
||||
'foo', 'xpost', '5%'
|
||||
];
|
||||
|
||||
println('form: unset');
|
||||
println(`form.getAttribute('method') == '${form.getAttribute('method')}'`);
|
||||
println(`form.method == '${form.method}'`);
|
||||
for (value of values) {
|
||||
form.setAttribute('method', value);
|
||||
println('');
|
||||
println(`form.setAttribute('method', '${value}')`);
|
||||
println(`form.getAttribute('method') == '${form.getAttribute('method')}'`);
|
||||
println(`form.method == '${form.method}'`);
|
||||
}
|
||||
});
|
||||
</script>
|
Loading…
Add table
Add a link
Reference in a new issue