Function
| Static Public Summary | ||
| public |
attributeNameToProperty(name: string): string Function converts attribute name "data-some-value" to "someValue". |
|
| public |
escapeAttribute(string: *): * |
|
| public |
escapeHTML(string: *): * |
|
| public |
|
|
| public |
propertyNameToAttribute(name: string): string Function converts dataset property name "someValue" to "data-some-value". |
|
| public |
querySelector(element: Element, query: string): Element | null |
|
| public |
querySelectorAll(element: Element, query: string): Element[] |
|
Static Public
public attributeNameToProperty(name: string): string source
import {attributeNameToProperty} from 'html-document/src/utils/escapeAttributeName.js'Function converts attribute name "data-some-value" to "someValue".
Params:
| Name | Type | Attribute | Description |
| name | string |
public escapeAttribute(string: *): * source
import escapeAttribute from 'html-document/src/utils/escapeAttribute.js'Params:
| Name | Type | Attribute | Description |
| string | * |
Return:
| * |
public escapeHTML(string: *): * source
import escapeHTML from 'html-document/src/utils/escapeHTML.js'Params:
| Name | Type | Attribute | Description |
| string | * |
Return:
| * |
public parse(html: string, node: Node) source
import parse from 'html-document/src/parse.js'public propertyNameToAttribute(name: string): string source
import {propertyNameToAttribute} from 'html-document/src/utils/escapeAttributeName.js'Function converts dataset property name "someValue" to "data-some-value".
Params:
| Name | Type | Attribute | Description |
| name | string |