array ( 0 => 'index.php', 1 => 'PHP Manual', ), 'head' => array ( 0 => 'UTF-8', 1 => 'uk', ), 'this' => array ( 0 => 'domchildnode.after.php', 1 => 'DOMChildNode::after', 2 => 'Adds nodes after the node', ), 'up' => array ( 0 => 'class.domchildnode.php', 1 => 'DOMChildNode', ), 'prev' => array ( 0 => 'class.domchildnode.php', 1 => 'DOMChildNode', ), 'next' => array ( 0 => 'domchildnode.before.php', 1 => 'DOMChildNode::before', ), 'alternatives' => array ( ), 'source' => array ( 'lang' => 'en', 'path' => 'reference/dom/domchildnode/after.xml', ), 'history' => array ( ), ); $setup["toc"] = $TOC; $setup["toc_deprecated"] = $TOC_DEPRECATED; $setup["parents"] = $PARENTS; manual_setup($setup); contributors($setup); ?>
(PHP 8)
DOMChildNode::after — Adds nodes after the node
Adds the passed nodes after the node.
nodesNodes to be added after the node. Strings are automatically converted to text nodes.
Не повертає значень.
DOM_HIERARCHY_REQUEST_ERR
Виникає, якщо тип батьківського вузла не дозволяє тип дочірнього вузла,
котрий передано в параметр nodes, або якщо вузол,
який потрібно додати, є одним із предків цього вузла або ним самим.
DOM_WRONG_DOCUMENT_ERR
Виникає, якщо один з переданих nodes було створено не
в тому документі, що і цей вузол.
| Версія | Опис |
|---|---|
| 8.3.0 |
Calling this method on a node without a parent is now a no-op to align the behaviour with the DOM specification.
Раніше викидалося виключення DOMException з кодом DOM_HIERARCHY_REQUEST_ERR.
|
| 8.3.0 |
Calling this method on a node without an owner document now works.
Раніше викидалося виключення DOMException з кодом DOM_HIERARCHY_REQUEST_ERR.
|