/** * This file is auto generated from JavaDoc. Do not modify it manually. */ import type { Node } from "../../types/javax/jcr/Node"; import type DocType from "../DocType"; /** * A deprecated DOCTYPE utility interface. * *
* NOTE! This interface is deprecated and should typically not be used!
* All methods have a fixed behaviour, i.e. always returns true or false
* since all Sitevision pages use HTML5.
*
* An instance of the Sitevision class implementing this interface can be obtained via {@link senselogic.sitevision.api.Utils#getDocTypeUtil()}.
* See {@link senselogic.sitevision.api.Utils} for how to obtain an instance of the Utils interface.
*
Checks if the doctype for current page is HTML 4.01 Transitional or HTML5.
* @return true */ isHtml(): boolean; /** * This method always return true since all pages are always HTML5. *Checks if the doctype for a certain page is HTML 4.01 Transitional or HTML5.
* @param aPageNode this argument will be completely ignored * @return true */ isHtml(aPageNode: Node): boolean; /** * This method always return false since all pages are always HTML5. *Checks if the doctype for current page is HTML 4.01 Transitional.
* @return false * @see DocType#HTML4_TRANSITIONAL */ isHtml4(): boolean; /** * This method always return false since all pages are always HTML5. *Checks if the doctype for a certain page is HTML 4.01 Transitional.
* @param aPageNode this argument will be completely ignored * @return false */ isHtml4(aPageNode: Node): boolean; /** * This method always return true since all pages are always HTML5. *Checks if the doctype for current page is HTML5.
* @return true * @see DocType#HTML5 */ isHtml5(): boolean; /** * This method always return true since all pages are always HTML5. *Checks if the doctype for a certain page is HTML5.
* @param aPageNode this argument will be completely ignored * @return true */ isHtml5(aPageNode: Node): boolean; /** * This method always return false since all pages are always HTML5. *Checks if the doctype for current page is XHTML 1.0 Transitional or XHTML 1.0 Strict.
* @return false */ isXhtml(): boolean; /** * This method always return false since all pages are always HTML5. *Checks if the doctype for a certain page is XHTML 1.0 Transitional or XHTML 1.0 Strict.
* @param aPageNode this argument will be completely ignored * @return false */ isXhtml(aPageNode: Node): boolean; /** * This method always return false since all pages are always HTML5. *Checks if the doctype for current page is XHTML 1.0 Transitional.
* @return false * @see DocType#XHTML1_TRANSITIONAL */ isXhtmlTransitional(): boolean; /** * This method always return false since all pages are always HTML5. *Checks if the doctype for a certain page is XHTML 1.0 Transitional.
* @param aPageNode this argument will be completely ignored * @return false */ isXhtmlTransitional(aPageNode: Node): boolean; /** * This method always return false since all pages are always HTML5. *Checks if the doctype for current page is XHTML 1.0 Strict.
* @return false * @see DocType#XHTML1_STRICT */ isXhtmlStrict(): boolean; /** * This method always return false since all pages are always HTML5. *Checks if the doctype for a certain page is XHTML 1.0 Strict.
* @param aPageNode this argument will be completely ignored * @return false */ isXhtmlStrict(aPageNode: Node): boolean; /** * This method always return {@link DocType#HTML5} since all pages are always HTML5. *Gets the doctype for current page.
* @return {@link DocType#HTML5} */ getDocType(): DocType; /** * This method always return {@link DocType#HTML5} since all pages are always HTML5. *Gets the doctype for a certain page.
* @param aPageNode this argument will be completely ignored * @return {@link DocType#HTML5} */ getDocType(aPageNode: Node): DocType; /** * This method always return true if the aDocType argument is {@link DocType#HTML5}. *Checks if the doctype for current page matches a certain DocType.
* @param aDocType the doctype to check against * @return true if aDocType is {@link DocType#HTML5}, false otherwise */ isDocType(aDocType: DocType): boolean; /** * This method always return true if the aDocType argument is {@link DocType#HTML5}. *Checks if the doctype for a certain page matches a certain DocType.
* @param aPageNode this argument will be completely ignored * @param aDocType the doctype to check against * @return true if aDocType is {@link DocType#HTML5}, false otherwise */ isDocType(aPageNode: Node, aDocType: DocType): boolean; } declare namespace DocTypeUtil {} declare var docTypeUtil: DocTypeUtil; export default docTypeUtil;