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 >= 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 >= 2.7.8
+ </para>
+ </note>
+ </listitem>
+ </varlistentry>
</variablelist>
</appendix>
|