LibWeb: Implement HTMLFormElement.encoding

This commit is contained in:
Shannon Booth 2024-05-26 10:53:19 +12:00 committed by Andreas Kling
parent aeb815cc66
commit 67b1f4af55
Notes: sideshowbarker 2024-07-17 08:45:34 +09:00
3 changed files with 7 additions and 1 deletions

View file

@ -1,5 +1,8 @@
enctype | application/x-www-form-urlencoded
encoding | application/x-www-form-urlencoded
enctype | text/plain
encoding | text/plain
enctype | application/x-www-form-urlencoded
encoding | application/x-www-form-urlencoded

View file

@ -5,14 +5,17 @@
const form = document.getElementById('testForm');
println(`enctype | ${form.enctype}`);
println(`encoding | ${form.encoding}`);
println('');
form.enctype = 'text/plain';
println(`enctype | ${form.enctype}`);
println(`encoding | ${form.encoding}`);
println('');
form.enctype = 'invalid-value';
println(`enctype | ${form.enctype}`);
println(`encoding | ${form.encoding}`);
});
</script>

View file

@ -19,7 +19,7 @@ interface HTMLFormElement : HTMLElement {
[CEReactions] attribute USVString action;
[FIXME, CEReactions] attribute DOMString autocomplete;
[CEReactions, Enumerated=EnctypeAttribute, Reflect] attribute DOMString enctype;
[FIXME, CEReactions] attribute DOMString encoding;
[CEReactions, Enumerated=EnctypeAttribute, Reflect=enctype] attribute DOMString encoding;
[CEReactions] attribute DOMString method;
[CEReactions, Reflect] attribute DOMString name;
[CEReactions, Reflect=novalidate] attribute boolean noValidate;