Skip to content

Commit

Permalink
fix: AddStyleClass no update newClassValue
Browse files Browse the repository at this point in the history
  • Loading branch information
89287 authored and 89287 committed Aug 22, 2024
1 parent 584c9a7 commit 131ca3d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion main/SS/HtmlDocumentFacade.cs
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,7 @@ public void AddStyleClass(XmlElement element, string classNamePrefix, string sty
string addition = GetOrCreateCssClass(element.Name, classNamePrefix, style);
string newClassValue = string.IsNullOrEmpty(exising) ? addition
: (exising + " " + addition);
element.GetAttribute("class", newClassValue);
element.SetAttribute("class", newClassValue);
}

public XmlElement CreateBlock()
Expand Down

0 comments on commit 131ca3d

Please sign in to comment.