Skip to content

Commit

Permalink
Clarify a test scenario
Browse files Browse the repository at this point in the history
  • Loading branch information
Gallaecio committed Jul 12, 2024
1 parent aa5ec68 commit 689d7ee
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions tests/test_main.py
Original file line number Diff line number Diff line change
Expand Up @@ -459,7 +459,7 @@
b"",
),
),
# Unknown methods are replaced with GET, and can override.
# Unknown methods are replaced with GET.
(
"https://example.com",
b"""<form method="a"></form>""",
Expand All @@ -482,6 +482,9 @@
b"",
),
),
# If an unknown method is defined in a submit button and the parent
# form has a valid method, the submit button method (GET) still takes
# precedence.
(
"https://example.com",
b"""<form method="post"><button formmethod="a" /></form>""",
Expand All @@ -493,7 +496,7 @@
b"",
),
),
# Users can override the method value, to workaround scenarios where
# Users can override the method value, to work around scenarios where
# HTML forms have an unsupported method but a supported one is set
# through JavaScript.
(
Expand Down

0 comments on commit 689d7ee

Please sign in to comment.