[DOC-CVS] [doc-en] master: Clarify DomNode::$ownerDocument description

[email protected] (Juliette via GitHub)
Newsgroups php.doc.cvs
Message-ID <[email protected]>
Author: Juliette (jrfnl)
Committer: GitHub (web-flow)
Pusher: nielsdos
Date: 2025-09-11T23:15:26+02:00

Commit: https://github.com/php/doc-en/commit/3a5f4322449f2d4c5caa61afb4e4188872389728
Raw diff: https://github.com/php/doc-en/commit/3a5f4322449f2d4c5caa61afb4e4188872389728.diff

Clarify DomNode::$ownerDocument description

Co-authored-by: jrfnl <[email protected]>
Co-authored-by: Niels Dossche <[email protected]>

Changed paths:
  M  reference/dom/domnode.xml


Diff:

diff --git a/reference/dom/domnode.xml b/reference/dom/domnode.xml
index cf005c0f2c92..d84ecd7eeabd 100644
--- a/reference/dom/domnode.xml
+++ b/reference/dom/domnode.xml
@@ -353,7 +353,7 @@
     <varlistentry xml:id="domnode.props.ownerdocument">
      <term><varname>ownerDocument</varname></term>
      <listitem>
-      <para>The <classname>DOMDocument</classname> object associated with this node, or &null; if this node is a <classname>DOMDocument</classname></para>
+      <para>The <classname>DOMDocument</classname> object associated with this node, or &null; if this node does not have an associated document (e.g. if it is detached, or if it is a <classname>DOMDocument</classname>).</para>
      </listitem>
     </varlistentry>
     <varlistentry xml:id="domnode.props.namespaceuri">
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.