arrange
This commit is contained in:
parent
5429d89683
commit
f2f450ba60
@ -20,7 +20,6 @@ class MechanizeCr::Form
|
|||||||
#@encoding = node['accept-charset'] || (page && page.encoding) || nil
|
#@encoding = node['accept-charset'] || (page && page.encoding) || nil
|
||||||
#@ignore_encoding_error = false
|
#@ignore_encoding_error = false
|
||||||
parse
|
parse
|
||||||
request_data
|
|
||||||
end
|
end
|
||||||
|
|
||||||
def request_data
|
def request_data
|
||||||
@ -31,7 +30,7 @@ class MechanizeCr::Form
|
|||||||
query = [] of String
|
query = [] of String
|
||||||
successful_controls = Array(MechanizeCr::FormContent::Field | MechanizeCr::FormContent::CheckBox).new
|
successful_controls = Array(MechanizeCr::FormContent::Field | MechanizeCr::FormContent::CheckBox).new
|
||||||
fields.each do |elm|
|
fields.each do |elm|
|
||||||
successful_controls.push(elm)
|
successful_controls << elm
|
||||||
end
|
end
|
||||||
checkboxes.each do |elm|
|
checkboxes.each do |elm|
|
||||||
if elm.checked
|
if elm.checked
|
||||||
@ -41,7 +40,7 @@ class MechanizeCr::Form
|
|||||||
end
|
end
|
||||||
|
|
||||||
def parse
|
def parse
|
||||||
@fields = Array(MechanizeCr::FormContent::Field).new
|
@fields = Array(MechanizeCr::FormContent::Field).new
|
||||||
@checkboxes = Array(MechanizeCr::FormContent::CheckBox).new
|
@checkboxes = Array(MechanizeCr::FormContent::CheckBox).new
|
||||||
@node.search("input").not_nil!.each do |node|
|
@node.search("input").not_nil!.each do |node|
|
||||||
end
|
end
|
||||||
|
Loading…
Reference in New Issue
Block a user