swc/crates/swc_html_parser/tests/fixture/title-attribute/output.json
2022-04-23 04:26:32 +00:00

163 lines
3.9 KiB
JSON

{
"type": "Document",
"span": {
"start": 0,
"end": 200,
"ctxt": 0
},
"mode": "no-quirks",
"children": [
{
"type": "DocumentType",
"span": {
"start": 0,
"end": 15,
"ctxt": 0
},
"name": "html",
"publicId": null,
"systemId": null
},
{
"type": "Element",
"span": {
"start": 16,
"end": 200,
"ctxt": 0
},
"tagName": "html",
"namespace": "http://www.w3.org/1999/xhtml",
"attributes": [],
"children": [
{
"type": "Element",
"span": {
"start": 0,
"end": 29,
"ctxt": 0
},
"tagName": "head",
"namespace": "http://www.w3.org/1999/xhtml",
"attributes": [],
"children": [],
"content": null
},
{
"type": "Element",
"span": {
"start": 23,
"end": 200,
"ctxt": 0
},
"tagName": "body",
"namespace": "http://www.w3.org/1999/xhtml",
"attributes": [],
"children": [
{
"type": "Text",
"span": {
"start": 29,
"end": 31,
"ctxt": 0
},
"value": "\n\n"
},
{
"type": "Element",
"span": {
"start": 31,
"end": 75,
"ctxt": 0
},
"tagName": "h2",
"namespace": "http://www.w3.org/1999/xhtml",
"attributes": [
{
"type": "Attribute",
"span": {
"start": 0,
"end": 0,
"ctxt": 0
},
"namespace": null,
"prefix": null,
"name": "title",
"value": "I'm a header"
}
],
"children": [
{
"type": "Text",
"span": {
"start": 56,
"end": 75,
"ctxt": 0
},
"value": "The title Attribute"
}
],
"content": null
},
{
"type": "Text",
"span": {
"start": 80,
"end": 82,
"ctxt": 0
},
"value": "\n\n"
},
{
"type": "Element",
"span": {
"start": 82,
"end": 178,
"ctxt": 0
},
"tagName": "p",
"namespace": "http://www.w3.org/1999/xhtml",
"attributes": [
{
"type": "Attribute",
"span": {
"start": 0,
"end": 0,
"ctxt": 0
},
"namespace": null,
"prefix": null,
"name": "title",
"value": "I'm a tooltip"
}
],
"children": [
{
"type": "Text",
"span": {
"start": 107,
"end": 178,
"ctxt": 0
},
"value": "Mouse over this paragraph, to display the title attribute as a tooltip."
}
],
"content": null
},
{
"type": "Text",
"span": {
"start": 182,
"end": 200,
"ctxt": 0
},
"value": "\n\n\n\n"
}
],
"content": null
}
],
"content": null
}
]
}