<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>Recent changes to support-requests</title><link>https://sourceforge.net/p/simplehtmldom/support-requests/</link><description>Recent changes to support-requests</description><atom:link href="https://sourceforge.net/p/simplehtmldom/support-requests/feed.rss" rel="self"/><language>en</language><lastBuildDate>Thu, 06 Nov 2025 21:02:05 -0000</lastBuildDate><atom:link href="https://sourceforge.net/p/simplehtmldom/support-requests/feed.rss" rel="self" type="application/rss+xml"/><item><title>#46 Access to array of matched elements</title><link>https://sourceforge.net/p/simplehtmldom/support-requests/46/?limit=25#7f9f</link><description>&lt;div class="markdown_content"&gt;&lt;p&gt;DELETE THIS REQUEST&lt;/p&gt;&lt;/div&gt;</description><pubDate>Thu, 06 Nov 2025 21:02:05 -0000</pubDate><guid>https://sourceforge.net0f6d8c69dda21f5512fc745c7df29b82547935c7</guid></item><item><title>#63 Get the elements of the upper level like with CSS pseudo selector :first-child</title><link>https://sourceforge.net/p/simplehtmldom/support-requests/63/?limit=250#afc7</link><description>&lt;div class="markdown_content"&gt;&lt;p&gt;Ok. Wrong test. The method it's called like &lt;br/&gt;
&lt;code&gt;$sections = $html-&amp;gt;find('section')-&amp;gt;firstChild();&lt;/code&gt;&lt;br/&gt;
but I got the same an error because it's an Array.&lt;br/&gt;
So there's not the same as the CSS pseudo selector rule &lt;code&gt;first-child&lt;/code&gt;&lt;/p&gt;&lt;/div&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Hi Man O ManaO</dc:creator><pubDate>Mon, 02 Dec 2024 02:50:51 -0000</pubDate><guid>https://sourceforge.net73a75d299301176d8babb022cbfc24f65a867a56</guid></item><item><title>Get the elements of the upper level like with CSS pseudo selector :first-child</title><link>https://sourceforge.net/p/simplehtmldom/support-requests/63/</link><description>&lt;div class="markdown_content"&gt;&lt;p&gt;I'm trying to scrape from some day by using CSS pseudo selector first-child.&lt;/p&gt;
&lt;div class="codehilite"&gt;&lt;pre&gt;&lt;span&gt;&lt;/span&gt;&lt;code&gt;$html&lt;span class="w"&gt; &lt;/span&gt;=&lt;span class="w"&gt; &lt;/span&gt;'
&lt;span class="nt"&gt;&amp;lt;div&amp;gt;&lt;/span&gt;
&lt;span class="w"&gt;    &lt;/span&gt;&lt;span class="nt"&gt;&amp;lt;section&amp;gt;&lt;/span&gt;
&lt;span class="w"&gt;        &lt;/span&gt;&lt;span class="nt"&gt;&amp;lt;section&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="na"&gt;class=&lt;/span&gt;&lt;span class="s"&gt;"A"&lt;/span&gt;&lt;span class="nt"&gt;&amp;gt;&lt;/span&gt;A&lt;span class="nt"&gt;&amp;lt;/section&amp;gt;&lt;/span&gt;
&lt;span class="w"&gt;        &lt;/span&gt;&lt;span class="nt"&gt;&amp;lt;section&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="na"&gt;class=&lt;/span&gt;&lt;span class="s"&gt;"B"&lt;/span&gt;&lt;span class="nt"&gt;&amp;gt;&lt;/span&gt;B&lt;span class="nt"&gt;&amp;lt;/section&amp;gt;&lt;/span&gt;
&lt;span class="w"&gt;    &lt;/span&gt;&lt;span class="nt"&gt;&amp;lt;/section&amp;gt;&lt;/span&gt;
&lt;span class="w"&gt;    &lt;/span&gt;&lt;span class="nt"&gt;&amp;lt;section&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="na"&gt;class=&lt;/span&gt;&lt;span class="s"&gt;"C"&lt;/span&gt;&lt;span class="nt"&gt;&amp;gt;&lt;/span&gt;
&lt;span class="w"&gt;        &lt;/span&gt;C
&lt;span class="w"&gt;    &lt;/span&gt;&lt;span class="nt"&gt;&amp;lt;/section&amp;gt;&lt;/span&gt;
&lt;span class="w"&gt;    &lt;/span&gt;&lt;span class="nt"&gt;&amp;lt;section&amp;gt;&lt;/span&gt;
&lt;span class="w"&gt;        &lt;/span&gt;&lt;span class="nt"&gt;&amp;lt;section&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="na"&gt;class=&lt;/span&gt;&lt;span class="s"&gt;"D"&lt;/span&gt;&lt;span class="nt"&gt;&amp;gt;&lt;/span&gt;D&lt;span class="nt"&gt;&amp;lt;/section&amp;gt;&lt;/span&gt;
&lt;span class="w"&gt;        &lt;/span&gt;&lt;span class="nt"&gt;&amp;lt;section&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="na"&gt;class=&lt;/span&gt;&lt;span class="s"&gt;"E"&lt;/span&gt;&lt;span class="nt"&gt;&amp;gt;&lt;/span&gt;E&lt;span class="nt"&gt;&amp;lt;/section&amp;gt;&lt;/span&gt;
&lt;span class="w"&gt;    &lt;/span&gt;&lt;span class="nt"&gt;&amp;lt;/section&amp;gt;&lt;/span&gt;
&lt;span class="nt"&gt;&amp;lt;/div&amp;gt;&lt;/span&gt;
';

&lt;span class="w"&gt;        &lt;/span&gt;$html&lt;span class="w"&gt; &lt;/span&gt;=&lt;span class="w"&gt; &lt;/span&gt;str_get_html($html);

&lt;span class="w"&gt;        &lt;/span&gt;$sections&lt;span class="w"&gt; &lt;/span&gt;=&lt;span class="w"&gt; &lt;/span&gt;$html-&amp;gt;find('section:first-child');
&lt;span class="w"&gt;        &lt;/span&gt;foreach&lt;span class="w"&gt; &lt;/span&gt;($sections&lt;span class="w"&gt; &lt;/span&gt;as&lt;span class="w"&gt; &lt;/span&gt;$k&lt;span class="w"&gt; &lt;/span&gt;=&amp;gt;&lt;span class="w"&gt; &lt;/span&gt;$e)&lt;span class="w"&gt; &lt;/span&gt;{
&lt;span class="w"&gt;            &lt;/span&gt;echo&lt;span class="w"&gt; &lt;/span&gt;'&lt;span class="nt"&gt;&amp;lt;div&amp;gt;&lt;/span&gt;'&lt;span class="w"&gt; &lt;/span&gt;.&lt;span class="w"&gt; &lt;/span&gt;$k&lt;span class="w"&gt; &lt;/span&gt;.&lt;span class="w"&gt; &lt;/span&gt;'&lt;span class="w"&gt; &lt;/span&gt;=&amp;gt;&lt;span class="w"&gt; &lt;/span&gt;'&lt;span class="w"&gt; &lt;/span&gt;.&lt;span class="w"&gt; &lt;/span&gt;strip_tags($e)&lt;span class="w"&gt; &lt;/span&gt;.&lt;span class="w"&gt; &lt;/span&gt;'&lt;span class="nt"&gt;&amp;lt;/div&amp;gt;&lt;/span&gt;';
&lt;span class="w"&gt;        &lt;/span&gt;}
&lt;span class="w"&gt;    &lt;/span&gt;}
&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;

&lt;p&gt;What I expect:&lt;br/&gt;
   0 =&amp;gt; AB&lt;br/&gt;
   1 =&amp;gt; C&lt;br/&gt;
   2 =&amp;gt; DE&lt;/p&gt;
&lt;p&gt;What I got? NOTHING!&lt;/p&gt;
&lt;p&gt;By looking at documentation here&lt;br/&gt;
&lt;a href="https://simplehtmldom.sourceforge.io/docs/1.9/api/simple_html_dom/firstChild/" rel="nofollow"&gt;https://simplehtmldom.sourceforge.io/docs/1.9/api/simple_html_dom/firstChild/&lt;/a&gt;&lt;br/&gt;
   you can find &lt;code&gt;firstChild()&lt;/code&gt; method so i made&lt;br/&gt;
   ~~~&lt;br/&gt;
   $sections = $html-&amp;gt;find('section').firstChild();&lt;br/&gt;
   ~~~&lt;br/&gt;
   but  I got&lt;/p&gt;
&lt;p&gt;~~~&lt;br/&gt;
   Fatal error: Uncaught Error: Call to undefined function firstChild() in XXX.php:142 Stack trace: #0 XXX.php(XX): function_name('$html') #1 {main} thrown in XXX.php on line XXX&lt;br/&gt;
   ~~~&lt;br/&gt;
   So, how to get only the upper levels?&lt;br/&gt;
   TNX. I love your PHP Simple HTML DOM Parser ❤️😘&lt;/p&gt;&lt;/div&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Hi Man O ManaO</dc:creator><pubDate>Sat, 30 Nov 2024 20:52:00 -0000</pubDate><guid>https://sourceforge.net6ffe3b80904e6cb5a160c95ab5416730e8d12765</guid></item><item><title>PHP 8.x support</title><link>https://sourceforge.net/p/simplehtmldom/support-requests/62/</link><description>&lt;div class="markdown_content"&gt;&lt;p&gt;My hosting provider now defaults to PHP 8.0 indicating that PHP versions PHP 7.3 and PHP 7.4 are deprecated.  It appears that the parser does not work with PHP 8.x  Although  I can still use this fantastic tool, I would like to see later versions of PHP supported.  Is that possible?&lt;/p&gt;&lt;/div&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">DennisKmetz</dc:creator><pubDate>Thu, 23 Feb 2023 16:05:05 -0000</pubDate><guid>https://sourceforge.net52aad7a79ccbb139b2cf8a494c0a88451b8188c8</guid></item><item><title>Is Github page safe to use for downloads?</title><link>https://sourceforge.net/p/simplehtmldom/support-requests/61/</link><description>&lt;div class="markdown_content"&gt;&lt;p&gt;Hi!&lt;/p&gt;
&lt;p&gt;I was wondering if I could use &lt;a href="https://github.com/simplehtmldom/simplehtmldom" rel="nofollow"&gt;https://github.com/simplehtmldom/simplehtmldom&lt;/a&gt; for downloading specific version for my site during build? Is that maintained by you or somebody you know?&lt;/p&gt;&lt;/div&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">hkirsman</dc:creator><pubDate>Thu, 19 Jan 2023 19:30:06 -0000</pubDate><guid>https://sourceforge.net347037311e93aa46737cab5f3b0d6fe6e8d88c04</guid></item><item><title>#60 No anchor text returned</title><link>https://sourceforge.net/p/simplehtmldom/support-requests/60/?limit=25#71fb</link><description>&lt;div class="markdown_content"&gt;&lt;p&gt;I see.&lt;br/&gt;
One would use &lt;code&gt;$e-&amp;gt;innertext&lt;/code&gt; to get the text inside the tag.&lt;/p&gt;&lt;/div&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Jim Longo</dc:creator><pubDate>Tue, 30 Aug 2022 21:21:44 -0000</pubDate><guid>https://sourceforge.net3a64c44d2b40b8a072b436eb6acd1fa36d84847f</guid></item><item><title>No anchor text returned</title><link>https://sourceforge.net/p/simplehtmldom/support-requests/60/</link><description>&lt;div class="markdown_content"&gt;&lt;p&gt;Given html like &lt;br/&gt;
&lt;code&gt;&amp;lt;a href="http://wanlesstennis.com/junior" target="_blank" rel="noopener"&amp;gt; Wanless Park Tennis Club&amp;lt;/a&amp;gt;&lt;/code&gt;&lt;/p&gt;
&lt;p&gt;I get returned &lt;br/&gt;
&lt;code&gt;[14] =&amp;gt; simplehtmldom\HtmlNode Object
        (
            [nodetype] =&amp;gt; HDOM_TYPE_ELEMENT (1)
            [tag] =&amp;gt; a
            [attributes] =&amp;gt; Array
                (
                    [href] =&amp;gt; http://wanlesstennis.com/junior
                    [target] =&amp;gt; _blank
                    [rel] =&amp;gt; noopener
                )
            [nodes] =&amp;gt; none
        )&lt;/code&gt;&lt;/p&gt;
&lt;p&gt;Doesn't the anchor text get returned as an attribute with the link?  My code is like &lt;/p&gt;
&lt;blockquote&gt;
&lt;p&gt;$html = $doc-&amp;gt;load($url);&lt;br/&gt;
$links = [];&lt;br/&gt;
foreach($html-&amp;gt;find('a') as $e){&lt;br/&gt;
        $links[] = $e;&lt;br/&gt;
}&lt;br/&gt;
print_r($links);&lt;/p&gt;
&lt;/blockquote&gt;&lt;/div&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Jim Longo</dc:creator><pubDate>Mon, 29 Aug 2022 23:12:24 -0000</pubDate><guid>https://sourceforge.net650b52ebab9c678602e0d9101ccefdb1fc762b7f</guid></item><item><title>#59 Slashdot example updated</title><link>https://sourceforge.net/p/simplehtmldom/support-requests/59/?limit=50#ba9d</link><description>&lt;div class="markdown_content"&gt;&lt;ul&gt;
&lt;li&gt;&lt;strong&gt;status&lt;/strong&gt;: open --&amp;gt; closed&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;assigned_to&lt;/strong&gt;: LogMANOriginal&lt;/li&gt;
&lt;/ul&gt;&lt;/div&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">LogMANOriginal</dc:creator><pubDate>Sat, 09 Apr 2022 21:55:39 -0000</pubDate><guid>https://sourceforge.net6dc83adbc8d267af122a2619ac2252d09404c31e</guid></item><item><title>#58 Is this project active anymore?</title><link>https://sourceforge.net/p/simplehtmldom/support-requests/58/?limit=50#b207</link><description>&lt;div class="markdown_content"&gt;&lt;ul&gt;
&lt;li&gt;&lt;strong&gt;status&lt;/strong&gt;: open --&amp;gt; closed&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;assigned_to&lt;/strong&gt;: LogMANOriginal&lt;/li&gt;
&lt;/ul&gt;&lt;/div&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">LogMANOriginal</dc:creator><pubDate>Sat, 09 Apr 2022 21:49:03 -0000</pubDate><guid>https://sourceforge.net5a020be58e5bf5a8afac56b1cf7ea9bca2cb1093</guid></item><item><title>#56 How to avoid break on 404 errors?</title><link>https://sourceforge.net/p/simplehtmldom/support-requests/56/?limit=50#a3b1</link><description>&lt;div class="markdown_content"&gt;&lt;ul&gt;
&lt;li&gt;&lt;strong&gt;status&lt;/strong&gt;: open --&amp;gt; closed&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;assigned_to&lt;/strong&gt;: LogMANOriginal&lt;/li&gt;
&lt;/ul&gt;&lt;/div&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">LogMANOriginal</dc:creator><pubDate>Sat, 09 Apr 2022 21:35:24 -0000</pubDate><guid>https://sourceforge.net231ba7cf90c395634e7a46fce55f47d491a9816c</guid></item></channel></rss>