swc/crates/swc_html_parser/tests/html5lib-tests-fixture/comments01_dat/15.json

85 lines
1.8 KiB
JSON
Raw Normal View History

{
"type": "Document",
"span": {
"start": 0,
"end": 56,
"ctxt": 0
},
"mode": "quirks",
"children": [
{
"type": "Element",
"span": {
"start": 0,
"end": 56,
"ctxt": 0
},
"tagName": "html",
"namespace": "http://www.w3.org/1999/xhtml",
"attributes": [],
"children": [
{
"type": "Comment",
"span": {
"start": 6,
"end": 22,
"ctxt": 0
},
"data": " comment "
},
{
"type": "Element",
"span": {
"start": 0,
"end": 48,
"ctxt": 0
},
"tagName": "head",
"namespace": "http://www.w3.org/1999/xhtml",
"attributes": [],
"children": [
{
"type": "Element",
"span": {
"start": 22,
"end": 48,
"ctxt": 0
},
"tagName": "title",
"namespace": "http://www.w3.org/1999/xhtml",
"attributes": [],
"children": [
{
"type": "Text",
"span": {
"start": 29,
"end": 48,
"ctxt": 0
},
"value": "Comment before head"
}
],
"content": null
}
],
"content": null
},
{
"type": "Element",
"span": {
"start": 0,
"end": 56,
"ctxt": 0
},
"tagName": "body",
"namespace": "http://www.w3.org/1999/xhtml",
"attributes": [],
"children": [],
"content": null
}
],
"content": null
}
]
}