swc/crates/swc_html_parser/tests/html5lib-tests-fixture/tricky01_dat/8.json

181 lines
5.0 KiB
JSON

{
"type": "Document",
"span": {
"start": 1,
"end": 242,
"ctxt": 0
},
"mode": "quirks",
"children": [
{
"type": "Element",
"span": {
"start": 1,
"end": 235,
"ctxt": 0
},
"tagName": "html",
"namespace": "http://www.w3.org/1999/xhtml",
"attributes": [],
"children": [
{
"type": "Element",
"span": {
"start": 0,
"end": 14,
"ctxt": 0
},
"tagName": "head",
"namespace": "http://www.w3.org/1999/xhtml",
"attributes": [],
"children": [],
"content": null
},
{
"type": "Element",
"span": {
"start": 8,
"end": 235,
"ctxt": 0
},
"tagName": "body",
"namespace": "http://www.w3.org/1999/xhtml",
"attributes": [],
"children": [
{
"type": "Text",
"span": {
"start": 14,
"end": 15,
"ctxt": 0
},
"value": "\n"
},
{
"type": "Element",
"span": {
"start": 15,
"end": 24,
"ctxt": 0
},
"tagName": "b",
"namespace": "http://www.w3.org/1999/xhtml",
"attributes": [],
"children": [
{
"type": "Element",
"span": {
"start": 18,
"end": 24,
"ctxt": 0
},
"tagName": "nobr",
"namespace": "http://www.w3.org/1999/xhtml",
"attributes": [],
"children": [],
"content": null
}
],
"content": null
},
{
"type": "Element",
"span": {
"start": 24,
"end": 235,
"ctxt": 0
},
"tagName": "div",
"namespace": "http://www.w3.org/1999/xhtml",
"attributes": [],
"children": [
{
"type": "Element",
"span": {
"start": 15,
"end": 177,
"ctxt": 0
},
"tagName": "b",
"namespace": "http://www.w3.org/1999/xhtml",
"attributes": [],
"children": [
{
"type": "Element",
"span": {
"start": 18,
"end": 64,
"ctxt": 0
},
"tagName": "nobr",
"namespace": "http://www.w3.org/1999/xhtml",
"attributes": [],
"children": [
{
"type": "Text",
"span": {
"start": 29,
"end": 64,
"ctxt": 0
},
"value": "This text is in a div inside a nobr"
}
],
"content": null
},
{
"type": "Text",
"span": {
"start": 71,
"end": 177,
"ctxt": 0
},
"value": "More text that should not be in the nobr, i.e., the\nnobr should have closed the div inside it implicitly. "
}
],
"content": null
},
{
"type": "Element",
"span": {
"start": 181,
"end": 220,
"ctxt": 0
},
"tagName": "pre",
"namespace": "http://www.w3.org/1999/xhtml",
"attributes": [],
"children": [
{
"type": "Text",
"span": {
"start": 186,
"end": 220,
"ctxt": 0
},
"value": "A pre tag outside everything else."
}
],
"content": null
},
{
"type": "Text",
"span": {
"start": 226,
"end": 235,
"ctxt": 0
},
"value": "\n\n"
}
],
"content": null
}
],
"content": null
}
],
"content": null
}
]
}