Skip to content

Commit

Permalink
Cast node to element.
Browse files Browse the repository at this point in the history
  • Loading branch information
finnbear committed Mar 23, 2024
1 parent 7d1120e commit 942da27
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion packages/yew/src/dom_bundle/braw.rs
Original file line number Diff line number Diff line change
Expand Up @@ -205,7 +205,11 @@ mod tests {
assert_braw(&mut elem);
assert_eq!(parent.inner_html(), HTML);
assert_eq!(
parent.first_child().unwrap().namespace_uri(),
parent
.first_child()
.unwrap()
.unchecked_into::<Element>()
.namespace_uri(),
Some(SVG_NAMESPACE)
);
}
Expand Down

0 comments on commit 942da27

Please sign in to comment.