diff --git a/typed-html/src/elements.rs b/typed-html/src/elements.rs
index ef3c029..c02d38b 100644
--- a/typed-html/src/elements.rs
+++ b/typed-html/src/elements.rs
@@ -2,7 +2,7 @@
#![allow(non_camel_case_types)]
-use crate::dom::{Node, TextNode};
+use crate::dom::{Node, TextNode, UnsafeTextNode};
use crate::types::*;
use crate::OutputType;
use axohtml_macros::declare_elements;
@@ -312,7 +312,7 @@ declare_elements! {
src: Uri,
text: String,
type: String, // TODO could be an enum
- } in [MetadataContent, FlowContent, PhrasingContent, TableColumnContent, HTMLContent] with TextNode;
+ } in [MetadataContent, FlowContent, PhrasingContent, TableColumnContent, HTMLContent] with UnsafeTextNode;
section in [FlowContent, SectioningContent] with FlowContent;
select {
autocomplete: String,
@@ -489,3 +489,13 @@ fn test_aria() {
frag.to_string()
);
}
+
+#[test]
+fn test_js() {
+ use crate as axohtml;
+ use crate::{dom::DOMTree, html, unsafe_text};
+
+ let frag: DOMTree = html!();
+
+ assert_eq!("", frag.to_string());
+}