react / wstein / node_modules / jest-cli / node_modules / jsdom / node_modules / htmlparser2 / node_modules / domhandler / test / cases / 24-with-start-indices.json
81153 views{1"name": "withStartIndices adds correct startIndex properties",2"options": {"withStartIndices": true},3"streaming": false,4"html": "<!DOCTYPE html> <html> <title>The Title</title> <body class='foo'>Hello world <p></p></body> <!-- the comment --> </html> ",5"expected": [6{7"startIndex": 0,8"name": "!doctype",9"data": "!DOCTYPE html",10"type": "directive"11},12{13"type": "text",14"data": " "15},16{17"startIndex": 16,18"type": "tag",19"name": "html",20"attribs": {},21"parent": null,22"children": [23{24"startIndex": 22,25"type": "text",26"data": " "27},28{29"startIndex": 23,30"type": "tag",31"name": "title",32"attribs": {},33"children": [34{35"startIndex": 30,36"data": "The Title",37"type": "text"38}39]40},41{42"startIndex": 47,43"type": "text",44"data": " "45},46{47"startIndex": 48,48"type": "tag",49"name": "body",50"attribs": {"class": "foo"},51"children": [52{53"startIndex": 66,54"data": "Hello world ",55"type": "text"56},57{58"startIndex": 78,59"type": "tag",60"name": "p",61"attribs": {},62"children": []63}64]65},66{67"startIndex": 92,68"type": "text",69"data": " "70},71{72"startIndex": 93,73"type": "comment",74"data": " the comment "75},76{77"startIndex": 113,78"type": "text",79"data": " "80}81]82}83]84}8586