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.Value into DOMParser.
func DOMParserFromWrapper ¶
DOMParserFromJS is casting from something that holds a js.Value 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.Value) *XMLSerializer
XMLSerializerFromJS is casting a js.Value into XMLSerializer.
func XMLSerializerFromWrapper ¶
func XMLSerializerFromWrapper(input core.Wrapper) *XMLSerializer
XMLSerializerFromJS is casting from something that holds a js.Value into XMLSerializer.
func (*XMLSerializer) JSValue ¶
func (_this *XMLSerializer) JSValue() js.Value
JSValue returns the js.Value or js.Null() if _this is nil
func (*XMLSerializer) SerializeToString ¶
func (_this *XMLSerializer) SerializeToString(root *dom.Node) (_result string)