swc/crates/swc_html_parser/tests/recovery/element/font/output.json
2022-07-15 02:40:47 +00:00

275 lines
8.8 KiB
JSON

{
"type": "Document",
"span": {
"start": 1,
"end": 53,
"ctxt": 0
},
"mode": "quirks",
"children": [
{
"type": "Element",
"span": {
"start": 0,
"end": 0,
"ctxt": 0
},
"tagName": "html",
"namespace": "http://www.w3.org/1999/xhtml",
"attributes": [],
"children": [
{
"type": "Element",
"span": {
"start": 0,
"end": 0,
"ctxt": 0
},
"tagName": "head",
"namespace": "http://www.w3.org/1999/xhtml",
"attributes": [],
"children": [],
"content": null,
"isSelfClosing": false
},
{
"type": "Element",
"span": {
"start": 0,
"end": 0,
"ctxt": 0
},
"tagName": "body",
"namespace": "http://www.w3.org/1999/xhtml",
"attributes": [],
"children": [
{
"type": "Element",
"span": {
"start": 1,
"end": 49,
"ctxt": 0
},
"tagName": "p",
"namespace": "http://www.w3.org/1999/xhtml",
"attributes": [],
"children": [
{
"type": "Element",
"span": {
"start": 4,
"end": 49,
"ctxt": 0
},
"tagName": "font",
"namespace": "http://www.w3.org/1999/xhtml",
"attributes": [
{
"type": "Attribute",
"span": {
"start": 10,
"end": 16,
"ctxt": 0
},
"namespace": null,
"prefix": null,
"name": "size",
"rawName": "size",
"value": "4",
"rawValue": "4"
}
],
"children": [
{
"type": "Element",
"span": {
"start": 17,
"end": 49,
"ctxt": 0
},
"tagName": "font",
"namespace": "http://www.w3.org/1999/xhtml",
"attributes": [
{
"type": "Attribute",
"span": {
"start": 23,
"end": 32,
"ctxt": 0
},
"namespace": null,
"prefix": null,
"name": "color",
"rawName": "color",
"value": "red",
"rawValue": "red"
}
],
"children": [
{
"type": "Element",
"span": {
"start": 33,
"end": 49,
"ctxt": 0
},
"tagName": "font",
"namespace": "http://www.w3.org/1999/xhtml",
"attributes": [
{
"type": "Attribute",
"span": {
"start": 39,
"end": 48,
"ctxt": 0
},
"namespace": null,
"prefix": null,
"name": "color",
"rawName": "color",
"value": "red",
"rawValue": "red"
}
],
"children": [],
"content": null,
"isSelfClosing": false
}
],
"content": null,
"isSelfClosing": false
}
],
"content": null,
"isSelfClosing": false
}
],
"content": null,
"isSelfClosing": false
},
{
"type": "Element",
"span": {
"start": 49,
"end": 53,
"ctxt": 0
},
"tagName": "p",
"namespace": "http://www.w3.org/1999/xhtml",
"attributes": [],
"children": [
{
"type": "Element",
"span": {
"start": 4,
"end": 53,
"ctxt": 0
},
"tagName": "font",
"namespace": "http://www.w3.org/1999/xhtml",
"attributes": [
{
"type": "Attribute",
"span": {
"start": 10,
"end": 16,
"ctxt": 0
},
"namespace": null,
"prefix": null,
"name": "size",
"rawName": "size",
"value": "4",
"rawValue": "4"
}
],
"children": [
{
"type": "Element",
"span": {
"start": 17,
"end": 53,
"ctxt": 0
},
"tagName": "font",
"namespace": "http://www.w3.org/1999/xhtml",
"attributes": [
{
"type": "Attribute",
"span": {
"start": 23,
"end": 32,
"ctxt": 0
},
"namespace": null,
"prefix": null,
"name": "color",
"rawName": "color",
"value": "red",
"rawValue": "red"
}
],
"children": [
{
"type": "Element",
"span": {
"start": 33,
"end": 53,
"ctxt": 0
},
"tagName": "font",
"namespace": "http://www.w3.org/1999/xhtml",
"attributes": [
{
"type": "Attribute",
"span": {
"start": 39,
"end": 48,
"ctxt": 0
},
"namespace": null,
"prefix": null,
"name": "color",
"rawName": "color",
"value": "red",
"rawValue": "red"
}
],
"children": [
{
"type": "Text",
"span": {
"start": 52,
"end": 53,
"ctxt": 0
},
"data": "X",
"raw": "X"
}
],
"content": null,
"isSelfClosing": false
}
],
"content": null,
"isSelfClosing": false
}
],
"content": null,
"isSelfClosing": false
}
],
"content": null,
"isSelfClosing": false
}
],
"content": null,
"isSelfClosing": false
}
],
"content": null,
"isSelfClosing": false
}
]
}