From d6e5243d25d4f6b7c93b8c5015966d4704f6e81d Mon Sep 17 00:00:00 2001 From: Ole-Morten Duesund Date: Wed, 26 Aug 2026 12:19:07 +0200 Subject: [PATCH] =?UTF-8?q?Test:=20sjekk=20p=C3=A5=20attributt=20(onsubmit?= =?UTF-8?q?=3D),=20ikke=20ordet=20i=20kommentar?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-Authored-By: Claude Fable 5 Claude-Session: https://claude.ai/code/session_01JcEy43fNYpwg6K6oTKakWR --- tests/test_app.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/test_app.py b/tests/test_app.py index 0cf9bfb..f18f986 100644 --- a/tests/test_app.py +++ b/tests/test_app.py @@ -155,5 +155,5 @@ def test_no_inline_js_with_content(client, cfg): title = "Ola's \"test\" " r = client.post(f"/admin/edit/{post_id}", data={"csrf": token, "title": title, "body": "x", "action": "save"}) html = client.get(r.headers["Location"]).text - assert "onsubmit" not in html and "onclick" not in html + assert "onsubmit=" not in html and "onclick=" not in html assert "Ola's" in html