cs142/project3/node_modules/htmlparser2/test/Stream/01-basic.json

83 lines
1.1 KiB
JSON
Raw Permalink Normal View History

2020-08-01 22:26:11 +00:00
{
"name": "Basic html",
"options": {},
"file": "Basic.html",
"expected": [
{
"event": "processinginstruction",
"data": [
"!doctype",
"!DOCTYPE html"
]
},
{
"event": "opentagname",
"data": [
"html"
]
},
{
"event": "opentag",
"data": [
"html",
{}
]
},
{
"event": "opentagname",
"data": [
"title"
]
},
{
"event": "opentag",
"data": [
"title",
{}
]
},
{
"event": "text",
"data": [
"The Title"
]
},
{
"event": "closetag",
"data": [
"title"
]
},
{
"event": "opentagname",
"data": [
"body"
]
},
{
"event": "opentag",
"data": [
"body",
{}
]
},
{
"event": "text",
"data": [
"Hello world"
]
},
{
"event": "closetag",
"data": [
"body"
]
},
{
"event": "closetag",
"data": [
"html"
]
}
]
}