Create new method to generate Element and Text for pseudo and resolve memory leak problem by using new type LayoutPseudoNode
Add some function for pseudo_node and reduce duplication in construct.rs