diff --git a/typed-html/src/elements.rs b/typed-html/src/elements.rs
index 5312da1..e69bfd1 100644
--- a/typed-html/src/elements.rs
+++ b/typed-html/src/elements.rs
@@ -311,7 +311,7 @@ declare_elements! {
src: Uri,
text: String,
type: String, // TODO could be an enum
- } in [MetadataContent, FlowContent, PhrasingContent, TableColumnContent] with TextNode;
+ } in [MetadataContent, FlowContent, PhrasingContent, TableColumnContent] with PhrasingContent;
section in [FlowContent, SectioningContent] with FlowContent;
select {
autocomplete: String,
@@ -488,3 +488,18 @@ fn test_aria() {
frag.to_string()
);
}
+
+#[test]
+fn test_js() {
+ use crate as axohtml;
+ use crate::{dom::DOMTree, html, text, unsafe_text};
+
+ let frag: DOMTree = html!();
+ let frag1: DOMTree = html!();
+
+ assert_eq!("", frag.to_string());
+ assert_eq!(
+ "",
+ frag1.to_string()
+ );
+}