php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Return to Bug #54037
Patch patch-for-new-loadhtml-options-documentation revision 2011-08-12 21:06 UTC by fxmulder at gmail dot com
Patch patch-for-adding-loadhtml-options.patch revision 2011-03-03 07:12 UTC by chregu@php.net
Patch libxml-html-constants.patch revision 2011-02-17 23:19 UTC by fxmulder at gmail dot com
revision 2011-02-17 23:00 UTC by fxmulder at gmail dot com
Patch domdocument-loadhtml-options.patch revision 2011-02-17 18:31 UTC by fxmulder at gmail dot com
revision 2011-02-17 17:59 UTC by fxmulder at gmail dot com

Patch patch-for-new-loadhtml-options-documentation for DOM XML related Bug #54037

Patch version 2011-08-12 21:06 UTC

Return to Bug #54037 | Download this patch
Patch Revisions:

Developer: fxmulder@gmail.com

diff -ur phpdoc-en.orig/en/reference/dom/domdocument/loadhtmlfile.xml phpdoc-en/en/reference/dom/domdocument/loadhtmlfile.xml
--- phpdoc-en.orig/en/reference/dom/domdocument/loadhtmlfile.xml	2011-08-10 15:28:28.000000000 -0600
+++ phpdoc-en/en/reference/dom/domdocument/loadhtmlfile.xml	2011-08-11 15:38:44.000000000 -0600
@@ -12,6 +12,7 @@
   <methodsynopsis>
    <type>bool</type><methodname>DOMDocument::loadHTMLFile</methodname>
    <methodparam><type>string</type><parameter>filename</parameter></methodparam>
+   <methodparam choice="opt"><type>int</type><parameter>options</parameter><initializer>0</initializer></methodparam>
   </methodsynopsis>
   <para>
    The function parses the HTML document in the file named
@@ -31,6 +32,15 @@
       </para>
      </listitem>
     </varlistentry>
+    <varlistentry>
+     <term><parameter>options</parameter></term>
+     <listitem>
+      <para>
+       <link linkend="language.operators.bitwise">Bitwise <literal>OR</literal></link>
+       of the <link linkend="libxml.constants">libxml option constants</link>.
+      </para>
+     </listitem>
+    </varlistentry>
    </variablelist>
   </para>
  </refsect1>
diff -ur phpdoc-en.orig/en/reference/dom/domdocument/loadhtml.xml phpdoc-en/en/reference/dom/domdocument/loadhtml.xml
--- phpdoc-en.orig/en/reference/dom/domdocument/loadhtml.xml	2011-08-10 15:28:28.000000000 -0600
+++ phpdoc-en/en/reference/dom/domdocument/loadhtml.xml	2011-08-11 15:38:57.000000000 -0600
@@ -12,6 +12,7 @@
   <methodsynopsis>
    <type>bool</type><methodname>DOMDocument::loadHTML</methodname>
    <methodparam><type>string</type><parameter>source</parameter></methodparam>
+   <methodparam choice="opt"><type>int</type><parameter>options</parameter><initializer>0</initializer></methodparam>
   </methodsynopsis>
   <para>
    The function parses the HTML contained in the string <parameter>source</parameter>. 
@@ -34,6 +35,15 @@
       </para>
      </listitem>
     </varlistentry>
+    <varlistentry>
+     <term><parameter>options</parameter></term>
+     <listitem>
+      <para>
+       <link linkend="language.operators.bitwise">Bitwise <literal>OR</literal></link>
+       of the <link linkend="libxml.constants">libxml option constants</link>.
+      </para>
+     </listitem>
+    </varlistentry>
    </variablelist>
   </para>
  </refsect1>
diff -ur phpdoc-en.orig/en/reference/libxml/constants.xml phpdoc-en/en/reference/libxml/constants.xml
--- phpdoc-en.orig/en/reference/libxml/constants.xml	2011-08-10 15:29:16.000000000 -0600
+++ phpdoc-en/en/reference/libxml/constants.xml	2011-08-12 14:48:11.000000000 -0600
@@ -254,6 +254,49 @@
     </simpara>
    </listitem>
   </varlistentry>
+  <varlistentry>
+   <term>
+    <constant>LIBXML_PEDANTIC</constant>
+     (<type>integer</type>)
+   </term>
+   <listitem>
+    <simpara>
+     Sets the XML_PARSE_PEDANTIC for pedantic error reporting
+    </simpara>
+   </listitem>
+  </varlistentry>
+  <varlistentry>
+   <term>
+    <constant>LIBXML_HTML_NOIMPLIED</constant>
+     (<type>integer</type>)
+   </term>
+   <listitem>
+    <simpara>
+     Sets the HTML_PARSE_NOIMPLIED flag indicating not to add implied html/body... elements when parsing HTML
+    </simpara>
+    <note>
+     <para>
+      Only available in Libxml &gt;= 2.7.7
+     </para>
+    </note>
+   </listitem>
+  </varlistentry>
+  <varlistentry>
+   <term>
+    <constant>LIBXML_HTML_NODEFDTD</constant>
+     (<type>integer</type>)
+   </term>
+   <listitem>
+    <simpara>
+     Sets the HTML_PARSE_NODEFDTD flag which does not default a doctype if not found when parsing HTML
+    </simpara>
+    <note>
+     <para>
+      Only available in Libxml &gt;= 2.7.8
+     </para>
+    </note>
+   </listitem>
+  </varlistentry>
  </variablelist>
 </appendix>
 
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Tue May 07 23:01:35 2024 UTC