util.d.ts 1.6 KB

12345678910111213141516171819202122232425262728
  1. /**
  2. * Safe Element.localName for all supported environments
  3. * @param element
  4. */
  5. export declare function getLocalName(element: Element): string;
  6. export declare function isElement(node: Node | null): node is Element;
  7. export declare function isHTMLTableCaptionElement(node: Node | null): node is HTMLTableCaptionElement;
  8. export declare function isHTMLInputElement(node: Node | null): node is HTMLInputElement;
  9. export declare function isHTMLOptGroupElement(node: Node | null): node is HTMLOptGroupElement;
  10. export declare function isHTMLSelectElement(node: Node | null): node is HTMLSelectElement;
  11. export declare function isHTMLTableElement(node: Node | null): node is HTMLTableElement;
  12. export declare function isHTMLTextAreaElement(node: Node | null): node is HTMLTextAreaElement;
  13. export declare function safeWindow(node: Node): Window;
  14. export declare function isHTMLFieldSetElement(node: Node | null): node is HTMLFieldSetElement;
  15. export declare function isHTMLLegendElement(node: Node | null): node is HTMLLegendElement;
  16. export declare function isHTMLSlotElement(node: Node | null): node is HTMLSlotElement;
  17. export declare function isSVGElement(node: Node | null): node is SVGElement;
  18. export declare function isSVGSVGElement(node: Node | null): node is SVGSVGElement;
  19. export declare function isSVGTitleElement(node: Node | null): node is SVGTitleElement;
  20. /**
  21. *
  22. * @param {Node} node -
  23. * @param {string} attributeName -
  24. * @returns {Element[]} -
  25. */
  26. export declare function queryIdRefs(node: Node, attributeName: string): Element[];
  27. export declare function hasAnyConcreteRoles(node: Node, roles: Array<string | null>): node is Element;
  28. //# sourceMappingURL=util.d.ts.map