parser

package
v0.0.0-...-41cedfc Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 21, 2022 License: BSD-3-Clause Imports: 4 Imported by: 0

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

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

class: DOMParser

func DOMParserFromJS

func DOMParserFromJS(value js.Value) *DOMParser

DOMParserFromJS is casting a js.Value into DOMParser.

func DOMParserFromWrapper

func DOMParserFromWrapper(input core.Wrapper) *DOMParser

DOMParserFromJS is casting from something that holds a js.Value into DOMParser.

func NewDOMParser

func NewDOMParser() (_result *DOMParser)

func (*DOMParser) JSValue

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

JSValue returns the js.Value or js.Null() if _this is nil

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

type Union struct {
	Value js.Value
}

func UnionFromJS

func UnionFromJS(value js.Value) *Union

func (*Union) JSValue

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

type XMLSerializer

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

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)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL