webapi: github.com/gowebapi/webapi/dom/parser Index | Files

package parser

import "github.com/gowebapi/webapi/dom/parser"

Package parser is for parsing and serializing of HTML and XML-based DOM nodes for web applications.

Index

Package Files

doc.go parser.go

type DOMParser Uses

type DOMParser struct {
    // Value_JS holds a reference to a javascript value
    Value_JS js.Value
}

class: DOMParser

func DOMParserFromJS Uses

func DOMParserFromJS(value js.Wrapper) *DOMParser

DOMParserFromJS is casting a js.Wrapper into DOMParser.

func NewDOMParser Uses

func NewDOMParser() (_result *DOMParser)

func (*DOMParser) JSValue Uses

func (_this *DOMParser) JSValue() js.Value

func (*DOMParser) ParseFromString Uses

func (_this *DOMParser) ParseFromString(str string, _type SupportedType) (_result *webapi.Document)

type SupportedType Uses

type SupportedType int

enum: SupportedType

const (
    TextHtmlSupportedType SupportedType = iota
    TextXmlSupportedType
    ApplicationXmlSupportedType
    ApplicationXhtmlXmlSupportedType
    ImageSvgXmlSupportedType
)

func SupportedTypeFromJS Uses

func SupportedTypeFromJS(value js.Value) SupportedType

SupportedTypeFromJS is converting a javascript value into a SupportedType enum value.

func (*SupportedType) JSValue Uses

func (this *SupportedType) JSValue() js.Value

JSValue is converting this enum into a javascript object

func (SupportedType) Value Uses

func (this SupportedType) Value() string

Value is converting this into javascript defined string value

type Union Uses

type Union struct {
    Value js.Value
}

func UnionFromJS Uses

func UnionFromJS(value js.Value) *Union

func (*Union) JSValue Uses

func (u *Union) JSValue() js.Value

type XMLSerializer Uses

type XMLSerializer struct {
    // Value_JS holds a reference to a javascript value
    Value_JS js.Value
}

class: XMLSerializer

func NewXMLSerializer Uses

func NewXMLSerializer() (_result *XMLSerializer)

func XMLSerializerFromJS Uses

func XMLSerializerFromJS(value js.Wrapper) *XMLSerializer

XMLSerializerFromJS is casting a js.Wrapper into XMLSerializer.

func (*XMLSerializer) JSValue Uses

func (_this *XMLSerializer) JSValue() js.Value

func (*XMLSerializer) SerializeToString Uses

func (_this *XMLSerializer) SerializeToString(root *dom.Node) (_result string)

Package parser imports 3 packages (graph). Updated 2019-09-17. Refresh now. Tools for package owners.