Documentation ¶
Overview ¶
Package parser is for parsing and serializing of HTML and XML-based DOM nodes for web applications.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type DOMParser ¶
class: DOMParser
func DOMParserFromJS ¶
DOMParserFromJS is casting a js.Wrapper into DOMParser.
func NewDOMParser ¶
func NewDOMParser() (_result *DOMParser)
func (*DOMParser) ParseFromString ¶
func (_this *DOMParser) ParseFromString(str string, _type SupportedType) (_result *webapi.Document)
type SupportedType ¶
type SupportedType int
enum: SupportedType
const ( TextHtmlSupportedType SupportedType = iota TextXmlSupportedType ApplicationXmlSupportedType ApplicationXhtmlXmlSupportedType ImageSvgXmlSupportedType )
func SupportedTypeFromJS ¶
func SupportedTypeFromJS(value js.Value) SupportedType
SupportedTypeFromJS is converting a javascript value into a SupportedType enum value.
func (*SupportedType) JSValue ¶
func (this *SupportedType) JSValue() js.Value
JSValue is converting this enum into a javascript object
func (SupportedType) Value ¶
func (this SupportedType) Value() string
Value is converting this into javascript defined string value
type Union ¶
func UnionFromJS ¶
type XMLSerializer ¶
class: XMLSerializer
func NewXMLSerializer ¶
func NewXMLSerializer() (_result *XMLSerializer)
func XMLSerializerFromJS ¶
func XMLSerializerFromJS(value js.Wrapper) *XMLSerializer
XMLSerializerFromJS is casting a js.Wrapper into XMLSerializer.
func (*XMLSerializer) JSValue ¶
func (_this *XMLSerializer) JSValue() js.Value
func (*XMLSerializer) SerializeToString ¶
func (_this *XMLSerializer) SerializeToString(root *dom.Node) (_result string)
Click to show internal directories.
Click to hide internal directories.