|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2023-05-05 10:45 UTC] autovehicleblog at gmail dot com
|
|||||||||||||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Tue Oct 28 12:00:01 2025 UTC |
Description: ------------ DOMImplementation might have a registerClass(string $baseclass, string $extendedclass) method similar to DOMDocument::registerNodeClass in order to create custom subclass of DOMDocument with DOMImplementation::createDocument Test script: --------------- $implementation = new DOMImplementation(); $dtd = $implementation->createDocumentType('html'); $implementation->registerClass('DOMDocument', 'My_DOMDocument'); $doc = $implementation->createDocument('http://www.w3.org/1999/xhtml', null, $dtd); echo get_class($doc); Expected result: ---------------- output : My_DOMDocument