Module: @divine/x4e
Namespaces
Interfaces
References
escapeXML
Renames and re-exports escapeHTML
escapeXMLAttribute
Renames and re-exports escapeHTMLAttribute
Type Aliases
JSX_Attributes
Ƭ JSX_Attributes: Record
<string
, unknown
>
Defined in
JSX_ComponentResult
Ƭ JSX_ComponentResult: JSX_Element
| null
| undefined
Defined in
XML
Ƭ XML<TNode
>: _XML
<TNode
>
Type parameters
Name | Type |
---|---|
TNode | extends Node |
Defined in
XMLList
Ƭ XMLList<TNode
>: _XMLList
<TNode
>
Type parameters
Name | Type |
---|---|
TNode | extends Node |
Defined in
Variables
NS_ATOM
• Const
NS_ATOM: "http://www.w3.org/2005/Atom"
Defined in
NS_DEFAULT
• Const
NS_DEFAULT: ""
Defined in
NS_SOAP
• Const
NS_SOAP: "http://www.w3.org/2003/05/soap-envelope"
Defined in
NS_WDSL
• Const
NS_WDSL: "http://www.w3.org/ns/wsdl"
Defined in
NS_XHTML
• Const
NS_XHTML: "http://www.w3.org/1999/xhtml"
Defined in
NS_XLINK
• Const
NS_XLINK: "http://www.w3.org/1999/xlink"
Defined in
NS_XMLSCHEMA
• Const
NS_XMLSCHEMA: "http://www.w3.org/2001/XMLSchema"
Defined in
NS_XSLT
• Const
NS_XSLT: "http://www.w3.org/1999/XSL/Transform"
Defined in
Functions
XML
▸ XML(source?
): XML
<Text
>
Parameters
Name | Type |
---|---|
source? | null |
Returns
XML
<Text
>
Defined in
▸ XML<TNode
>(source
): XML
<TNode
>
Type parameters
Name | Type |
---|---|
TNode | extends Node |
Parameters
Name | Type |
---|---|
source | TNode | XML <TNode > | XMLList <TNode > |
Returns
XML
<TNode
>
Defined in
▸ XML<TNode
>(source
, defaultNamespace?
): XML
<TNode
>
Type parameters
Name | Type |
---|---|
TNode | extends Node = Node |
Parameters
Name | Type |
---|---|
source | undefined | null | ConvertableTypes |
defaultNamespace? | string |
Returns
XML
<TNode
>
Defined in
XMLList
▸ XMLList<TNode
>(source
): XMLList
<TNode
>
Type parameters
Name | Type |
---|---|
TNode | extends Node |
Parameters
Name | Type |
---|---|
source | TNode | ArrayLike <TNode > | XML <TNode > | XMLList <TNode > |
Returns
XMLList
<TNode
>
Defined in
▸ XMLList<TNode
>(source
, defaultNamespace?
): XMLList
<TNode
>
Type parameters
Name | Type |
---|---|
TNode | extends Node = Node |
Parameters
Name | Type |
---|---|
source | undefined | null | ConvertableTypes | ArrayLike <Node > |
defaultNamespace? | string |
Returns
XMLList
<TNode
>
Defined in
createJSXElement
▸ createJSXElement<T
>(tagName
, namespaceURI
, props
, ...children
): JSX_Element
Type parameters
Name | Type |
---|---|
T | extends JSX_Attributes |
Parameters
Name | Type |
---|---|
tagName | JSX_TagName <T > |
namespaceURI | null | string |
props | null | T |
...children | JSX_Children |
Returns
JSX_Element
Defined in
escapeHTML
▸ escapeHTML(value
): string
Parameters
Name | Type |
---|---|
value | string |
Returns
string
Defined in
escapeHTMLAttribute
▸ escapeHTMLAttribute(value
): string
Parameters
Name | Type |
---|---|
value | string |
Returns
string
Defined in
html
▸ html(strings
, ...values
): XML
<Element
>
Parameters
Name | Type |
---|---|
strings | TemplateStringsArray |
...values | unknown [] |
Returns
XML
<Element
>
Defined in
htmlList
▸ htmlList<TNode
>(strings
, ...values
): XMLList
<TNode
>
Type parameters
Name | Type |
---|---|
TNode | extends Node = Node |
Parameters
Name | Type |
---|---|
strings | TemplateStringsArray |
...values | unknown [] |
Returns
XMLList
<TNode
>
Defined in
isAttribute
▸ isAttribute(node
): node is Attr
Parameters
Name | Type |
---|---|
node | Node |
Returns
node is Attr
Defined in
isComment
▸ isComment(node
): node is Comment
Parameters
Name | Type |
---|---|
node | Node |
Returns
node is Comment
Defined in
isDOMNode
▸ isDOMNode(obj
): obj is Node
Parameters
Name | Type |
---|---|
obj | unknown |
Returns
obj is Node
Defined in
isDocument
▸ isDocument(node
): node is Document
Parameters
Name | Type |
---|---|
node | Node |
Returns
node is Document
Defined in
isDocumentFragment
▸ isDocumentFragment(node
): node is DocumentFragment
Parameters
Name | Type |
---|---|
node | Node |
Returns
node is DocumentFragment
Defined in
isDocumentType
▸ isDocumentType(node
): node is DocumentType
Parameters
Name | Type |
---|---|
node | Node |
Returns
node is DocumentType
Defined in
isElement
▸ isElement(node
): node is Element
Parameters
Name | Type |
---|---|
node | Node |
Returns
node is Element
Defined in
isEqualNode
▸ isEqualNode(n1
, n2
, x4eMode
): boolean
Parameters
Name | Type |
---|---|
n1 | Node |
n2 | undefined | null | Node |
x4eMode | boolean |
Returns
boolean
Defined in
isProcessingInstruction
▸ isProcessingInstruction(node
): node is ProcessingInstruction
Parameters
Name | Type |
---|---|
node | Node |
Returns
node is ProcessingInstruction
Defined in
isText
▸ isText(node
): node is Text
Parameters
Name | Type |
---|---|
node | Node |
Returns
node is Text
Defined in
parseHTMLFragmentFromString
▸ parseHTMLFragmentFromString(fragment
): DocumentFragment
Parameters
Name | Type |
---|---|
fragment | string |
Returns
DocumentFragment
Defined in
parseHTMLFromString
▸ parseHTMLFromString(document
): Document
Parameters
Name | Type |
---|---|
document | string |
Returns
Document
Defined in
parseXMLFromString
▸ parseXMLFromString(document
): Document
Parameters
Name | Type |
---|---|
document | string |
Returns
Document
Defined in
serializeHTMLToString
▸ serializeHTMLToString(node
): string
Parameters
Name | Type |
---|---|
node | Node |
Returns
string
Defined in
serializeXMLToString
▸ serializeXMLToString(node
): string
Parameters
Name | Type |
---|---|
node | Node |
Returns
string
Defined in
xhtml
▸ xhtml<TNode
>(strings
, ...values
): XML
<TNode
>
Type parameters
Name | Type |
---|---|
TNode | extends Node = Element |
Parameters
Name | Type |
---|---|
strings | TemplateStringsArray |
...values | unknown [] |
Returns
XML
<TNode
>
Defined in
xhtmlList
▸ xhtmlList<TNode
>(strings
, ...values
): XMLList
<TNode
>
Type parameters
Name | Type |
---|---|
TNode | extends Node = Node |
Parameters
Name | Type |
---|---|
strings | TemplateStringsArray |
...values | unknown [] |
Returns
XMLList
<TNode
>
Defined in
xml
▸ xml<TNode
>(strings
, ...values
): XML
<TNode
>
Type parameters
Name | Type |
---|---|
TNode | extends Node = Element |
Parameters
Name | Type |
---|---|
strings | TemplateStringsArray |
...values | unknown [] |
Returns
XML
<TNode
>
Defined in
xmlList
▸ xmlList<TNode
>(strings
, ...values
): XMLList
<TNode
>
Type parameters
Name | Type |
---|---|
TNode | extends Node = Node |
Parameters
Name | Type |
---|---|
strings | TemplateStringsArray |
...values | unknown [] |
Returns
XMLList
<TNode
>
Defined in
xmlListNS
▸ xmlListNS(defaultNamespace
): XMLListLiteral
Parameters
Name | Type |
---|---|
defaultNamespace | string |
Returns
XMLListLiteral
Defined in
xmlNS
▸ xmlNS(defaultNamespace
): XMLLiteral
Parameters
Name | Type |
---|---|
defaultNamespace | string |
Returns
XMLLiteral