mirror of
https://github.com/LadybirdBrowser/ladybird
synced 2026-05-05 06:32:30 +02:00
LibWeb: Fixed IDL for HTMLButtonElement
Use Enumerated for the form{Enctype, Method} attributes
This commit is contained in:
Notes:
github-actions[bot]
2024-10-21 21:42:05 +00:00
Author: https://github.com/samu698 Commit: https://github.com/LadybirdBrowser/ladybird/commit/ab04f6d422a 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
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'
|
||||
Reference in New Issue
Block a user