(elem *VDomElem, params map[string]any, elemPath []string)
| 283 | } |
| 284 | |
| 285 | func fixStyleAttribute(elem *VDomElem, params map[string]any, elemPath []string) error { |
| 286 | styleText, ok := elem.Props["style"].(string) |
| 287 | if !ok { |
| 288 | return nil |
| 289 | } |
| 290 | styleMap, err := styleAttrStrToStyleMap(styleText, params) |
| 291 | if err != nil { |
| 292 | return fmt.Errorf("%v (at %s)", err, makePathStr(elemPath)) |
| 293 | } |
| 294 | elem.Props["style"] = styleMap |
| 295 | return nil |
| 296 | } |
| 297 | |
| 298 | func fixupStyleAttributes(elem *VDomElem, params map[string]any, elemPath []string) { |
| 299 | if elem == nil { |
no test coverage detected