mirror of
https://github.com/kodjodevf/mangayomi.git
synced 2026-03-11 17:25:32 +00:00
Fix attribute handling in JsHtmlParser to assign empty string for attributes without values
This commit is contained in:
parent
e288cb00d3
commit
430e062a06
1 changed files with 2 additions and 2 deletions
|
|
@ -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 = '';
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue