swc/crates/swc_html_parser/tests/html5lib-tests-fixture/tests23_dat.2.output.json

365 lines
13 KiB
JSON

{
"type": "Document",
"span": {
"start": 1,
"end": 75,
"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": 71,
"ctxt": 0
},
"tagName": "p",
"namespace": "http://www.w3.org/1999/xhtml",
"attributes": [],
"children": [
{
"type": "Element",
"span": {
"start": 4,
"end": 71,
"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": 71,
"ctxt": 0
},
"tagName": "font",
"namespace": "http://www.w3.org/1999/xhtml",
"attributes": [
{
"type": "Attribute",
"span": {
"start": 23,
"end": 29,
"ctxt": 0
},
"namespace": null,
"prefix": null,
"name": "size",
"rawName": "size",
"value": "4",
"rawValue": "4"
}
],
"children": [
{
"type": "Element",
"span": {
"start": 30,
"end": 71,
"ctxt": 0
},
"tagName": "font",
"namespace": "http://www.w3.org/1999/xhtml",
"attributes": [
{
"type": "Attribute",
"span": {
"start": 36,
"end": 42,
"ctxt": 0
},
"namespace": null,
"prefix": null,
"name": "size",
"rawName": "size",
"value": "4",
"rawValue": "4"
}
],
"children": [
{
"type": "Element",
"span": {
"start": 43,
"end": 71,
"ctxt": 0
},
"tagName": "font",
"namespace": "http://www.w3.org/1999/xhtml",
"attributes": [
{
"type": "Attribute",
"span": {
"start": 49,
"end": 57,
"ctxt": 0
},
"namespace": null,
"prefix": null,
"name": "size",
"rawName": "size",
"value": "5",
"rawValue": "\"5\""
}
],
"children": [
{
"type": "Element",
"span": {
"start": 58,
"end": 71,
"ctxt": 0
},
"tagName": "font",
"namespace": "http://www.w3.org/1999/xhtml",
"attributes": [
{
"type": "Attribute",
"span": {
"start": 64,
"end": 70,
"ctxt": 0
},
"namespace": null,
"prefix": null,
"name": "size",
"rawName": "size",
"value": "4",
"rawValue": "4"
}
],
"children": [],
"content": null,
"isSelfClosing": false
}
],
"content": null,
"isSelfClosing": false
}
],
"content": null,
"isSelfClosing": false
}
],
"content": null,
"isSelfClosing": false
}
],
"content": null,
"isSelfClosing": false
}
],
"content": null,
"isSelfClosing": false
},
{
"type": "Element",
"span": {
"start": 71,
"end": 75,
"ctxt": 0
},
"tagName": "p",
"namespace": "http://www.w3.org/1999/xhtml",
"attributes": [],
"children": [
{
"type": "Element",
"span": {
"start": 17,
"end": 75,
"ctxt": 0
},
"tagName": "font",
"namespace": "http://www.w3.org/1999/xhtml",
"attributes": [
{
"type": "Attribute",
"span": {
"start": 23,
"end": 29,
"ctxt": 0
},
"namespace": null,
"prefix": null,
"name": "size",
"rawName": "size",
"value": "4",
"rawValue": "4"
}
],
"children": [
{
"type": "Element",
"span": {
"start": 30,
"end": 75,
"ctxt": 0
},
"tagName": "font",
"namespace": "http://www.w3.org/1999/xhtml",
"attributes": [
{
"type": "Attribute",
"span": {
"start": 36,
"end": 42,
"ctxt": 0
},
"namespace": null,
"prefix": null,
"name": "size",
"rawName": "size",
"value": "4",
"rawValue": "4"
}
],
"children": [
{
"type": "Element",
"span": {
"start": 43,
"end": 75,
"ctxt": 0
},
"tagName": "font",
"namespace": "http://www.w3.org/1999/xhtml",
"attributes": [
{
"type": "Attribute",
"span": {
"start": 49,
"end": 57,
"ctxt": 0
},
"namespace": null,
"prefix": null,
"name": "size",
"rawName": "size",
"value": "5",
"rawValue": "\"5\""
}
],
"children": [
{
"type": "Element",
"span": {
"start": 58,
"end": 75,
"ctxt": 0
},
"tagName": "font",
"namespace": "http://www.w3.org/1999/xhtml",
"attributes": [
{
"type": "Attribute",
"span": {
"start": 64,
"end": 70,
"ctxt": 0
},
"namespace": null,
"prefix": null,
"name": "size",
"rawName": "size",
"value": "4",
"rawValue": "4"
}
],
"children": [
{
"type": "Text",
"span": {
"start": 74,
"end": 75,
"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
}
],
"content": null,
"isSelfClosing": false
}
]
}