feat: support innerhtml

This commit is contained in:
Jonathan Kelley committed 2021-10-18 18:07:19 -04:00
1 parent b8085b0742
commit cfc24f5451
3 files changed
+34 -3

No files matched your search

+5
View File
@@ -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>() {
/*