File: libxml2-2.14

package info (click to toggle)
python-mechanicalsoup 1.4.0-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 416 kB
  • sloc: python: 2,165; makefile: 150
file content (28 lines) | stat: -rw-r--r-- 1,156 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
From: Dan Hemberger <846186+hemberger@users.noreply.github.com>
Date: Mon, 30 Jun 2025 18:50:46 -0700
Subject: test_stateful_browser.py: fix unclosed textarea element (#454)

Fixes #450.

The HTML parser in libxml2 2.14 is more strict about closing textarea
elements.

Origin: https://github.com/MechanicalSoup/MechanicalSoup/pull/454
Bug-upstream: https://github.com/MechanicalSoup/MechanicalSoup/issues/450
---
 tests/test_stateful_browser.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/tests/test_stateful_browser.py b/tests/test_stateful_browser.py
index 655df3b..a3c95a3 100644
--- a/tests/test_stateful_browser.py
+++ b/tests/test_stateful_browser.py
@@ -498,7 +498,7 @@ def test_select_form_tag_object():
 
 def test_select_form_associated_elements():
     """Test associated elements outside the form tag"""
-    forms = """<form id="a"><input><textarea></form><input form="a">
+    forms = """<form id="a"><input><textarea></textarea></form><input form="a">
                <textarea form="a"/><input form="b">
                <form id="ab" action="/test.php"><input></form>
                <textarea form="ab"></textarea>