mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2024-11-22 15:40:19 +00:00
LibWeb: Implement HTMLFormElement.encoding
This commit is contained in:
parent
aeb815cc66
commit
67b1f4af55
Notes:
sideshowbarker
2024-07-17 08:45:34 +09:00
Author: https://github.com/shannonbooth Commit: https://github.com/SerenityOS/serenity/commit/67b1f4af55 Pull-request: https://github.com/SerenityOS/serenity/pull/24445
3 changed files with 7 additions and 1 deletions
|
@ -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
|
||||
|
|
|
@ -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>
|
||||
|
|
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue