/// Creates a new text node.
///
/// [(JavaScript docs)](https://developer.mozilla.org/en-US/docs/Web/API/Document/createTextNode)
Creates a new text node.
Creates a new text node .
pub fn create_text_node( &self, text: &str ) -> TextNode {
        unsafe {
            js!( return @{self}.createTextNode( @{text} ); ).into_reference_unchecked().unwrap()
        }
    }
pub fn create_text_node ( & self , text : & str ) -> TextNode { unsafe { js ! ( return { self } createTextNode ( { text } ) ) . into_reference_unchecked ( ) . unwrap ( ) } }
Creates a new text node.
Creates a new text node .
&self
text
&str