mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-06-02 08:22:55 +00:00
Removed the custom getter and updated the idl so that the attribute is Reflected and Enumerated.
23 lines
802 B
HTML
23 lines
802 B
HTML
<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>
|