/var/www/greso.tech/server/nsm/node_modules/domhandler/test/cases
NameSizeModeActions
01-basic.json12020644editdlrm
02-single_tag_1.json2960644editdlrm
03-single_tag_2.json2950644editdlrm
04-unescaped_in_script.json7150644editdlrm
05-tags_in_comment.json3630644editdlrm
06-comment_in_script.json3230644editdlrm
07-unescaped_in_style.json4070644editdlrm
08-extra_spaces_in_tag.json3410644editdlrm
09-unquoted_attrib.json3240644editdlrm
10-singular_attribute.json2460644editdlrm
11-text_outside_tags.json6860644editdlrm
12-text_only.json1600644editdlrm
13-comment_in_text.json3120644editdlrm
14-comment_in_text_in_script.json3680644editdlrm
15-non-verbose.json3770644editdlrm
16-normalize_whitespace.json7740644editdlrm
17-xml_namespace.json2790644editdlrm
18-enforce_empty_tags.json2340644editdlrm
19-ignore_empty_tags.json3110644editdlrm
20-template_script_tags.json3770644editdlrm
21-conditional_comments.json4670644editdlrm
22-lowercase_tags.json8100644editdlrm
23-dom-lvl1.json34140644editdlrm
Edit: /var/www/greso.tech/server/nsm/node_modules/domhandler/test/cases/23-dom-lvl1.json (3414B)
{ "name": "DOM level 1", "options": { "withDomLvl1": true }, "html": "
some stray text

Hello, world.

more stray text
", "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 } } ] }