mirror of
https://github.com/renbaoshuo/S2OJ.git
synced 2024-12-28 10:21:53 +00:00
23 lines
771 B
PHP
23 lines
771 B
PHP
<?php
|
|
|
|
/*
|
|
* HTML5 DOMDocument PHP library (extends DOMDocument)
|
|
* https://github.com/ivopetkov/html5-dom-document-php
|
|
* Copyright (c) Ivo Petkov
|
|
* Free to use under the MIT license.
|
|
*/
|
|
|
|
$classes = array(
|
|
'IvoPetkov\HTML5DOMDocument' => __DIR__ . '/src/HTML5DOMDocument.php',
|
|
'IvoPetkov\HTML5DOMDocument\Internal\QuerySelectors' => __DIR__ . '/src/HTML5DOMDocument/Internal/QuerySelectors.php',
|
|
'IvoPetkov\HTML5DOMElement' => __DIR__ . '/src/HTML5DOMElement.php',
|
|
'IvoPetkov\HTML5DOMNodeList' => __DIR__ . '/src/HTML5DOMNodeList.php',
|
|
'IvoPetkov\HTML5DOMTokenList' => __DIR__ . '/src/HTML5DOMTokenList.php'
|
|
);
|
|
|
|
spl_autoload_register(function ($class) use ($classes) {
|
|
if (isset($classes[$class])) {
|
|
require $classes[$class];
|
|
}
|
|
});
|