PHP
HTML

DOMText (class)

The DOMText class

介绍

(PHP 5, PHP 7)

一个DOMText类从DOMCharacterData继承和表示一个DOMElement或DOMAttr的文本内容。

课程简介

DOMText extends DOMCharacterData {

/* Properties */

readonly public string $wholeText ;

/* Methods */

public __construct ( string $value )

public bool isWhitespaceInElementContent ( void )

public DOMText splitText ( int $offset )

/* Inherited methods */

public DOMNode DOMNode::appendChild ( DOMNode $newnode )

public string DOMNode::C14N ([ bool $exclusive [, bool $with_comments [, array $xpath [, array $ns_prefixes ]]]] )

public int DOMNode::C14NFile ( string $uri [, bool $exclusive [, bool $with_comments [, array $xpath [, array $ns_prefixes ]]]] )

public DOMNode DOMNode::cloneNode ([ bool $deep ] )

public int DOMNode::getLineNo ( void )

public string DOMNode::getNodePath ( void )

public bool DOMNode::hasAttributes ( void )

public bool DOMNode::hasChildNodes ( void )

public DOMNode DOMNode::insertBefore ( DOMNode $newnode [, DOMNode $refnode ] )

public bool DOMNode::isDefaultNamespace ( string $namespaceURI )

public bool DOMNode::isSameNode ( DOMNode $node )

public bool DOMNode::isSupported ( string $feature , string $version )

public string DOMNode::lookupNamespaceURI ( string $prefix )

public string DOMNode::lookupPrefix ( string $namespaceURI )

public void DOMNode::normalize ( void )

public DOMNode DOMNode::removeChild ( DOMNode $oldnode )

public DOMNode DOMNode::replaceChild ( DOMNode $newnode , DOMNode $oldnode )

}

属性

wholeText

包含逻辑上相邻的所有文本(不由元素,注释或处理指令分隔)文本节点。

目录

  • DOMText :: __ construct - 创建一个新的DOMText对象

  • DOMText :: isWhitespaceInElementContent - 指示此文本节点是否包含空白

  • DOMText :: splitText - 将此节点分割为两个指定偏移量的节点

← DOMProcessingInstruction::__construct

DOMText::__construct →