HEX
Server: Apache/2.4.41 (Ubuntu)
System: Linux wordpress-ubuntu-s-2vcpu-4gb-fra1-01 5.4.0-169-generic #187-Ubuntu SMP Thu Nov 23 14:52:28 UTC 2023 x86_64
User: root (0)
PHP: 7.4.33
Disabled: pcntl_alarm,pcntl_fork,pcntl_waitpid,pcntl_wait,pcntl_wifexited,pcntl_wifstopped,pcntl_wifsignaled,pcntl_wifcontinued,pcntl_wexitstatus,pcntl_wtermsig,pcntl_wstopsig,pcntl_signal,pcntl_signal_get_handler,pcntl_signal_dispatch,pcntl_get_last_error,pcntl_strerror,pcntl_sigprocmask,pcntl_sigwaitinfo,pcntl_sigtimedwait,pcntl_exec,pcntl_getpriority,pcntl_setpriority,pcntl_async_signals,pcntl_unshare,
Upload Files
File: /var/www/zaklada/html/node_modules/domhandler/test/cases/23-dom-lvl1.json
{
  "name": "DOM level 1",
  "options": { "withDomLvl1": true },
  "html": "<div>some stray text<h1>Hello, world.</h1><!-- comment node -->more stray text</div>",
  "expected": [
    {
      "type": "tag",
      "nodeType": 1,
      "name": "div",
      "tagName": "div",
      "attribs": {},
      "nodeValue": null,
      "children": [
        {
          "type": "text",
          "nodeType": 3,
          "tagName": null,
          "data": "some stray text",
          "nodeValue": "some stray text",
          "childNodes": null,
          "firstChild": null,
          "lastChild": null
        },
        {
          "type": "tag",
          "nodeType": 1,
          "name": "h1",
          "tagName": "h1",
          "nodeValue": null,
          "attribs": {},
          "children": [
            {
              "type": "text",
              "nodeType": 3,
              "tagName": null,
              "data": "Hello, world.",
              "nodeValue": "Hello, world.",
              "childNodes": null,
              "firstChild": null,
              "lastChild": null
            }
          ],
          "firstChild": {
            "type": "text",
            "nodeType": 3,
            "tagName": null,
            "data": "Hello, world.",
            "nodeValue": "Hello, world.",
            "childNodes": null,
            "firstChild": null,
            "lastChild": null
          },
          "lastChild": {
            "type": "text",
            "nodeType": 3,
            "tagName": null,
            "data": "Hello, world.",
            "nodeValue": "Hello, world.",
            "childNodes": null,
            "firstChild": null,
            "lastChild": null
          }
        },
        {
          "type": "comment",
          "nodeType": 8,
          "tagName": null,
          "data": " comment node ",
          "nodeValue": " comment node ",
          "childNodes": null,
          "firstChild": null,
          "lastChild": null,
          "prev": {
            "type": "tag",
            "name": "h1",
            "nodeValue": null,
            "attribs": {}
          },
          "previousSibling": {
            "type": "tag",
            "name": "h1",
            "nodeValue": null,
            "attribs": {}
          },
          "next": {
            "type": "text",
            "tagName": null,
            "data": "more stray text"
          },
          "nextSibling": {
            "type": "text",
            "tagName": null,
            "data": "more stray text"
          }
        },
        {
          "type": "text",
          "nodeType": 3,
          "tagName": null,
          "data": "more stray text",
          "nodeValue": "more stray text",
          "childNodes": null,
          "firstChild": null,
          "lastChild": null,
          "next": null,
          "nextSibling": null
        }
      ],
      "firstChild": {
        "type": "text",
        "nodeType": 3,
        "tagName": null,
        "data": "some stray text",
        "nodeValue": "some stray text",
        "childNodes": null,
        "firstChild": null,
        "lastChild": null
       },
       "lastChild": {
          "type": "text",
          "nodeType": 3,
          "tagName": null,
          "data": "more stray text",
          "nodeValue": "more stray text",
          "childNodes": null,
          "firstChild": null,
          "lastChild": null
        }
    }
  ]
}