handle unsafetext match arm in stdweb
This commit is contained in:
parent
7e842d9d78
commit
4f8ce04fae
|
@ -184,6 +184,7 @@ impl Stdweb {
|
|||
) -> Result<web::Node, web::error::InvalidCharacterError> {
|
||||
match vnode {
|
||||
VNode::Text(text) => Ok(document.create_text_node(&text).into()),
|
||||
VNode::UnsafeText(text) => Ok(document.create_text_node(&text).into()),
|
||||
VNode::Element(element) => {
|
||||
let mut node = document.create_element(element.name)?;
|
||||
for (key, value) in element.attributes {
|
||||
|
|
Loading…
Reference in New Issue