mirror of
https://github.com/AUTOMATIC1111/stable-diffusion-webui.git
synced 2026-02-03 22:31:42 -08:00
Fix parsing of HTML in model descriptions.
This commit is contained in:
parent
a3e9b0ce04
commit
19f2c61f4c
7 changed files with 57 additions and 4 deletions
|
|
@ -12,6 +12,7 @@
|
|||
isElementLogError,
|
||||
keyExistsLogError,
|
||||
htmlStringToElement,
|
||||
convertElementShadowDOM,
|
||||
*/
|
||||
/*eslint no-undef: "error"*/
|
||||
|
||||
|
|
@ -260,6 +261,7 @@ class ExtraNetworksClusterize extends Clusterize {
|
|||
return;
|
||||
}
|
||||
const parsed_html = htmlStringToElement(new_html);
|
||||
convertElementShadowDOM(parsed_html, "[data-parse-as-shadow-dom]");
|
||||
|
||||
// replace the element in DOM with our new element
|
||||
elem.replaceWith(parsed_html);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue