We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 913568a commit 450e345Copy full SHA for 450e345
src/browser/html/elements.zig
@@ -115,7 +115,7 @@ pub const HTMLElement = struct {
115
},
116
117
pub fn get_style(e: *parser.ElementHTML, state: *SessionState) !*CSSStyleDeclaration {
118
- const self = try state.getNodeWrapper(HTMLElement, @ptrCast(e));
+ const self = try state.getOrCreateNodeWrapper(HTMLElement, @ptrCast(e));
119
return &self.style;
120
}
121
0 commit comments