Skip to content

Conversation

@ShilpaG813
Copy link
Owner

PHP 8.4 introduced namespaced DOM classes such as Dom\Node, Dom\Element,
Dom\Document, Dom\HTMLDocument, Dom\XMLDocument, Dom\Text, Dom\NodeList,
and Dom\TokenList.

These pages exist on php.net but are not included in the downloadable
documentation archive (php.net/download-docs.php), which DevDocs relies on.

As a result, these new DOM classes were missing from the PHP reference in DevDocs.

This PR adds a fallback in the PHP scraper to:

  1. Detect missing DOM class pages (class.dom-*.html)
  2. Download them directly from php.net when they are not in the archive
  3. Allow the existing filters to process and include them normally

This ensures DevDocs includes the complete PHP 8.4 DOM documentation.

Closes freeCodeCamp#2618

PHP 8.4 introduced namespaced DOM classes such as Dom\Node, Dom\Element, 
Dom\Document, etc. These pages exist on php.net but are not included in the 
php.net/download-docs.php archive that DevDocs uses.

This fallback downloads these missing class pages directly from php.net when 
they are not present locally.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

PHP 8.4 Dom\XXX Classes missing

2 participants