From 7f8d508c0079766c787029833614c25785d3deec Mon Sep 17 00:00:00 2001 From: Kanezoh Date: Thu, 18 Nov 2021 13:49:42 +0900 Subject: [PATCH 1/3] escape html tag --- src/mechanize/form.cr | 2 +- src/mechanize/form/button.cr | 2 +- src/mechanize/form/check_box.cr | 2 +- src/mechanize/form/field.cr | 2 +- src/mechanize/form/hidden.cr | 2 +- src/mechanize/form/image_button.cr | 2 +- src/mechanize/form/multi_select_list.cr | 2 +- src/mechanize/form/option.cr | 1 + src/mechanize/form/radio_button.cr | 2 +- src/mechanize/form/reset_button.cr | 2 +- src/mechanize/form/select_list.cr | 2 +- src/mechanize/form/submit_button.cr | 2 +- src/mechanize/form/text.cr | 2 +- src/mechanize/form/textarea.cr | 2 +- 14 files changed, 14 insertions(+), 13 deletions(-) diff --git a/src/mechanize/form.cr b/src/mechanize/form.cr index f3a8606..a6a85d1 100644 --- a/src/mechanize/form.cr +++ b/src/mechanize/form.cr @@ -68,7 +68,7 @@ class Mechanize::Form elements_with "checkbox", "checkboxes" elements_with "button" - # Returns all fields of + # Returns all fields of <input type="textarea"> def textareas fields.select { |f| f.class == FormContent::Textarea }.map &.as(FormContent::Textarea) end diff --git a/src/mechanize/form/button.cr b/src/mechanize/form/button.cr index 4a55eda..dab59f5 100644 --- a/src/mechanize/form/button.cr +++ b/src/mechanize/form/button.cr @@ -1,5 +1,5 @@ # This class represents button related html element. -#