swc/crates/swc_html_parser/tests/recovery/element/plaintext/output.json
2022-07-09 04:19:14 +00:00

242 lines
6.9 KiB
JSON
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

{
"type": "Document",
"span": {
"start": 1,
"end": 668,
"ctxt": 0
},
"mode": "no-quirks",
"children": [
{
"type": "DocumentType",
"span": {
"start": 1,
"end": 99,
"ctxt": 0
},
"name": "html",
"publicId": "-//W3C//DTD HTML 4.01//EN",
"systemId": "http://www.w3.org/TR/html4/strict.dtd"
},
{
"type": "Element",
"span": {
"start": 100,
"end": 668,
"ctxt": 0
},
"tagName": "html",
"namespace": "http://www.w3.org/1999/xhtml",
"attributes": [],
"children": [
{
"type": "Element",
"span": {
"start": 107,
"end": 229,
"ctxt": 0
},
"tagName": "head",
"namespace": "http://www.w3.org/1999/xhtml",
"attributes": [],
"children": [
{
"type": "Text",
"span": {
"start": 113,
"end": 118,
"ctxt": 0
},
"data": "\n ",
"raw": "\n "
},
{
"type": "Element",
"span": {
"start": 118,
"end": 185,
"ctxt": 0
},
"tagName": "meta",
"namespace": "http://www.w3.org/1999/xhtml",
"attributes": [
{
"type": "Attribute",
"span": {
"start": 124,
"end": 149,
"ctxt": 0
},
"namespace": null,
"prefix": null,
"name": "http-equiv",
"value": "Content-Type"
},
{
"type": "Attribute",
"span": {
"start": 150,
"end": 184,
"ctxt": 0
},
"namespace": null,
"prefix": null,
"name": "content",
"value": "text/html; charset=utf-8"
}
],
"children": [],
"content": null,
"isSelfClosing": false
},
{
"type": "Text",
"span": {
"start": 185,
"end": 190,
"ctxt": 0
},
"data": "\n ",
"raw": "\n "
},
{
"type": "Element",
"span": {
"start": 190,
"end": 221,
"ctxt": 0
},
"tagName": "title",
"namespace": "http://www.w3.org/1999/xhtml",
"attributes": [],
"children": [
{
"type": "Text",
"span": {
"start": 197,
"end": 213,
"ctxt": 0
},
"data": "Тег PLAINTEXT",
"raw": "Тег PLAINTEXT"
}
],
"content": null,
"isSelfClosing": false
},
{
"type": "Text",
"span": {
"start": 221,
"end": 222,
"ctxt": 0
},
"data": "\n",
"raw": "\n"
}
],
"content": null,
"isSelfClosing": false
},
{
"type": "Text",
"span": {
"start": 229,
"end": 230,
"ctxt": 0
},
"data": "\n",
"raw": "\n"
},
{
"type": "Element",
"span": {
"start": 230,
"end": 668,
"ctxt": 0
},
"tagName": "body",
"namespace": "http://www.w3.org/1999/xhtml",
"attributes": [],
"children": [
{
"type": "Text",
"span": {
"start": 236,
"end": 237,
"ctxt": 0
},
"data": "\n",
"raw": "\n"
},
{
"type": "Element",
"span": {
"start": 237,
"end": 275,
"ctxt": 0
},
"tagName": "p",
"namespace": "http://www.w3.org/1999/xhtml",
"attributes": [],
"children": [
{
"type": "Text",
"span": {
"start": 240,
"end": 271,
"ctxt": 0
},
"data": "Пример программы",
"raw": "Пример программы"
}
],
"content": null,
"isSelfClosing": false
},
{
"type": "Text",
"span": {
"start": 275,
"end": 276,
"ctxt": 0
},
"data": "\n",
"raw": "\n"
},
{
"type": "Element",
"span": {
"start": 276,
"end": 668,
"ctxt": 0
},
"tagName": "plaintext",
"namespace": "http://www.w3.org/1999/xhtml",
"attributes": [],
"children": [
{
"type": "Text",
"span": {
"start": 287,
"end": 668,
"ctxt": 0
},
"data": "\n <h1>Демонстрация метода Подборского</h1>\n while (<>) {\n $org=$_;\n s/\\\\[\"']//g;\n s/\\/\\/[^:].*//;\n s/\\/\\*.*\\*\\///g;\n if ($comment == 1) {\n if (s/.*\\*\\///) {\n $comment = 0;\n }\n else {\n next;\n }\n }\n if (s/\\/\\*.*//) {\n $comment = 1;\n }\n if (/^\\s*#/) {\n next;\n }\n }</plaintext>\n</body>\n</html>",
"raw": "\n <h1>Демонстрация метода Подборского</h1>\n while (<>) {\n $org=$_;\n s/\\\\[\"']//g;\n s/\\/\\/[^:].*//;\n s/\\/\\*.*\\*\\///g;\n if ($comment == 1) {\n if (s/.*\\*\\///) {\n $comment = 0;\n }\n else {\n next;\n }\n }\n if (s/\\/\\*.*//) {\n $comment = 1;\n }\n if (/^\\s*#/) {\n next;\n }\n }</plaintext>\n</body>\n</html>"
}
],
"content": null,
"isSelfClosing": false
}
],
"content": null,
"isSelfClosing": false
}
],
"content": null,
"isSelfClosing": false
}
]
}