swc/crates/swc_html_parser/tests/html5lib-tests-fixture/webkit02_dat.1.script_on.output.json

136 lines
3.5 KiB
JSON

{
"type": "Document",
"span": {
"start": 1,
"end": 73,
"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": 73,
"ctxt": 0
},
"tagName": "p",
"namespace": "http://www.w3.org/1999/xhtml",
"attributes": [
{
"type": "Attribute",
"span": {
"start": 4,
"end": 15,
"ctxt": 0
},
"namespace": null,
"prefix": null,
"name": "id",
"rawName": "id",
"value": "status",
"rawValue": "\"status\""
}
],
"children": [
{
"type": "Element",
"span": {
"start": 16,
"end": 55,
"ctxt": 0
},
"tagName": "noscript",
"namespace": "http://www.w3.org/1999/xhtml",
"attributes": [],
"children": [
{
"type": "Text",
"span": {
"start": 26,
"end": 44,
"ctxt": 0
},
"data": "<strong>A</strong>",
"raw": "<strong>A</strong>"
}
],
"content": null,
"isSelfClosing": false
},
{
"type": "Element",
"span": {
"start": 55,
"end": 69,
"ctxt": 0
},
"tagName": "span",
"namespace": "http://www.w3.org/1999/xhtml",
"attributes": [],
"children": [
{
"type": "Text",
"span": {
"start": 61,
"end": 62,
"ctxt": 0
},
"data": "B",
"raw": "B"
}
],
"content": null,
"isSelfClosing": false
}
],
"content": null,
"isSelfClosing": false
}
],
"content": null,
"isSelfClosing": false
}
],
"content": null,
"isSelfClosing": false
}
]
}