swc/crates/swc_html_parser/tests/fixture/element/caption/output.json
2022-06-04 09:33:25 +00:00

503 lines
16 KiB
JSON

{
"type": "Document",
"span": {
"start": 1,
"end": 372,
"ctxt": 0
},
"mode": "no-quirks",
"children": [
{
"type": "DocumentType",
"span": {
"start": 1,
"end": 16,
"ctxt": 0
},
"name": "html",
"publicId": null,
"systemId": null
},
{
"type": "Element",
"span": {
"start": 17,
"end": 372,
"ctxt": 0
},
"tagName": "html",
"namespace": "http://www.w3.org/1999/xhtml",
"attributes": [
{
"type": "Attribute",
"span": {
"start": 23,
"end": 32,
"ctxt": 0
},
"namespace": null,
"prefix": null,
"name": "lang",
"value": "en"
}
],
"children": [
{
"type": "Element",
"span": {
"start": 34,
"end": 76,
"ctxt": 0
},
"tagName": "head",
"namespace": "http://www.w3.org/1999/xhtml",
"attributes": [],
"children": [
{
"type": "Text",
"span": {
"start": 40,
"end": 45,
"ctxt": 0
},
"value": "\n "
},
{
"type": "Element",
"span": {
"start": 45,
"end": 68,
"ctxt": 0
},
"tagName": "title",
"namespace": "http://www.w3.org/1999/xhtml",
"attributes": [],
"children": [
{
"type": "Text",
"span": {
"start": 52,
"end": 60,
"ctxt": 0
},
"value": "Document"
}
],
"content": null
},
{
"type": "Text",
"span": {
"start": 68,
"end": 69,
"ctxt": 0
},
"value": "\n"
}
],
"content": null
},
{
"type": "Text",
"span": {
"start": 76,
"end": 77,
"ctxt": 0
},
"value": "\n"
},
{
"type": "Element",
"span": {
"start": 77,
"end": 365,
"ctxt": 0
},
"tagName": "body",
"namespace": "http://www.w3.org/1999/xhtml",
"attributes": [],
"children": [
{
"type": "Text",
"span": {
"start": 83,
"end": 84,
"ctxt": 0
},
"value": "\n"
},
{
"type": "Element",
"span": {
"start": 84,
"end": 356,
"ctxt": 0
},
"tagName": "table",
"namespace": "http://www.w3.org/1999/xhtml",
"attributes": [],
"children": [
{
"type": "Text",
"span": {
"start": 91,
"end": 96,
"ctxt": 0
},
"value": "\n "
},
{
"type": "Element",
"span": {
"start": 96,
"end": 130,
"ctxt": 0
},
"tagName": "caption",
"namespace": "http://www.w3.org/1999/xhtml",
"attributes": [],
"children": [
{
"type": "Text",
"span": {
"start": 105,
"end": 120,
"ctxt": 0
},
"value": "Example Caption"
}
],
"content": null
},
{
"type": "Text",
"span": {
"start": 130,
"end": 135,
"ctxt": 0
},
"value": "\n "
},
{
"type": "Element",
"span": {
"start": 0,
"end": 348,
"ctxt": 0
},
"tagName": "tbody",
"namespace": "http://www.w3.org/1999/xhtml",
"attributes": [],
"children": [
{
"type": "Element",
"span": {
"start": 135,
"end": 195,
"ctxt": 0
},
"tagName": "tr",
"namespace": "http://www.w3.org/1999/xhtml",
"attributes": [],
"children": [
{
"type": "Text",
"span": {
"start": 139,
"end": 148,
"ctxt": 0
},
"value": "\n "
},
{
"type": "Element",
"span": {
"start": 148,
"end": 162,
"ctxt": 0
},
"tagName": "th",
"namespace": "http://www.w3.org/1999/xhtml",
"attributes": [],
"children": [
{
"type": "Text",
"span": {
"start": 152,
"end": 157,
"ctxt": 0
},
"value": "Login"
}
],
"content": null
},
{
"type": "Text",
"span": {
"start": 162,
"end": 171,
"ctxt": 0
},
"value": "\n "
},
{
"type": "Element",
"span": {
"start": 171,
"end": 185,
"ctxt": 0
},
"tagName": "th",
"namespace": "http://www.w3.org/1999/xhtml",
"attributes": [],
"children": [
{
"type": "Text",
"span": {
"start": 175,
"end": 180,
"ctxt": 0
},
"value": "Email"
}
],
"content": null
},
{
"type": "Text",
"span": {
"start": 185,
"end": 190,
"ctxt": 0
},
"value": "\n "
}
],
"content": null
},
{
"type": "Text",
"span": {
"start": 195,
"end": 200,
"ctxt": 0
},
"value": "\n "
},
{
"type": "Element",
"span": {
"start": 200,
"end": 271,
"ctxt": 0
},
"tagName": "tr",
"namespace": "http://www.w3.org/1999/xhtml",
"attributes": [],
"children": [
{
"type": "Text",
"span": {
"start": 204,
"end": 213,
"ctxt": 0
},
"value": "\n "
},
{
"type": "Element",
"span": {
"start": 213,
"end": 227,
"ctxt": 0
},
"tagName": "td",
"namespace": "http://www.w3.org/1999/xhtml",
"attributes": [],
"children": [
{
"type": "Text",
"span": {
"start": 217,
"end": 222,
"ctxt": 0
},
"value": "user1"
}
],
"content": null
},
{
"type": "Text",
"span": {
"start": 227,
"end": 236,
"ctxt": 0
},
"value": "\n "
},
{
"type": "Element",
"span": {
"start": 236,
"end": 261,
"ctxt": 0
},
"tagName": "td",
"namespace": "http://www.w3.org/1999/xhtml",
"attributes": [],
"children": [
{
"type": "Text",
"span": {
"start": 240,
"end": 256,
"ctxt": 0
},
"value": "user1@sample.com"
}
],
"content": null
},
{
"type": "Text",
"span": {
"start": 261,
"end": 266,
"ctxt": 0
},
"value": "\n "
}
],
"content": null
},
{
"type": "Text",
"span": {
"start": 271,
"end": 276,
"ctxt": 0
},
"value": "\n "
},
{
"type": "Element",
"span": {
"start": 276,
"end": 347,
"ctxt": 0
},
"tagName": "tr",
"namespace": "http://www.w3.org/1999/xhtml",
"attributes": [],
"children": [
{
"type": "Text",
"span": {
"start": 280,
"end": 289,
"ctxt": 0
},
"value": "\n "
},
{
"type": "Element",
"span": {
"start": 289,
"end": 303,
"ctxt": 0
},
"tagName": "td",
"namespace": "http://www.w3.org/1999/xhtml",
"attributes": [],
"children": [
{
"type": "Text",
"span": {
"start": 293,
"end": 298,
"ctxt": 0
},
"value": "user2"
}
],
"content": null
},
{
"type": "Text",
"span": {
"start": 303,
"end": 312,
"ctxt": 0
},
"value": "\n "
},
{
"type": "Element",
"span": {
"start": 312,
"end": 337,
"ctxt": 0
},
"tagName": "td",
"namespace": "http://www.w3.org/1999/xhtml",
"attributes": [],
"children": [
{
"type": "Text",
"span": {
"start": 316,
"end": 332,
"ctxt": 0
},
"value": "user2@sample.com"
}
],
"content": null
},
{
"type": "Text",
"span": {
"start": 337,
"end": 342,
"ctxt": 0
},
"value": "\n "
}
],
"content": null
},
{
"type": "Text",
"span": {
"start": 347,
"end": 348,
"ctxt": 0
},
"value": "\n"
}
],
"content": null
}
],
"content": null
},
{
"type": "Text",
"span": {
"start": 356,
"end": 365,
"ctxt": 0
},
"value": "\n\n"
}
],
"content": null
}
],
"content": null
}
]
}