feat: support innerhtml
This commit is contained in:
1 parent
b8085b0742
commit
cfc24f5451
3 files changed
+34
-3
No files matched your search
@@ -332,6 +332,11 @@ impl WebsysDom {
|
||||
el.set_attribute(name, value).unwrap()
|
||||
};
|
||||
match name {
|
||||
"dangerous_inner_html" => {
|
||||
if let Some(el) = node.dyn_ref::<Element>() {
|
||||
el.set_inner_html(value);
|
||||
}
|
||||
}
|
||||
"value" => {
|
||||
if let Some(input) = node.dyn_ref::<HtmlInputElement>() {
|
||||
/*
|
||||
|
||||
Reference in new issue
Block a user