add comment button form element

This commit is contained in:
Kanezoh 2021-11-18 09:43:37 +09:00
parent 8b346642ae
commit a70e6eae90
4 changed files with 5 additions and 0 deletions

View File

@ -1,3 +1,5 @@
# This class represents button related html element.
# <button>, and <input> whose type is button, reset, image, submit.
class Mechanize::FormContent::Button < Mechanize::FormContent::Field
getter form_node : Node | Lexbor::Node

View File

@ -1,2 +1,3 @@
# This class represents <input type="image">
class Mechanize::FormContent::ImageButton < Mechanize::FormContent::Button
end

View File

@ -1,2 +1,3 @@
# This class represents <input type="reset">
class Mechanize::FormContent::ResetButton < Mechanize::FormContent::Button
end

View File

@ -1,2 +1,3 @@
# This class represents <input type="submit">
class Mechanize::FormContent::SubmitButton < Mechanize::FormContent::Button
end