Property | Type | Description | |
---|---|---|---|
$charset | |||
$contentType | unknown_type | ||
$data | |||
$dataNodes | |||
$document | DOMDocument | ||
$events | |||
$eventsGlobal | |||
$eventsNodes | |||
$frames | unknown_type | ||
$id | |||
$isDocumentFragment | |||
$isHTML | |||
$isXHTML | |||
$isXML | |||
$root | DOMNode | Used by documentFragments. | |
$uuid | |||
$xpath |
Method | Description | |
---|---|---|
__construct ( $markup = null, $contentType = null, $newDocumentID = null ) | ||
debug ( $text ) | ||
expandEmptyTag ( $tag, $xml ) : unknown_type | expandEmptyTag. | |
import ( $source, $sourceCharset = null ) : array | ||
importAttr ( $value ) | ||
isDocumentFragmentHTML ( $markup ) | ||
isDocumentFragmentXHTML ( $markup ) | ||
isDocumentFragmentXML ( $markup ) | ||
load ( $markup, $contentType = null, $newDocumentID = null ) | ||
markup ( $nodes = null, $innerMarkup = false ) : string | Return document markup, starting with optional $nodes as root. |
Method | Description | |
---|---|---|
afterMarkupLoad ( ) | ||
charsetAppendToHTML ( $html, $charset, $xhtml = false ) | ||
charsetAppendToXML ( $markup, $charset ) | ||
charsetFixHTML ( $markup ) | Repositions meta[type=charset] at the start of head. Bypasses DOMDocument bug. | |
charsetFromHTML ( $markup ) | ||
charsetFromXML ( $markup ) | ||
contentTypeFromHTML ( $markup ) : array | ||
contentTypeToArray ( $contentType ) | ||
documentCreate ( $charset, $version = '1.0' ) | ||
documentFragmentCreate ( $source, $charset = null ) : DOMDocumentWrapper | Creates new document fragment. | |
documentFragmentToMarkup ( $fragment ) | ||
isXHTML ( $markup = null ) | ||
isXML ( $markup ) | ||
loadMarkup ( $markup ) | ||
loadMarkupHTML ( $markup, $requestedCharset = null ) | ||
loadMarkupReset ( ) | ||
loadMarkupXML ( $markup, $requestedCharset = null ) | ||
markupFixXHTML ( $markup ) |
Method | Description | |
---|---|---|
documentFragmentLoadMarkup ( $fragment, $charset, $markup = null ) |
public __construct ( $markup = null, $contentType = null, $newDocumentID = null ) |
protected charsetAppendToHTML ( $html, $charset, $xhtml = false ) |
protected charsetFixHTML ( $markup ) |
protected contentTypeFromHTML ( $markup ) : array | ||
$markup | ||
return | array | contentType, charset |
protected documentFragmentCreate ( $source, $charset = null ) : DOMDocumentWrapper | ||
$source | ||
return | DOMDocumentWrapper |
public static expandEmptyTag ( $tag, $xml ) : unknown_type | ||
$tag | ||
$xml | ||
return | unknown_type |