From 430e062a065eabedbc18798739d6eb324f735111 Mon Sep 17 00:00:00 2001 From: Moustapha Kodjo Amadou <107993382+kodjodevf@users.noreply.github.com> Date: Fri, 7 Nov 2025 19:17:57 +0100 Subject: [PATCH] Fix attribute handling in JsHtmlParser to assign empty string for attributes without values --- lib/eval/lnreader/js_htmlparser.dart | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/eval/lnreader/js_htmlparser.dart b/lib/eval/lnreader/js_htmlparser.dart index fded1f93..74ae4b0e 100644 --- a/lib/eval/lnreader/js_htmlparser.dart +++ b/lib/eval/lnreader/js_htmlparser.dart @@ -160,9 +160,9 @@ class Parser { } else { // attribute without value (e.g. `disabled`) if (this.options.onattribute) { - this.options.onattribute(attrName, null); + this.options.onattribute(attrName, ""); } - attrs[attrName] = null; + attrs[attrName] = ""; attrName = ''; } }