swc/crates/swc_html_parser/tests/html5lib-tests-fixture/tests2_dat/50.json

128 lines
2.8 KiB
JSON

{
"type": "Document",
"span": {
"start": 0,
"end": 60,
"ctxt": 0
},
"mode": "no-quirks",
"children": [
{
"type": "DocumentType",
"span": {
"start": 0,
"end": 15,
"ctxt": 0
},
"name": "html",
"publicId": null,
"systemId": null
},
{
"type": "Element",
"span": {
"start": 0,
"end": 60,
"ctxt": 0
},
"tagName": "html",
"namespace": "http://www.w3.org/1999/xhtml",
"attributes": [],
"children": [
{
"type": "Element",
"span": {
"start": 0,
"end": 53,
"ctxt": 0
},
"tagName": "head",
"namespace": "http://www.w3.org/1999/xhtml",
"attributes": [],
"children": [
{
"type": "Element",
"span": {
"start": 15,
"end": 24,
"ctxt": 0
},
"tagName": "script",
"namespace": "http://www.w3.org/1999/xhtml",
"attributes": [],
"children": [
{
"type": "Text",
"span": {
"start": 23,
"end": 24,
"ctxt": 0
},
"value": "\n"
}
],
"content": null
},
{
"type": "Text",
"span": {
"start": 33,
"end": 35,
"ctxt": 0
},
"value": " "
},
{
"type": "Element",
"span": {
"start": 35,
"end": 43,
"ctxt": 0
},
"tagName": "title",
"namespace": "http://www.w3.org/1999/xhtml",
"attributes": [],
"children": [
{
"type": "Text",
"span": {
"start": 42,
"end": 43,
"ctxt": 0
},
"value": "x"
}
],
"content": null
},
{
"type": "Text",
"span": {
"start": 51,
"end": 53,
"ctxt": 0
},
"value": " "
}
],
"content": null
},
{
"type": "Element",
"span": {
"start": 0,
"end": 60,
"ctxt": 0
},
"tagName": "body",
"namespace": "http://www.w3.org/1999/xhtml",
"attributes": [],
"children": [],
"content": null
}
],
"content": null
}
]
}