Refactor SUI core to set attribute values in parseProps function

This commit is contained in:
Max 2024-07-26 08:03:23 +08:00
parent 7706439f8f
commit b6c5c0fd31

View file

@ -341,6 +341,7 @@ func (page *Page) parseProps(from *goquery.Selection, to *goquery.Selection, ext
exp := stmtRe.Match([]byte(attr.Val))
prop := PageProp{Key: attr.Key, Val: attr.Val, Trans: trans, Exp: exp}
page.props[attr.Key] = prop
to.SetAttr(attr.Key, attr.Val)
}
if extra != nil && len(extra) > 0 {