Skip to content

Conversation

@fkztw
Copy link

@fkztw fkztw commented Nov 18, 2015

Support <button> tags in <form> .

shunyi added 2 commits November 18, 2015 12:37
<button> can be added into <form>.
Add this new feature so robobrowser can deal with <button> tags in
<form>
@gled-rs
Copy link

gled-rs commented Feb 29, 2016

+1 on this PR

According to <https://developer.mozilla.org/nl/docs/Web/HTML/Element/button>:

+ The type of the button. Possible values are:
    + submit: The button submits the form data to the server.
        + This is the default if the attribute is not specified, or if the attribute is dynamically changed to an empty or invalid value.
    + reset: The button resets all the controls to their initial values.
    + button: The button has no default behavior. It can have client-side scripts associated with the element's events, which are triggered when the events occur.
    + menu: The button opens a popup menu defined via its designated <menu> element.

So, we can treat the button tag with no type specifed as a submit tag.

Thanks Vincent Wagelaar <[email protected]> emailing me about this patch.
@fkztw fkztw force-pushed the fix_button_in_form_issue branch from eadc471 to 9df767b Compare November 6, 2016 17:47
@fkztw
Copy link
Author

fkztw commented Nov 6, 2016

flake8 no longer supports Python 2.6 since flake8-3.0.0.

https://gitlab.com/pycqa/flake8/issues/187
http://flake8.pycqa.org/en/latest/release-notes/3.0.0.html

flake8 no longer supports Python 2.6 since flake8-3.0.0.
@0xLuz
Copy link

0xLuz commented Nov 10, 2016

+1

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants