Dom\DocumentType クラス

はじめに

個々の Dom\Documentdoctype 属性を持ちます。 この属性の値は、nullDom\DocumentType のどちらかになります。

このクラスは、DOMImplementation と同等ですが、 モダンかつ仕様に準拠しています。

クラス概要

Dom\DocumentType
extends Dom\Node
implements Dom\ChildNode
/* 継承した定数 */
public const int Dom\Node::DOCUMENT_POSITION_DISCONNECTED = 0x1;
public const int Dom\Node::DOCUMENT_POSITION_PRECEDING = 0x2;
public const int Dom\Node::DOCUMENT_POSITION_FOLLOWING = 0x4;
public const int Dom\Node::DOCUMENT_POSITION_CONTAINS = 0x8;
public const int Dom\Node::DOCUMENT_POSITION_CONTAINED_BY = 0x10;
public const int Dom\Node::DOCUMENT_POSITION_IMPLEMENTATION_SPECIFIC = 0x20;
/* プロパティ */
public readonly string $name;
public readonly Dom\DtdNamedNodeMap $entities;
public readonly Dom\DtdNamedNodeMap $notations;
public readonly string $publicId;
public readonly string $systemId;
public readonly stringnull $internalSubset;
/* 継承したプロパティ */
public readonly int $nodeType;
public readonly string $nodeName;
public readonly string $baseURI;
public readonly bool $isConnected;
public readonly Dom\Documentnull $ownerDocument;
public readonly Dom\Nodenull $parentNode;
public readonly Dom\Elementnull $parentElement;
public readonly Dom\NodeList $childNodes;
public readonly Dom\Nodenull $firstChild;
public readonly Dom\Nodenull $lastChild;
public readonly Dom\Nodenull $previousSibling;
public readonly Dom\Nodenull $nextSibling;
public stringnull $nodeValue;
public stringnull $textContent;
/* メソッド */
/* Not documented yet */
/* 継承したメソッド */
/* Not documented yet */

プロパティ

publicId

外部サブセットの公開 ID。

systemId

外部サブセットのシステム ID。完全 URI である場合とそうでない場合がある。

name

DTD の名前。すなわち、DOCTYPE キーワードに続く値。

entities
DTD で宣言された一般エンティティを含む Dom\DtdNamedNodeMap。 外部と内部のエンティティを両方含みます。
notations
DTD で宣言された記法を含む Dom\DtdNamedNodeMap
internalSubset

内部サブセットを文字列として取得する。存在しない場合は null となる。区切りの角括弧は含まない。