mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-09-22 17:29:01 +00:00
LibWeb: Fixed IDL for HTMLButtonElement
Use Enumerated for the form{Enctype, Method} attributes
This commit is contained in:
parent
6892482755
commit
ab04f6d422
Notes:
github-actions[bot]
2024-10-21 21:42:05 +00:00
Author: https://github.com/samu698
Commit: ab04f6d422
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
6 changed files with 170 additions and 2 deletions
51
Tests/LibWeb/Text/expected/form-formMethod-attribute.txt
Normal file
51
Tests/LibWeb/Text/expected/form-formMethod-attribute.txt
Normal file
|
@ -0,0 +1,51 @@
|
|||
button: unset
|
||||
button.getAttribute('formMethod') == 'null'
|
||||
button.formMethod == ''
|
||||
|
||||
button.setAttribute('formMethod', '')
|
||||
button.getAttribute('formMethod') == ''
|
||||
button.formMethod == 'get'
|
||||
|
||||
button.setAttribute('formMethod', 'undefined')
|
||||
button.getAttribute('formMethod') == 'undefined'
|
||||
button.formMethod == 'get'
|
||||
|
||||
button.setAttribute('formMethod', 'null')
|
||||
button.getAttribute('formMethod') == 'null'
|
||||
button.formMethod == 'get'
|
||||
|
||||
button.setAttribute('formMethod', 'get')
|
||||
button.getAttribute('formMethod') == 'get'
|
||||
button.formMethod == 'get'
|
||||
|
||||
button.setAttribute('formMethod', 'post')
|
||||
button.getAttribute('formMethod') == 'post'
|
||||
button.formMethod == 'post'
|
||||
|
||||
button.setAttribute('formMethod', 'dialog')
|
||||
button.getAttribute('formMethod') == 'dialog'
|
||||
button.formMethod == 'dialog'
|
||||
|
||||
button.setAttribute('formMethod', 'GeT')
|
||||
button.getAttribute('formMethod') == 'GeT'
|
||||
button.formMethod == 'get'
|
||||
|
||||
button.setAttribute('formMethod', 'POST')
|
||||
button.getAttribute('formMethod') == 'POST'
|
||||
button.formMethod == 'post'
|
||||
|
||||
button.setAttribute('formMethod', 'DIAlog')
|
||||
button.getAttribute('formMethod') == 'DIAlog'
|
||||
button.formMethod == 'dialog'
|
||||
|
||||
button.setAttribute('formMethod', 'foo')
|
||||
button.getAttribute('formMethod') == 'foo'
|
||||
button.formMethod == 'get'
|
||||
|
||||
button.setAttribute('formMethod', 'xpost')
|
||||
button.getAttribute('formMethod') == 'xpost'
|
||||
button.formMethod == 'get'
|
||||
|
||||
button.setAttribute('formMethod', '5%')
|
||||
button.getAttribute('formMethod') == '5%'
|
||||
button.formMethod == 'get'
|
Loading…
Add table
Add a link
Reference in a new issue