Hide head, script, and style tags from render tree

This commit is contained in:
SGavrl committed 2026-07-02 22:21:19 +00:00
1 parent 740caaea06
commit cd1ee2dcc5
2 files changed
+5

No files matched your search

+3
View File
@@ -267,6 +267,9 @@ fn build(
let _name = node.as_element()?;
let style = styles.get(&id)?;
if style.display == crate::Display::None {
return None;
}
let mut taffy_style = to_taffy_style(style);
// Emulate HTML table layout by giving the last td in a tr all remaining space