}
`;
-exports[`compiler: parse Errors ABSENCE_OF_DIGITS_IN_NUMERIC_CHARACTER_REFERENCE <template attr="c"></template> 1`] = `
-Object {
- "cached": 0,
- "children": Array [
- Object {
- "children": Array [],
- "codegenNode": undefined,
- "isSelfClosing": false,
- "loc": Object {
- "end": Object {
- "column": 35,
- "line": 1,
- "offset": 34,
- },
- "source": "<template attr=\\"c\\"></template>",
- "start": Object {
- "column": 1,
- "line": 1,
- "offset": 0,
- },
- },
- "ns": 0,
- "props": Array [
- Object {
- "loc": Object {
- "end": Object {
- "column": 23,
- "line": 1,
- "offset": 22,
- },
- "source": "attr=\\"c\\"",
- "start": Object {
- "column": 11,
- "line": 1,
- "offset": 10,
- },
- },
- "name": "attr",
- "type": 6,
- "value": Object {
- "content": "c",
- "loc": Object {
- "end": Object {
- "column": 23,
- "line": 1,
- "offset": 22,
- },
- "source": "\\"c\\"",
- "start": Object {
- "column": 16,
- "line": 1,
- "offset": 15,
- },
- },
- "type": 2,
- },
- },
- ],
- "tag": "template",
- "tagType": 0,
- "type": 1,
- },
- ],
- "codegenNode": undefined,
- "components": Array [],
- "directives": Array [],
- "helpers": Array [],
- "hoists": Array [],
- "imports": Array [],
- "loc": Object {
- "end": Object {
- "column": 35,
- "line": 1,
- "offset": 34,
- },
- "source": "<template attr=\\"c\\"></template>",
- "start": Object {
- "column": 1,
- "line": 1,
- "offset": 0,
- },
- },
- "temps": 0,
- "type": 0,
-}
-`;
-
-exports[`compiler: parse Errors ABSENCE_OF_DIGITS_IN_NUMERIC_CHARACTER_REFERENCE <template attr="&#a;"></template> 1`] = `
-Object {
- "cached": 0,
- "children": Array [
- Object {
- "children": Array [],
- "codegenNode": undefined,
- "isSelfClosing": false,
- "loc": Object {
- "end": Object {
- "column": 34,
- "line": 1,
- "offset": 33,
- },
- "source": "<template attr=\\"&#a;\\"></template>",
- "start": Object {
- "column": 1,
- "line": 1,
- "offset": 0,
- },
- },
- "ns": 0,
- "props": Array [
- Object {
- "loc": Object {
- "end": Object {
- "column": 22,
- "line": 1,
- "offset": 21,
- },
- "source": "attr=\\"&#a;\\"",
- "start": Object {
- "column": 11,
- "line": 1,
- "offset": 10,
- },
- },
- "name": "attr",
- "type": 6,
- "value": Object {
- "content": "&#a;",
- "loc": Object {
- "end": Object {
- "column": 22,
- "line": 1,
- "offset": 21,
- },
- "source": "\\"&#a;\\"",
- "start": Object {
- "column": 16,
- "line": 1,
- "offset": 15,
- },
- },
- "type": 2,
- },
- },
- ],
- "tag": "template",
- "tagType": 0,
- "type": 1,
- },
- ],
- "codegenNode": undefined,
- "components": Array [],
- "directives": Array [],
- "helpers": Array [],
- "hoists": Array [],
- "imports": Array [],
- "loc": Object {
- "end": Object {
- "column": 34,
- "line": 1,
- "offset": 33,
- },
- "source": "<template attr=\\"&#a;\\"></template>",
- "start": Object {
- "column": 1,
- "line": 1,
- "offset": 0,
- },
- },
- "temps": 0,
- "type": 0,
-}
-`;
-
-exports[`compiler: parse Errors ABSENCE_OF_DIGITS_IN_NUMERIC_CHARACTER_REFERENCE <template attr="ÿ"></template> 1`] = `
-Object {
- "cached": 0,
- "children": Array [
- Object {
- "children": Array [],
- "codegenNode": undefined,
- "isSelfClosing": false,
- "loc": Object {
- "end": Object {
- "column": 36,
- "line": 1,
- "offset": 35,
- },
- "source": "<template attr=\\"ÿ\\"></template>",
- "start": Object {
- "column": 1,
- "line": 1,
- "offset": 0,
- },
- },
- "ns": 0,
- "props": Array [
- Object {
- "loc": Object {
- "end": Object {
- "column": 24,
- "line": 1,
- "offset": 23,
- },
- "source": "attr=\\"ÿ\\"",
- "start": Object {
- "column": 11,
- "line": 1,
- "offset": 10,
- },
- },
- "name": "attr",
- "type": 6,
- "value": Object {
- "content": "ÿ",
- "loc": Object {
- "end": Object {
- "column": 24,
- "line": 1,
- "offset": 23,
- },
- "source": "\\"ÿ\\"",
- "start": Object {
- "column": 16,
- "line": 1,
- "offset": 15,
- },
- },
- "type": 2,
- },
- },
- ],
- "tag": "template",
- "tagType": 0,
- "type": 1,
- },
- ],
- "codegenNode": undefined,
- "components": Array [],
- "directives": Array [],
- "helpers": Array [],
- "hoists": Array [],
- "imports": Array [],
- "loc": Object {
- "end": Object {
- "column": 36,
- "line": 1,
- "offset": 35,
- },
- "source": "<template attr=\\"ÿ\\"></template>",
- "start": Object {
- "column": 1,
- "line": 1,
- "offset": 0,
- },
- },
- "temps": 0,
- "type": 0,
-}
-`;
-
-exports[`compiler: parse Errors ABSENCE_OF_DIGITS_IN_NUMERIC_CHARACTER_REFERENCE <template attr="&#xg;"></template> 1`] = `
-Object {
- "cached": 0,
- "children": Array [
- Object {
- "children": Array [],
- "codegenNode": undefined,
- "isSelfClosing": false,
- "loc": Object {
- "end": Object {
- "column": 35,
- "line": 1,
- "offset": 34,
- },
- "source": "<template attr=\\"&#xg;\\"></template>",
- "start": Object {
- "column": 1,
- "line": 1,
- "offset": 0,
- },
- },
- "ns": 0,
- "props": Array [
- Object {
- "loc": Object {
- "end": Object {
- "column": 23,
- "line": 1,
- "offset": 22,
- },
- "source": "attr=\\"&#xg;\\"",
- "start": Object {
- "column": 11,
- "line": 1,
- "offset": 10,
- },
- },
- "name": "attr",
- "type": 6,
- "value": Object {
- "content": "&#xg;",
- "loc": Object {
- "end": Object {
- "column": 23,
- "line": 1,
- "offset": 22,
- },
- "source": "\\"&#xg;\\"",
- "start": Object {
- "column": 16,
- "line": 1,
- "offset": 15,
- },
- },
- "type": 2,
- },
- },
- ],
- "tag": "template",
- "tagType": 0,
- "type": 1,
- },
- ],
- "codegenNode": undefined,
- "components": Array [],
- "directives": Array [],
- "helpers": Array [],
- "hoists": Array [],
- "imports": Array [],
- "loc": Object {
- "end": Object {
- "column": 35,
- "line": 1,
- "offset": 34,
- },
- "source": "<template attr=\\"&#xg;\\"></template>",
- "start": Object {
- "column": 1,
- "line": 1,
- "offset": 0,
- },
- },
- "temps": 0,
- "type": 0,
-}
-`;
-
-exports[`compiler: parse Errors ABSENCE_OF_DIGITS_IN_NUMERIC_CHARACTER_REFERENCE <template>c</template> 1`] = `
-Object {
- "cached": 0,
- "children": Array [
- Object {
- "children": Array [
- Object {
- "content": "c",
- "loc": Object {
- "end": Object {
- "column": 16,
- "line": 1,
- "offset": 15,
- },
- "source": "c",
- "start": Object {
- "column": 11,
- "line": 1,
- "offset": 10,
- },
- },
- "type": 2,
- },
- ],
- "codegenNode": undefined,
- "isSelfClosing": false,
- "loc": Object {
- "end": Object {
- "column": 27,
- "line": 1,
- "offset": 26,
- },
- "source": "<template>c</template>",
- "start": Object {
- "column": 1,
- "line": 1,
- "offset": 0,
- },
- },
- "ns": 0,
- "props": Array [],
- "tag": "template",
- "tagType": 0,
- "type": 1,
- },
- ],
- "codegenNode": undefined,
- "components": Array [],
- "directives": Array [],
- "helpers": Array [],
- "hoists": Array [],
- "imports": Array [],
- "loc": Object {
- "end": Object {
- "column": 27,
- "line": 1,
- "offset": 26,
- },
- "source": "<template>c</template>",
- "start": Object {
- "column": 1,
- "line": 1,
- "offset": 0,
- },
- },
- "temps": 0,
- "type": 0,
-}
-`;
-
-exports[`compiler: parse Errors ABSENCE_OF_DIGITS_IN_NUMERIC_CHARACTER_REFERENCE <template>&#a;</template> 1`] = `
-Object {
- "cached": 0,
- "children": Array [
- Object {
- "children": Array [
- Object {
- "content": "&#a;",
- "loc": Object {
- "end": Object {
- "column": 15,
- "line": 1,
- "offset": 14,
- },
- "source": "&#a;",
- "start": Object {
- "column": 11,
- "line": 1,
- "offset": 10,
- },
- },
- "type": 2,
- },
- ],
- "codegenNode": undefined,
- "isSelfClosing": false,
- "loc": Object {
- "end": Object {
- "column": 26,
- "line": 1,
- "offset": 25,
- },
- "source": "<template>&#a;</template>",
- "start": Object {
- "column": 1,
- "line": 1,
- "offset": 0,
- },
- },
- "ns": 0,
- "props": Array [],
- "tag": "template",
- "tagType": 0,
- "type": 1,
- },
- ],
- "codegenNode": undefined,
- "components": Array [],
- "directives": Array [],
- "helpers": Array [],
- "hoists": Array [],
- "imports": Array [],
- "loc": Object {
- "end": Object {
- "column": 26,
- "line": 1,
- "offset": 25,
- },
- "source": "<template>&#a;</template>",
- "start": Object {
- "column": 1,
- "line": 1,
- "offset": 0,
- },
- },
- "temps": 0,
- "type": 0,
-}
-`;
-
-exports[`compiler: parse Errors ABSENCE_OF_DIGITS_IN_NUMERIC_CHARACTER_REFERENCE <template>ÿ</template> 1`] = `
-Object {
- "cached": 0,
- "children": Array [
- Object {
- "children": Array [
- Object {
- "content": "ÿ",
- "loc": Object {
- "end": Object {
- "column": 17,
- "line": 1,
- "offset": 16,
- },
- "source": "ÿ",
- "start": Object {
- "column": 11,
- "line": 1,
- "offset": 10,
- },
- },
- "type": 2,
- },
- ],
- "codegenNode": undefined,
- "isSelfClosing": false,
- "loc": Object {
- "end": Object {
- "column": 28,
- "line": 1,
- "offset": 27,
- },
- "source": "<template>ÿ</template>",
- "start": Object {
- "column": 1,
- "line": 1,
- "offset": 0,
- },
- },
- "ns": 0,
- "props": Array [],
- "tag": "template",
- "tagType": 0,
- "type": 1,
- },
- ],
- "codegenNode": undefined,
- "components": Array [],
- "directives": Array [],
- "helpers": Array [],
- "hoists": Array [],
- "imports": Array [],
- "loc": Object {
- "end": Object {
- "column": 28,
- "line": 1,
- "offset": 27,
- },
- "source": "<template>ÿ</template>",
- "start": Object {
- "column": 1,
- "line": 1,
- "offset": 0,
- },
- },
- "temps": 0,
- "type": 0,
-}
-`;
-
-exports[`compiler: parse Errors ABSENCE_OF_DIGITS_IN_NUMERIC_CHARACTER_REFERENCE <template>&#xg;</template> 1`] = `
-Object {
- "cached": 0,
- "children": Array [
- Object {
- "children": Array [
- Object {
- "content": "&#xg;",
- "loc": Object {
- "end": Object {
- "column": 16,
- "line": 1,
- "offset": 15,
- },
- "source": "&#xg;",
- "start": Object {
- "column": 11,
- "line": 1,
- "offset": 10,
- },
- },
- "type": 2,
- },
- ],
- "codegenNode": undefined,
- "isSelfClosing": false,
- "loc": Object {
- "end": Object {
- "column": 27,
- "line": 1,
- "offset": 26,
- },
- "source": "<template>&#xg;</template>",
- "start": Object {
- "column": 1,
- "line": 1,
- "offset": 0,
- },
- },
- "ns": 0,
- "props": Array [],
- "tag": "template",
- "tagType": 0,
- "type": 1,
- },
- ],
- "codegenNode": undefined,
- "components": Array [],
- "directives": Array [],
- "helpers": Array [],
- "hoists": Array [],
- "imports": Array [],
- "loc": Object {
- "end": Object {
- "column": 27,
- "line": 1,
- "offset": 26,
- },
- "source": "<template>&#xg;</template>",
- "start": Object {
- "column": 1,
- "line": 1,
- "offset": 0,
- },
- },
- "temps": 0,
- "type": 0,
-}
-`;
-
-exports[`compiler: parse Errors CDATA_IN_HTML_CONTENT <template><![CDATA[cdata]]></template> 1`] = `
-Object {
- "cached": 0,
- "children": Array [
- Object {
- "children": Array [
- Object {
- "content": "[CDATA[cdata]]",
- "loc": Object {
- "end": Object {
- "column": 28,
- "line": 1,
- "offset": 27,
- },
- "source": "<![CDATA[cdata]]>",
- "start": Object {
- "column": 11,
- "line": 1,
- "offset": 10,
- },
- },
- "type": 3,
- },
- ],
- "codegenNode": undefined,
- "isSelfClosing": false,
- "loc": Object {
- "end": Object {
- "column": 39,
- "line": 1,
- "offset": 38,
- },
- "source": "<template><![CDATA[cdata]]></template>",
- "start": Object {
- "column": 1,
- "line": 1,
- "offset": 0,
- },
- },
- "ns": 0,
- "props": Array [],
- "tag": "template",
- "tagType": 0,
- "type": 1,
- },
- ],
- "codegenNode": undefined,
- "components": Array [],
- "directives": Array [],
- "helpers": Array [],
- "hoists": Array [],
- "imports": Array [],
- "loc": Object {
- "end": Object {
- "column": 39,
- "line": 1,
- "offset": 38,
- },
- "source": "<template><![CDATA[cdata]]></template>",
- "start": Object {
- "column": 1,
- "line": 1,
- "offset": 0,
- },
- },
- "temps": 0,
- "type": 0,
-}
-`;
-
-exports[`compiler: parse Errors CDATA_IN_HTML_CONTENT <template><svg><![CDATA[cdata]]></svg></template> 1`] = `
-Object {
- "cached": 0,
- "children": Array [
- Object {
- "children": Array [
- Object {
- "children": Array [
- Object {
- "content": "cdata",
- "loc": Object {
- "end": Object {
- "column": 30,
- "line": 1,
- "offset": 29,
- },
- "source": "cdata",
- "start": Object {
- "column": 25,
- "line": 1,
- "offset": 24,
- },
- },
- "type": 2,
- },
- ],
- "codegenNode": undefined,
- "isSelfClosing": false,
- "loc": Object {
- "end": Object {
- "column": 39,
- "line": 1,
- "offset": 38,
- },
- "source": "<svg><![CDATA[cdata]]></svg>",
- "start": Object {
- "column": 11,
- "line": 1,
- "offset": 10,
- },
- },
- "ns": 1,
- "props": Array [],
- "tag": "svg",
- "tagType": 0,
- "type": 1,
- },
- ],
- "codegenNode": undefined,
- "isSelfClosing": false,
- "loc": Object {
- "end": Object {
- "column": 50,
- "line": 1,
- "offset": 49,
- },
- "source": "<template><svg><![CDATA[cdata]]></svg></template>",
- "start": Object {
- "column": 1,
- "line": 1,
- "offset": 0,
- },
- },
- "ns": 0,
- "props": Array [],
- "tag": "template",
- "tagType": 0,
- "type": 1,
- },
- ],
- "codegenNode": undefined,
- "components": Array [],
- "directives": Array [],
- "helpers": Array [],
- "hoists": Array [],
- "imports": Array [],
- "loc": Object {
- "end": Object {
- "column": 50,
- "line": 1,
- "offset": 49,
- },
- "source": "<template><svg><![CDATA[cdata]]></svg></template>",
- "start": Object {
- "column": 1,
- "line": 1,
- "offset": 0,
- },
- },
- "temps": 0,
- "type": 0,
-}
-`;
-
-exports[`compiler: parse Errors CHARACTER_REFERENCE_OUTSIDE_UNICODE_RANGE <template>�</template> 1`] = `
-Object {
- "cached": 0,
- "children": Array [
- Object {
- "children": Array [
- Object {
- "content": "�",
- "loc": Object {
- "end": Object {
- "column": 21,
- "line": 1,
- "offset": 20,
- },
- "source": "�",
- "start": Object {
- "column": 11,
- "line": 1,
- "offset": 10,
- },
- },
- "type": 2,
- },
- ],
- "codegenNode": undefined,
- "isSelfClosing": false,
- "loc": Object {
- "end": Object {
- "column": 32,
- "line": 1,
- "offset": 31,
- },
- "source": "<template>�</template>",
- "start": Object {
- "column": 1,
- "line": 1,
- "offset": 0,
- },
- },
- "ns": 0,
- "props": Array [],
- "tag": "template",
- "tagType": 0,
- "type": 1,
- },
- ],
- "codegenNode": undefined,
- "components": Array [],
- "directives": Array [],
- "helpers": Array [],
- "hoists": Array [],
- "imports": Array [],
- "loc": Object {
- "end": Object {
- "column": 32,
- "line": 1,
- "offset": 31,
- },
- "source": "<template>�</template>",
- "start": Object {
- "column": 1,
- "line": 1,
- "offset": 0,
- },
- },
- "temps": 0,
- "type": 0,
-}
-`;
-
-exports[`compiler: parse Errors CONTROL_CHARACTER_REFERENCE <template></template> 1`] = `
-Object {
- "cached": 0,
- "children": Array [
- Object {
- "children": Array [
- Object {
- "content": "\ 3",
- "loc": Object {
- "end": Object {
- "column": 18,
- "line": 1,
- "offset": 17,
- },
- "source": "",
- "start": Object {
- "column": 11,
- "line": 1,
- "offset": 10,
- },
- },
- "type": 2,
- },
- ],
- "codegenNode": undefined,
- "isSelfClosing": false,
- "loc": Object {
- "end": Object {
- "column": 29,
- "line": 1,
- "offset": 28,
- },
- "source": "<template></template>",
- "start": Object {
- "column": 1,
- "line": 1,
- "offset": 0,
- },
- },
- "ns": 0,
- "props": Array [],
- "tag": "template",
- "tagType": 0,
- "type": 1,
- },
- ],
- "codegenNode": undefined,
- "components": Array [],
- "directives": Array [],
- "helpers": Array [],
- "hoists": Array [],
- "imports": Array [],
- "loc": Object {
- "end": Object {
- "column": 29,
- "line": 1,
- "offset": 28,
- },
- "source": "<template></template>",
- "start": Object {
- "column": 1,
- "line": 1,
- "offset": 0,
- },
- },
- "temps": 0,
- "type": 0,
-}
-`;
-
-exports[`compiler: parse Errors CONTROL_CHARACTER_REFERENCE <template></template> 1`] = `
-Object {
- "cached": 0,
- "children": Array [
- Object {
- "children": Array [
- Object {
- "content": "\7f",
- "loc": Object {
- "end": Object {
- "column": 17,
- "line": 1,
- "offset": 16,
- },
- "source": "",
- "start": Object {
- "column": 11,
- "line": 1,
- "offset": 10,
- },
- },
- "type": 2,
- },
- ],
- "codegenNode": undefined,
- "isSelfClosing": false,
- "loc": Object {
- "end": Object {
- "column": 28,
- "line": 1,
- "offset": 27,
- },
- "source": "<template></template>",
- "start": Object {
- "column": 1,
- "line": 1,
- "offset": 0,
- },
- },
- "ns": 0,
- "props": Array [],
- "tag": "template",
- "tagType": 0,
- "type": 1,
- },
- ],
- "codegenNode": undefined,
- "components": Array [],
- "directives": Array [],
- "helpers": Array [],
- "hoists": Array [],
- "imports": Array [],
- "loc": Object {
- "end": Object {
- "column": 28,
- "line": 1,
- "offset": 27,
- },
- "source": "<template></template>",
- "start": Object {
- "column": 1,
- "line": 1,
- "offset": 0,
- },
- },
- "temps": 0,
- "type": 0,
-}
-`;
-
-exports[`compiler: parse Errors DUPLICATE_ATTRIBUTE <template><div id="" id=""></div></template> 1`] = `
-Object {
- "cached": 0,
- "children": Array [
- Object {
- "children": Array [
- Object {
- "children": Array [],
- "codegenNode": undefined,
- "isSelfClosing": false,
- "loc": Object {
- "end": Object {
- "column": 34,
- "line": 1,
- "offset": 33,
- },
- "source": "<div id=\\"\\" id=\\"\\"></div>",
- "start": Object {
- "column": 11,
- "line": 1,
- "offset": 10,
- },
- },
- "ns": 0,
- "props": Array [
- Object {
- "loc": Object {
- "end": Object {
- "column": 21,
- "line": 1,
- "offset": 20,
- },
- "source": "id=\\"\\"",
- "start": Object {
- "column": 16,
- "line": 1,
- "offset": 15,
- },
- },
- "name": "id",
- "type": 6,
- "value": Object {
- "content": "",
- "loc": Object {
- "end": Object {
- "column": 21,
- "line": 1,
- "offset": 20,
- },
- "source": "\\"\\"",
- "start": Object {
- "column": 19,
- "line": 1,
- "offset": 18,
- },
- },
- "type": 2,
- },
- },
- Object {
- "loc": Object {
- "end": Object {
- "column": 27,
- "line": 1,
- "offset": 26,
- },
- "source": "id=\\"\\"",
- "start": Object {
- "column": 22,
- "line": 1,
- "offset": 21,
- },
- },
- "name": "id",
- "type": 6,
- "value": Object {
- "content": "",
- "loc": Object {
- "end": Object {
- "column": 27,
- "line": 1,
- "offset": 26,
- },
- "source": "\\"\\"",
- "start": Object {
- "column": 25,
- "line": 1,
- "offset": 24,
- },
- },
- "type": 2,
- },
- },
- ],
- "tag": "div",
- "tagType": 0,
- "type": 1,
- },
- ],
- "codegenNode": undefined,
- "isSelfClosing": false,
- "loc": Object {
- "end": Object {
- "column": 45,
- "line": 1,
- "offset": 44,
- },
- "source": "<template><div id=\\"\\" id=\\"\\"></div></template>",
- "start": Object {
- "column": 1,
- "line": 1,
- "offset": 0,
- },
- },
- "ns": 0,
- "props": Array [],
- "tag": "template",
- "tagType": 0,
- "type": 1,
- },
- ],
- "codegenNode": undefined,
- "components": Array [],
- "directives": Array [],
- "helpers": Array [],
- "hoists": Array [],
- "imports": Array [],
- "loc": Object {
- "end": Object {
- "column": 45,
- "line": 1,
- "offset": 44,
- },
- "source": "<template><div id=\\"\\" id=\\"\\"></div></template>",
- "start": Object {
- "column": 1,
- "line": 1,
- "offset": 0,
- },
- },
- "temps": 0,
- "type": 0,
-}
-`;
-
-exports[`compiler: parse Errors END_TAG_WITH_ATTRIBUTES <template><div></div id=""></template> 1`] = `
+exports[`compiler: parse Errors CDATA_IN_HTML_CONTENT <template><![CDATA[cdata]]></template> 1`] = `
Object {
"cached": 0,
"children": Array [
Object {
"children": Array [
Object {
- "children": Array [],
- "codegenNode": undefined,
- "isSelfClosing": false,
+ "content": "[CDATA[cdata]]",
"loc": Object {
"end": Object {
"column": 28,
"line": 1,
"offset": 27,
},
- "source": "<div></div id=\\"\\">",
+ "source": "<![CDATA[cdata]]>",
"start": Object {
"column": 11,
"line": 1,
"offset": 10,
},
},
- "ns": 0,
- "props": Array [],
- "tag": "div",
- "tagType": 0,
- "type": 1,
+ "type": 3,
},
],
"codegenNode": undefined,
"line": 1,
"offset": 38,
},
- "source": "<template><div></div id=\\"\\"></template>",
+ "source": "<template><![CDATA[cdata]]></template>",
"start": Object {
"column": 1,
"line": 1,
"line": 1,
"offset": 38,
},
- "source": "<template><div></div id=\\"\\"></template>",
+ "source": "<template><![CDATA[cdata]]></template>",
"start": Object {
"column": 1,
"line": 1,
}
`;
-exports[`compiler: parse Errors END_TAG_WITH_TRAILING_SOLIDUS <template><div></div/></template> 1`] = `
+exports[`compiler: parse Errors CDATA_IN_HTML_CONTENT <template><svg><![CDATA[cdata]]></svg></template> 1`] = `
Object {
"cached": 0,
"children": Array [
Object {
"children": Array [
Object {
- "children": Array [],
+ "children": Array [
+ Object {
+ "content": "cdata",
+ "loc": Object {
+ "end": Object {
+ "column": 30,
+ "line": 1,
+ "offset": 29,
+ },
+ "source": "cdata",
+ "start": Object {
+ "column": 25,
+ "line": 1,
+ "offset": 24,
+ },
+ },
+ "type": 2,
+ },
+ ],
"codegenNode": undefined,
"isSelfClosing": false,
"loc": Object {
"end": Object {
- "column": 23,
+ "column": 39,
"line": 1,
- "offset": 22,
+ "offset": 38,
},
- "source": "<div></div/>",
+ "source": "<svg><![CDATA[cdata]]></svg>",
"start": Object {
"column": 11,
"line": 1,
"offset": 10,
},
},
- "ns": 0,
+ "ns": 1,
"props": Array [],
- "tag": "div",
+ "tag": "svg",
"tagType": 0,
"type": 1,
},
"isSelfClosing": false,
"loc": Object {
"end": Object {
- "column": 34,
- "line": 1,
- "offset": 33,
- },
- "source": "<template><div></div/></template>",
- "start": Object {
- "column": 1,
- "line": 1,
- "offset": 0,
- },
- },
- "ns": 0,
- "props": Array [],
- "tag": "template",
- "tagType": 0,
- "type": 1,
- },
- ],
- "codegenNode": undefined,
- "components": Array [],
- "directives": Array [],
- "helpers": Array [],
- "hoists": Array [],
- "imports": Array [],
- "loc": Object {
- "end": Object {
- "column": 34,
- "line": 1,
- "offset": 33,
- },
- "source": "<template><div></div/></template>",
- "start": Object {
- "column": 1,
- "line": 1,
- "offset": 0,
- },
- },
- "temps": 0,
- "type": 0,
-}
-`;
-
-exports[`compiler: parse Errors EOF_BEFORE_TAG_NAME <template>< 1`] = `
-Object {
- "cached": 0,
- "children": Array [
- Object {
- "children": Array [
- Object {
- "content": "<",
- "loc": Object {
- "end": Object {
- "column": 12,
- "line": 1,
- "offset": 11,
- },
- "source": "<",
- "start": Object {
- "column": 11,
- "line": 1,
- "offset": 10,
- },
- },
- "type": 2,
- },
- ],
- "codegenNode": undefined,
- "isSelfClosing": false,
- "loc": Object {
- "end": Object {
- "column": 12,
- "line": 1,
- "offset": 11,
- },
- "source": "<template><",
- "start": Object {
- "column": 1,
- "line": 1,
- "offset": 0,
- },
- },
- "ns": 0,
- "props": Array [],
- "tag": "template",
- "tagType": 0,
- "type": 1,
- },
- ],
- "codegenNode": undefined,
- "components": Array [],
- "directives": Array [],
- "helpers": Array [],
- "hoists": Array [],
- "imports": Array [],
- "loc": Object {
- "end": Object {
- "column": 12,
- "line": 1,
- "offset": 11,
- },
- "source": "<template><",
- "start": Object {
- "column": 1,
- "line": 1,
- "offset": 0,
- },
- },
- "temps": 0,
- "type": 0,
-}
-`;
-
-exports[`compiler: parse Errors EOF_BEFORE_TAG_NAME <template></ 1`] = `
-Object {
- "cached": 0,
- "children": Array [
- Object {
- "children": Array [
- Object {
- "content": "</",
- "loc": Object {
- "end": Object {
- "column": 13,
- "line": 1,
- "offset": 12,
- },
- "source": "</",
- "start": Object {
- "column": 11,
- "line": 1,
- "offset": 10,
- },
- },
- "type": 2,
- },
- ],
- "codegenNode": undefined,
- "isSelfClosing": false,
- "loc": Object {
- "end": Object {
- "column": 13,
+ "column": 50,
"line": 1,
- "offset": 12,
+ "offset": 49,
},
- "source": "<template></",
+ "source": "<template><svg><![CDATA[cdata]]></svg></template>",
"start": Object {
"column": 1,
"line": 1,
"imports": Array [],
"loc": Object {
"end": Object {
- "column": 13,
+ "column": 50,
"line": 1,
- "offset": 12,
+ "offset": 49,
},
- "source": "<template></",
+ "source": "<template><svg><![CDATA[cdata]]></svg></template>",
"start": Object {
"column": 1,
"line": 1,
}
`;
-exports[`compiler: parse Errors EOF_IN_CDATA <template><svg><![CDATA[ 1`] = `
+exports[`compiler: parse Errors DUPLICATE_ATTRIBUTE <template><div id="" id=""></div></template> 1`] = `
Object {
"cached": 0,
"children": Array [
"isSelfClosing": false,
"loc": Object {
"end": Object {
- "column": 25,
+ "column": 34,
"line": 1,
- "offset": 24,
+ "offset": 33,
},
- "source": "<svg><![CDATA[",
+ "source": "<div id=\\"\\" id=\\"\\"></div>",
"start": Object {
"column": 11,
"line": 1,
"offset": 10,
},
},
- "ns": 1,
- "props": Array [],
- "tag": "svg",
+ "ns": 0,
+ "props": Array [
+ Object {
+ "loc": Object {
+ "end": Object {
+ "column": 21,
+ "line": 1,
+ "offset": 20,
+ },
+ "source": "id=\\"\\"",
+ "start": Object {
+ "column": 16,
+ "line": 1,
+ "offset": 15,
+ },
+ },
+ "name": "id",
+ "type": 6,
+ "value": Object {
+ "content": "",
+ "loc": Object {
+ "end": Object {
+ "column": 21,
+ "line": 1,
+ "offset": 20,
+ },
+ "source": "\\"\\"",
+ "start": Object {
+ "column": 19,
+ "line": 1,
+ "offset": 18,
+ },
+ },
+ "type": 2,
+ },
+ },
+ Object {
+ "loc": Object {
+ "end": Object {
+ "column": 27,
+ "line": 1,
+ "offset": 26,
+ },
+ "source": "id=\\"\\"",
+ "start": Object {
+ "column": 22,
+ "line": 1,
+ "offset": 21,
+ },
+ },
+ "name": "id",
+ "type": 6,
+ "value": Object {
+ "content": "",
+ "loc": Object {
+ "end": Object {
+ "column": 27,
+ "line": 1,
+ "offset": 26,
+ },
+ "source": "\\"\\"",
+ "start": Object {
+ "column": 25,
+ "line": 1,
+ "offset": 24,
+ },
+ },
+ "type": 2,
+ },
+ },
+ ],
+ "tag": "div",
"tagType": 0,
"type": 1,
},
"isSelfClosing": false,
"loc": Object {
"end": Object {
- "column": 25,
+ "column": 45,
"line": 1,
- "offset": 24,
+ "offset": 44,
},
- "source": "<template><svg><![CDATA[",
+ "source": "<template><div id=\\"\\" id=\\"\\"></div></template>",
"start": Object {
"column": 1,
"line": 1,
"imports": Array [],
"loc": Object {
"end": Object {
- "column": 25,
+ "column": 45,
"line": 1,
- "offset": 24,
+ "offset": 44,
},
- "source": "<template><svg><![CDATA[",
+ "source": "<template><div id=\\"\\" id=\\"\\"></div></template>",
"start": Object {
"column": 1,
"line": 1,
}
`;
-exports[`compiler: parse Errors EOF_IN_CDATA <template><svg><![CDATA[cdata 1`] = `
+exports[`compiler: parse Errors END_TAG_WITH_ATTRIBUTES <template><div></div id=""></template> 1`] = `
Object {
"cached": 0,
"children": Array [
Object {
"children": Array [
Object {
- "children": Array [
- Object {
- "content": "cdata",
- "loc": Object {
- "end": Object {
- "column": 30,
- "line": 1,
- "offset": 29,
- },
- "source": "cdata",
- "start": Object {
- "column": 25,
- "line": 1,
- "offset": 24,
- },
- },
- "type": 2,
- },
- ],
+ "children": Array [],
"codegenNode": undefined,
"isSelfClosing": false,
"loc": Object {
"end": Object {
- "column": 30,
+ "column": 28,
"line": 1,
- "offset": 29,
+ "offset": 27,
},
- "source": "<svg><![CDATA[cdata",
+ "source": "<div></div id=\\"\\">",
"start": Object {
"column": 11,
"line": 1,
"offset": 10,
},
},
- "ns": 1,
+ "ns": 0,
"props": Array [],
- "tag": "svg",
+ "tag": "div",
"tagType": 0,
"type": 1,
},
"isSelfClosing": false,
"loc": Object {
"end": Object {
- "column": 30,
+ "column": 39,
"line": 1,
- "offset": 29,
+ "offset": 38,
},
- "source": "<template><svg><![CDATA[cdata",
+ "source": "<template><div></div id=\\"\\"></template>",
"start": Object {
"column": 1,
"line": 1,
"imports": Array [],
"loc": Object {
"end": Object {
- "column": 30,
+ "column": 39,
"line": 1,
- "offset": 29,
+ "offset": 38,
},
- "source": "<template><svg><![CDATA[cdata",
+ "source": "<template><div></div id=\\"\\"></template>",
"start": Object {
"column": 1,
"line": 1,
}
`;
-exports[`compiler: parse Errors EOF_IN_COMMENT <template><! 1`] = `
+exports[`compiler: parse Errors END_TAG_WITH_TRAILING_SOLIDUS <template><div></div/></template> 1`] = `
Object {
"cached": 0,
"children": Array [
Object {
"children": Array [
Object {
- "content": "",
+ "children": Array [],
+ "codegenNode": undefined,
+ "isSelfClosing": false,
"loc": Object {
"end": Object {
- "column": 13,
+ "column": 23,
"line": 1,
- "offset": 12,
+ "offset": 22,
},
- "source": "<!",
+ "source": "<div></div/>",
"start": Object {
"column": 11,
"line": 1,
"offset": 10,
},
},
- "type": 3,
+ "ns": 0,
+ "props": Array [],
+ "tag": "div",
+ "tagType": 0,
+ "type": 1,
},
],
"codegenNode": undefined,
"isSelfClosing": false,
"loc": Object {
"end": Object {
- "column": 13,
+ "column": 34,
"line": 1,
- "offset": 12,
+ "offset": 33,
},
- "source": "<template><!",
+ "source": "<template><div></div/></template>",
"start": Object {
"column": 1,
"line": 1,
"imports": Array [],
"loc": Object {
"end": Object {
- "column": 13,
+ "column": 34,
"line": 1,
- "offset": 12,
+ "offset": 33,
},
- "source": "<template><!",
+ "source": "<template><div></div/></template>",
"start": Object {
"column": 1,
"line": 1,
}
`;
-exports[`compiler: parse Errors EOF_IN_COMMENT <template><!- 1`] = `
+exports[`compiler: parse Errors EOF_BEFORE_TAG_NAME <template>< 1`] = `
Object {
"cached": 0,
"children": Array [
Object {
"children": Array [
Object {
- "content": "-",
+ "content": "<",
"loc": Object {
"end": Object {
- "column": 14,
+ "column": 12,
"line": 1,
- "offset": 13,
+ "offset": 11,
},
- "source": "<!-",
+ "source": "<",
"start": Object {
"column": 11,
"line": 1,
"offset": 10,
},
},
- "type": 3,
+ "type": 2,
},
],
"codegenNode": undefined,
"isSelfClosing": false,
"loc": Object {
"end": Object {
- "column": 14,
+ "column": 12,
"line": 1,
- "offset": 13,
+ "offset": 11,
},
- "source": "<template><!-",
+ "source": "<template><",
"start": Object {
"column": 1,
"line": 1,
"imports": Array [],
"loc": Object {
"end": Object {
- "column": 14,
+ "column": 12,
"line": 1,
- "offset": 13,
+ "offset": 11,
},
- "source": "<template><!-",
+ "source": "<template><",
"start": Object {
"column": 1,
"line": 1,
}
`;
-exports[`compiler: parse Errors EOF_IN_COMMENT <template><!-- 1`] = `
+exports[`compiler: parse Errors EOF_BEFORE_TAG_NAME <template></ 1`] = `
Object {
"cached": 0,
"children": Array [
Object {
"children": Array [
Object {
- "content": "",
+ "content": "</",
"loc": Object {
"end": Object {
- "column": 15,
+ "column": 13,
"line": 1,
- "offset": 14,
+ "offset": 12,
},
- "source": "<!--",
+ "source": "</",
"start": Object {
"column": 11,
"line": 1,
"offset": 10,
},
},
- "type": 3,
+ "type": 2,
},
],
"codegenNode": undefined,
"isSelfClosing": false,
"loc": Object {
"end": Object {
- "column": 15,
+ "column": 13,
"line": 1,
- "offset": 14,
+ "offset": 12,
},
- "source": "<template><!--",
+ "source": "<template></",
"start": Object {
"column": 1,
"line": 1,
"imports": Array [],
"loc": Object {
"end": Object {
- "column": 15,
+ "column": 13,
"line": 1,
- "offset": 14,
+ "offset": 12,
},
- "source": "<template><!--",
+ "source": "<template></",
"start": Object {
"column": 1,
"line": 1,
}
`;
-exports[`compiler: parse Errors EOF_IN_COMMENT <template><!--comment 1`] = `
+exports[`compiler: parse Errors EOF_IN_CDATA <template><svg><![CDATA[ 1`] = `
Object {
"cached": 0,
"children": Array [
Object {
"children": Array [
Object {
- "content": "comment",
+ "children": Array [],
+ "codegenNode": undefined,
+ "isSelfClosing": false,
"loc": Object {
"end": Object {
- "column": 22,
+ "column": 25,
"line": 1,
- "offset": 21,
+ "offset": 24,
},
- "source": "<!--comment",
+ "source": "<svg><![CDATA[",
"start": Object {
"column": 11,
"line": 1,
"offset": 10,
},
},
- "type": 3,
+ "ns": 1,
+ "props": Array [],
+ "tag": "svg",
+ "tagType": 0,
+ "type": 1,
},
],
"codegenNode": undefined,
"isSelfClosing": false,
"loc": Object {
"end": Object {
- "column": 22,
+ "column": 25,
"line": 1,
- "offset": 21,
+ "offset": 24,
},
- "source": "<template><!--comment",
+ "source": "<template><svg><![CDATA[",
"start": Object {
"column": 1,
"line": 1,
"imports": Array [],
"loc": Object {
"end": Object {
- "column": 22,
+ "column": 25,
"line": 1,
- "offset": 21,
+ "offset": 24,
},
- "source": "<template><!--comment",
+ "source": "<template><svg><![CDATA[",
"start": Object {
"column": 1,
"line": 1,
}
`;
-exports[`compiler: parse Errors EOF_IN_COMMENT <template><!abc 1`] = `
+exports[`compiler: parse Errors EOF_IN_CDATA <template><svg><![CDATA[cdata 1`] = `
Object {
"cached": 0,
"children": Array [
Object {
"children": Array [
Object {
- "content": "abc",
+ "children": Array [
+ Object {
+ "content": "cdata",
+ "loc": Object {
+ "end": Object {
+ "column": 30,
+ "line": 1,
+ "offset": 29,
+ },
+ "source": "cdata",
+ "start": Object {
+ "column": 25,
+ "line": 1,
+ "offset": 24,
+ },
+ },
+ "type": 2,
+ },
+ ],
+ "codegenNode": undefined,
+ "isSelfClosing": false,
"loc": Object {
"end": Object {
- "column": 16,
+ "column": 30,
"line": 1,
- "offset": 15,
+ "offset": 29,
},
- "source": "<!abc",
+ "source": "<svg><![CDATA[cdata",
"start": Object {
"column": 11,
"line": 1,
"offset": 10,
},
},
- "type": 3,
+ "ns": 1,
+ "props": Array [],
+ "tag": "svg",
+ "tagType": 0,
+ "type": 1,
},
],
"codegenNode": undefined,
"isSelfClosing": false,
"loc": Object {
"end": Object {
- "column": 16,
+ "column": 30,
"line": 1,
- "offset": 15,
+ "offset": 29,
},
- "source": "<template><!abc",
+ "source": "<template><svg><![CDATA[cdata",
"start": Object {
"column": 1,
"line": 1,
"imports": Array [],
"loc": Object {
"end": Object {
- "column": 16,
+ "column": 30,
"line": 1,
- "offset": 15,
+ "offset": 29,
},
- "source": "<template><!abc",
+ "source": "<template><svg><![CDATA[cdata",
"start": Object {
"column": 1,
"line": 1,
}
`;
-exports[`compiler: parse Errors EOF_IN_SCRIPT_HTML_COMMENT_LIKE_TEXT <script><!--console.log('hello') 1`] = `
+exports[`compiler: parse Errors EOF_IN_COMMENT <template><! 1`] = `
Object {
"cached": 0,
"children": Array [
Object {
"children": Array [
Object {
- "content": "<!--console.log('hello')",
+ "content": "",
"loc": Object {
"end": Object {
- "column": 33,
+ "column": 13,
"line": 1,
- "offset": 32,
+ "offset": 12,
},
- "source": "<!--console.log('hello')",
+ "source": "<!",
"start": Object {
- "column": 9,
+ "column": 11,
"line": 1,
- "offset": 8,
+ "offset": 10,
},
},
- "type": 2,
+ "type": 3,
},
],
"codegenNode": undefined,
"isSelfClosing": false,
"loc": Object {
"end": Object {
- "column": 33,
+ "column": 13,
"line": 1,
- "offset": 32,
+ "offset": 12,
},
- "source": "<script><!--console.log('hello')",
+ "source": "<template><!",
"start": Object {
"column": 1,
"line": 1,
},
"ns": 0,
"props": Array [],
- "tag": "script",
+ "tag": "template",
"tagType": 0,
"type": 1,
},
"imports": Array [],
"loc": Object {
"end": Object {
- "column": 33,
+ "column": 13,
"line": 1,
- "offset": 32,
+ "offset": 12,
},
- "source": "<script><!--console.log('hello')",
+ "source": "<template><!",
"start": Object {
"column": 1,
"line": 1,
}
`;
-exports[`compiler: parse Errors EOF_IN_SCRIPT_HTML_COMMENT_LIKE_TEXT <script>console.log('hello') 1`] = `
+exports[`compiler: parse Errors EOF_IN_COMMENT <template><!- 1`] = `
Object {
"cached": 0,
"children": Array [
Object {
"children": Array [
Object {
- "content": "console.log('hello')",
+ "content": "-",
"loc": Object {
"end": Object {
- "column": 29,
+ "column": 14,
"line": 1,
- "offset": 28,
+ "offset": 13,
},
- "source": "console.log('hello')",
+ "source": "<!-",
"start": Object {
- "column": 9,
+ "column": 11,
"line": 1,
- "offset": 8,
+ "offset": 10,
},
},
- "type": 2,
+ "type": 3,
},
],
"codegenNode": undefined,
"isSelfClosing": false,
"loc": Object {
"end": Object {
- "column": 29,
+ "column": 14,
"line": 1,
- "offset": 28,
+ "offset": 13,
},
- "source": "<script>console.log('hello')",
+ "source": "<template><!-",
"start": Object {
"column": 1,
"line": 1,
},
"ns": 0,
"props": Array [],
- "tag": "script",
+ "tag": "template",
"tagType": 0,
"type": 1,
},
"imports": Array [],
"loc": Object {
"end": Object {
- "column": 29,
+ "column": 14,
"line": 1,
- "offset": 28,
+ "offset": 13,
},
- "source": "<script>console.log('hello')",
+ "source": "<template><!-",
"start": Object {
"column": 1,
"line": 1,
}
`;
-exports[`compiler: parse Errors EOF_IN_TAG <template><div 1`] = `
+exports[`compiler: parse Errors EOF_IN_COMMENT <template><!-- 1`] = `
Object {
"cached": 0,
"children": Array [
Object {
"children": Array [
Object {
- "children": Array [],
- "codegenNode": undefined,
- "isSelfClosing": false,
+ "content": "",
"loc": Object {
"end": Object {
- "column": 16,
+ "column": 15,
"line": 1,
- "offset": 15,
+ "offset": 14,
},
- "source": "<div ",
+ "source": "<!--",
"start": Object {
"column": 11,
"line": 1,
"offset": 10,
},
},
- "ns": 0,
- "props": Array [],
- "tag": "div",
- "tagType": 0,
- "type": 1,
+ "type": 3,
},
],
"codegenNode": undefined,
"isSelfClosing": false,
"loc": Object {
"end": Object {
- "column": 16,
+ "column": 15,
"line": 1,
- "offset": 15,
+ "offset": 14,
},
- "source": "<template><div ",
+ "source": "<template><!--",
"start": Object {
"column": 1,
"line": 1,
"imports": Array [],
"loc": Object {
"end": Object {
- "column": 16,
+ "column": 15,
"line": 1,
- "offset": 15,
+ "offset": 14,
},
- "source": "<template><div ",
+ "source": "<template><!--",
"start": Object {
"column": 1,
"line": 1,
}
`;
-exports[`compiler: parse Errors EOF_IN_TAG <template><div 1`] = `
+exports[`compiler: parse Errors EOF_IN_COMMENT <template><!--comment 1`] = `
Object {
"cached": 0,
"children": Array [
Object {
"children": Array [
Object {
- "children": Array [],
- "codegenNode": undefined,
- "isSelfClosing": false,
+ "content": "comment",
"loc": Object {
"end": Object {
- "column": 15,
+ "column": 22,
"line": 1,
- "offset": 14,
+ "offset": 21,
},
- "source": "<div",
+ "source": "<!--comment",
"start": Object {
"column": 11,
"line": 1,
"offset": 10,
},
},
- "ns": 0,
- "props": Array [],
- "tag": "div",
- "tagType": 0,
- "type": 1,
+ "type": 3,
},
],
"codegenNode": undefined,
"isSelfClosing": false,
"loc": Object {
"end": Object {
- "column": 15,
+ "column": 22,
"line": 1,
- "offset": 14,
+ "offset": 21,
},
- "source": "<template><div",
+ "source": "<template><!--comment",
"start": Object {
"column": 1,
"line": 1,
"imports": Array [],
"loc": Object {
"end": Object {
- "column": 15,
+ "column": 22,
"line": 1,
- "offset": 14,
+ "offset": 21,
},
- "source": "<template><div",
+ "source": "<template><!--comment",
"start": Object {
"column": 1,
"line": 1,
}
`;
-exports[`compiler: parse Errors EOF_IN_TAG <template><div id 1`] = `
+exports[`compiler: parse Errors EOF_IN_COMMENT <template><!abc 1`] = `
Object {
"cached": 0,
"children": Array [
Object {
"children": Array [
Object {
- "children": Array [],
- "codegenNode": undefined,
- "isSelfClosing": false,
+ "content": "abc",
"loc": Object {
"end": Object {
- "column": 19,
+ "column": 16,
"line": 1,
- "offset": 18,
+ "offset": 15,
},
- "source": "<div id ",
+ "source": "<!abc",
"start": Object {
"column": 11,
"line": 1,
"offset": 10,
},
},
- "ns": 0,
- "props": Array [
- Object {
- "loc": Object {
- "end": Object {
- "column": 18,
- "line": 1,
- "offset": 17,
- },
- "source": "id",
- "start": Object {
- "column": 16,
- "line": 1,
- "offset": 15,
- },
- },
- "name": "id",
- "type": 6,
- "value": undefined,
- },
- ],
- "tag": "div",
- "tagType": 0,
- "type": 1,
+ "type": 3,
},
],
"codegenNode": undefined,
"isSelfClosing": false,
"loc": Object {
"end": Object {
- "column": 19,
+ "column": 16,
"line": 1,
- "offset": 18,
+ "offset": 15,
},
- "source": "<template><div id ",
+ "source": "<template><!abc",
"start": Object {
"column": 1,
"line": 1,
"imports": Array [],
"loc": Object {
"end": Object {
- "column": 19,
+ "column": 16,
"line": 1,
- "offset": 18,
+ "offset": 15,
},
- "source": "<template><div id ",
+ "source": "<template><!abc",
"start": Object {
"column": 1,
"line": 1,
}
`;
-exports[`compiler: parse Errors EOF_IN_TAG <template><div id = 1`] = `
+exports[`compiler: parse Errors EOF_IN_SCRIPT_HTML_COMMENT_LIKE_TEXT <script><!--console.log('hello') 1`] = `
Object {
"cached": 0,
"children": Array [
Object {
"children": Array [
Object {
- "children": Array [],
- "codegenNode": undefined,
- "isSelfClosing": false,
+ "content": "<!--console.log('hello')",
"loc": Object {
"end": Object {
- "column": 20,
+ "column": 33,
"line": 1,
- "offset": 19,
+ "offset": 32,
},
- "source": "<div id =",
+ "source": "<!--console.log('hello')",
"start": Object {
- "column": 11,
+ "column": 9,
"line": 1,
- "offset": 10,
+ "offset": 8,
},
},
- "ns": 0,
- "props": Array [
- Object {
- "loc": Object {
- "end": Object {
- "column": 20,
- "line": 1,
- "offset": 19,
- },
- "source": "id =",
- "start": Object {
- "column": 16,
- "line": 1,
- "offset": 15,
- },
- },
- "name": "id",
- "type": 6,
- "value": undefined,
- },
- ],
- "tag": "div",
- "tagType": 0,
- "type": 1,
+ "type": 2,
},
],
"codegenNode": undefined,
"isSelfClosing": false,
"loc": Object {
"end": Object {
- "column": 20,
+ "column": 33,
"line": 1,
- "offset": 19,
+ "offset": 32,
},
- "source": "<template><div id =",
+ "source": "<script><!--console.log('hello')",
"start": Object {
"column": 1,
"line": 1,
},
"ns": 0,
"props": Array [],
- "tag": "template",
+ "tag": "script",
"tagType": 0,
"type": 1,
},
"imports": Array [],
"loc": Object {
"end": Object {
- "column": 20,
+ "column": 33,
"line": 1,
- "offset": 19,
+ "offset": 32,
},
- "source": "<template><div id =",
+ "source": "<script><!--console.log('hello')",
"start": Object {
"column": 1,
"line": 1,
}
`;
-exports[`compiler: parse Errors EOF_IN_TAG <template><div id 1`] = `
+exports[`compiler: parse Errors EOF_IN_SCRIPT_HTML_COMMENT_LIKE_TEXT <script>console.log('hello') 1`] = `
Object {
"cached": 0,
"children": Array [
Object {
"children": Array [
Object {
- "children": Array [],
- "codegenNode": undefined,
- "isSelfClosing": false,
+ "content": "console.log('hello')",
"loc": Object {
"end": Object {
- "column": 18,
+ "column": 29,
"line": 1,
- "offset": 17,
+ "offset": 28,
},
- "source": "<div id",
+ "source": "console.log('hello')",
"start": Object {
- "column": 11,
+ "column": 9,
"line": 1,
- "offset": 10,
+ "offset": 8,
},
},
- "ns": 0,
- "props": Array [
- Object {
- "loc": Object {
- "end": Object {
- "column": 18,
- "line": 1,
- "offset": 17,
- },
- "source": "id",
- "start": Object {
- "column": 16,
- "line": 1,
- "offset": 15,
- },
- },
- "name": "id",
- "type": 6,
- "value": undefined,
- },
- ],
- "tag": "div",
- "tagType": 0,
- "type": 1,
+ "type": 2,
},
],
"codegenNode": undefined,
"isSelfClosing": false,
"loc": Object {
"end": Object {
- "column": 18,
+ "column": 29,
"line": 1,
- "offset": 17,
+ "offset": 28,
},
- "source": "<template><div id",
+ "source": "<script>console.log('hello')",
"start": Object {
"column": 1,
"line": 1,
},
"ns": 0,
"props": Array [],
- "tag": "template",
+ "tag": "script",
"tagType": 0,
"type": 1,
},
"imports": Array [],
"loc": Object {
"end": Object {
- "column": 18,
+ "column": 29,
"line": 1,
- "offset": 17,
+ "offset": 28,
},
- "source": "<template><div id",
+ "source": "<script>console.log('hello')",
"start": Object {
"column": 1,
"line": 1,
}
`;
-exports[`compiler: parse Errors EOF_IN_TAG <template><div id="abc 1`] = `
+exports[`compiler: parse Errors EOF_IN_TAG <template><div 1`] = `
Object {
"cached": 0,
"children": Array [
"isSelfClosing": false,
"loc": Object {
"end": Object {
- "column": 23,
+ "column": 16,
"line": 1,
- "offset": 22,
+ "offset": 15,
},
- "source": "<div id=\\"abc",
+ "source": "<div ",
"start": Object {
"column": 11,
"line": 1,
},
},
"ns": 0,
- "props": Array [
- Object {
- "loc": Object {
- "end": Object {
- "column": 23,
- "line": 1,
- "offset": 22,
- },
- "source": "id=\\"abc",
- "start": Object {
- "column": 16,
- "line": 1,
- "offset": 15,
- },
- },
- "name": "id",
- "type": 6,
- "value": Object {
- "content": "abc",
- "loc": Object {
- "end": Object {
- "column": 23,
- "line": 1,
- "offset": 22,
- },
- "source": "\\"abc",
- "start": Object {
- "column": 19,
- "line": 1,
- "offset": 18,
- },
- },
- "type": 2,
- },
- },
- ],
+ "props": Array [],
"tag": "div",
"tagType": 0,
"type": 1,
"isSelfClosing": false,
"loc": Object {
"end": Object {
- "column": 23,
+ "column": 16,
"line": 1,
- "offset": 22,
+ "offset": 15,
},
- "source": "<template><div id=\\"abc",
+ "source": "<template><div ",
"start": Object {
"column": 1,
"line": 1,
"imports": Array [],
"loc": Object {
"end": Object {
- "column": 23,
+ "column": 16,
"line": 1,
- "offset": 22,
+ "offset": 15,
},
- "source": "<template><div id=\\"abc",
+ "source": "<template><div ",
"start": Object {
"column": 1,
"line": 1,
}
`;
-exports[`compiler: parse Errors EOF_IN_TAG <template><div id="abc" 1`] = `
+exports[`compiler: parse Errors EOF_IN_TAG <template><div 1`] = `
Object {
"cached": 0,
"children": Array [
"isSelfClosing": false,
"loc": Object {
"end": Object {
- "column": 24,
+ "column": 15,
"line": 1,
- "offset": 23,
+ "offset": 14,
},
- "source": "<div id=\\"abc\\"",
+ "source": "<div",
"start": Object {
"column": 11,
"line": 1,
},
},
"ns": 0,
- "props": Array [
- Object {
- "loc": Object {
- "end": Object {
- "column": 24,
- "line": 1,
- "offset": 23,
- },
- "source": "id=\\"abc\\"",
- "start": Object {
- "column": 16,
- "line": 1,
- "offset": 15,
- },
- },
- "name": "id",
- "type": 6,
- "value": Object {
- "content": "abc",
- "loc": Object {
- "end": Object {
- "column": 24,
- "line": 1,
- "offset": 23,
- },
- "source": "\\"abc\\"",
- "start": Object {
- "column": 19,
- "line": 1,
- "offset": 18,
- },
- },
- "type": 2,
- },
- },
- ],
+ "props": Array [],
"tag": "div",
"tagType": 0,
"type": 1,
"isSelfClosing": false,
"loc": Object {
"end": Object {
- "column": 24,
+ "column": 15,
"line": 1,
- "offset": 23,
+ "offset": 14,
},
- "source": "<template><div id=\\"abc\\"",
+ "source": "<template><div",
"start": Object {
"column": 1,
"line": 1,
"imports": Array [],
"loc": Object {
"end": Object {
- "column": 24,
+ "column": 15,
"line": 1,
- "offset": 23,
+ "offset": 14,
},
- "source": "<template><div id=\\"abc\\"",
+ "source": "<template><div",
"start": Object {
"column": 1,
"line": 1,
}
`;
-exports[`compiler: parse Errors EOF_IN_TAG <template><div id="abc"/ 1`] = `
+exports[`compiler: parse Errors EOF_IN_TAG <template><div id 1`] = `
Object {
"cached": 0,
"children": Array [
"isSelfClosing": false,
"loc": Object {
"end": Object {
- "column": 25,
+ "column": 19,
"line": 1,
- "offset": 24,
+ "offset": 18,
},
- "source": "<div id=\\"abc\\"/",
+ "source": "<div id ",
"start": Object {
"column": 11,
"line": 1,
Object {
"loc": Object {
"end": Object {
- "column": 24,
+ "column": 18,
"line": 1,
- "offset": 23,
+ "offset": 17,
},
- "source": "id=\\"abc\\"",
+ "source": "id",
"start": Object {
"column": 16,
"line": 1,
},
"name": "id",
"type": 6,
- "value": Object {
- "content": "abc",
- "loc": Object {
- "end": Object {
- "column": 24,
- "line": 1,
- "offset": 23,
- },
- "source": "\\"abc\\"",
- "start": Object {
- "column": 19,
- "line": 1,
- "offset": 18,
- },
- },
- "type": 2,
- },
+ "value": undefined,
},
],
"tag": "div",
"isSelfClosing": false,
"loc": Object {
"end": Object {
- "column": 25,
+ "column": 19,
"line": 1,
- "offset": 24,
+ "offset": 18,
},
- "source": "<template><div id=\\"abc\\"/",
+ "source": "<template><div id ",
"start": Object {
"column": 1,
"line": 1,
"imports": Array [],
"loc": Object {
"end": Object {
- "column": 25,
+ "column": 19,
"line": 1,
- "offset": 24,
+ "offset": 18,
},
- "source": "<template><div id=\\"abc\\"/",
+ "source": "<template><div id ",
"start": Object {
"column": 1,
"line": 1,
}
`;
-exports[`compiler: parse Errors EOF_IN_TAG <template><div id='abc 1`] = `
+exports[`compiler: parse Errors EOF_IN_TAG <template><div id = 1`] = `
Object {
"cached": 0,
"children": Array [
"isSelfClosing": false,
"loc": Object {
"end": Object {
- "column": 23,
+ "column": 20,
"line": 1,
- "offset": 22,
+ "offset": 19,
},
- "source": "<div id='abc",
+ "source": "<div id =",
"start": Object {
"column": 11,
"line": 1,
Object {
"loc": Object {
"end": Object {
- "column": 23,
+ "column": 20,
"line": 1,
- "offset": 22,
+ "offset": 19,
},
- "source": "id='abc",
+ "source": "id =",
"start": Object {
"column": 16,
- "line": 1,
- "offset": 15,
- },
- },
- "name": "id",
- "type": 6,
- "value": Object {
- "content": "abc",
- "loc": Object {
- "end": Object {
- "column": 23,
- "line": 1,
- "offset": 22,
- },
- "source": "'abc",
- "start": Object {
- "column": 19,
- "line": 1,
- "offset": 18,
- },
+ "line": 1,
+ "offset": 15,
},
- "type": 2,
},
+ "name": "id",
+ "type": 6,
+ "value": undefined,
},
],
"tag": "div",
"isSelfClosing": false,
"loc": Object {
"end": Object {
- "column": 23,
+ "column": 20,
"line": 1,
- "offset": 22,
+ "offset": 19,
},
- "source": "<template><div id='abc",
+ "source": "<template><div id =",
"start": Object {
"column": 1,
"line": 1,
"imports": Array [],
"loc": Object {
"end": Object {
- "column": 23,
+ "column": 20,
"line": 1,
- "offset": 22,
+ "offset": 19,
},
- "source": "<template><div id='abc",
+ "source": "<template><div id =",
"start": Object {
"column": 1,
"line": 1,
}
`;
-exports[`compiler: parse Errors EOF_IN_TAG <template><div id='abc' 1`] = `
+exports[`compiler: parse Errors EOF_IN_TAG <template><div id 1`] = `
Object {
"cached": 0,
"children": Array [
"isSelfClosing": false,
"loc": Object {
"end": Object {
- "column": 24,
+ "column": 18,
"line": 1,
- "offset": 23,
+ "offset": 17,
},
- "source": "<div id='abc'",
+ "source": "<div id",
"start": Object {
"column": 11,
"line": 1,
Object {
"loc": Object {
"end": Object {
- "column": 24,
+ "column": 18,
"line": 1,
- "offset": 23,
+ "offset": 17,
},
- "source": "id='abc'",
+ "source": "id",
"start": Object {
"column": 16,
"line": 1,
},
"name": "id",
"type": 6,
- "value": Object {
- "content": "abc",
- "loc": Object {
- "end": Object {
- "column": 24,
- "line": 1,
- "offset": 23,
- },
- "source": "'abc'",
- "start": Object {
- "column": 19,
- "line": 1,
- "offset": 18,
- },
- },
- "type": 2,
- },
+ "value": undefined,
},
],
"tag": "div",
"isSelfClosing": false,
"loc": Object {
"end": Object {
- "column": 24,
+ "column": 18,
"line": 1,
- "offset": 23,
+ "offset": 17,
},
- "source": "<template><div id='abc'",
+ "source": "<template><div id",
"start": Object {
"column": 1,
"line": 1,
"imports": Array [],
"loc": Object {
"end": Object {
- "column": 24,
+ "column": 18,
"line": 1,
- "offset": 23,
+ "offset": 17,
},
- "source": "<template><div id='abc'",
+ "source": "<template><div id",
"start": Object {
"column": 1,
"line": 1,
}
`;
-exports[`compiler: parse Errors EOF_IN_TAG <template><div id='abc'/ 1`] = `
+exports[`compiler: parse Errors EOF_IN_TAG <template><div id="abc 1`] = `
Object {
"cached": 0,
"children": Array [
"isSelfClosing": false,
"loc": Object {
"end": Object {
- "column": 25,
+ "column": 23,
"line": 1,
- "offset": 24,
+ "offset": 22,
},
- "source": "<div id='abc'/",
+ "source": "<div id=\\"abc",
"start": Object {
"column": 11,
"line": 1,
Object {
"loc": Object {
"end": Object {
- "column": 24,
+ "column": 23,
"line": 1,
- "offset": 23,
+ "offset": 22,
},
- "source": "id='abc'",
+ "source": "id=\\"abc",
"start": Object {
"column": 16,
"line": 1,
"content": "abc",
"loc": Object {
"end": Object {
- "column": 24,
+ "column": 23,
"line": 1,
- "offset": 23,
+ "offset": 22,
},
- "source": "'abc'",
+ "source": "\\"abc",
"start": Object {
"column": 19,
"line": 1,
"isSelfClosing": false,
"loc": Object {
"end": Object {
- "column": 25,
+ "column": 23,
"line": 1,
- "offset": 24,
+ "offset": 22,
},
- "source": "<template><div id='abc'/",
+ "source": "<template><div id=\\"abc",
"start": Object {
"column": 1,
"line": 1,
"imports": Array [],
"loc": Object {
"end": Object {
- "column": 25,
+ "column": 23,
"line": 1,
- "offset": 24,
+ "offset": 22,
},
- "source": "<template><div id='abc'/",
+ "source": "<template><div id=\\"abc",
"start": Object {
"column": 1,
"line": 1,
}
`;
-exports[`compiler: parse Errors EOF_IN_TAG <template><div id=abc / 1`] = `
+exports[`compiler: parse Errors EOF_IN_TAG <template><div id="abc" 1`] = `
Object {
"cached": 0,
"children": Array [
"line": 1,
"offset": 23,
},
- "source": "<div id=abc /",
+ "source": "<div id=\\"abc\\"",
"start": Object {
"column": 11,
"line": 1,
Object {
"loc": Object {
"end": Object {
- "column": 22,
+ "column": 24,
"line": 1,
- "offset": 21,
+ "offset": 23,
},
- "source": "id=abc",
+ "source": "id=\\"abc\\"",
"start": Object {
"column": 16,
"line": 1,
"content": "abc",
"loc": Object {
"end": Object {
- "column": 22,
+ "column": 24,
"line": 1,
- "offset": 21,
+ "offset": 23,
},
- "source": "abc",
+ "source": "\\"abc\\"",
"start": Object {
"column": 19,
"line": 1,
"line": 1,
"offset": 23,
},
- "source": "<template><div id=abc /",
+ "source": "<template><div id=\\"abc\\"",
"start": Object {
"column": 1,
"line": 1,
"line": 1,
"offset": 23,
},
- "source": "<template><div id=abc /",
+ "source": "<template><div id=\\"abc\\"",
"start": Object {
"column": 1,
"line": 1,
}
`;
-exports[`compiler: parse Errors EOF_IN_TAG <template><div id=abc 1`] = `
+exports[`compiler: parse Errors EOF_IN_TAG <template><div id="abc"/ 1`] = `
Object {
"cached": 0,
"children": Array [
"isSelfClosing": false,
"loc": Object {
"end": Object {
- "column": 22,
+ "column": 25,
"line": 1,
- "offset": 21,
+ "offset": 24,
},
- "source": "<div id=abc",
+ "source": "<div id=\\"abc\\"/",
"start": Object {
"column": 11,
"line": 1,
Object {
"loc": Object {
"end": Object {
- "column": 22,
+ "column": 24,
"line": 1,
- "offset": 21,
+ "offset": 23,
},
- "source": "id=abc",
+ "source": "id=\\"abc\\"",
"start": Object {
"column": 16,
"line": 1,
"content": "abc",
"loc": Object {
"end": Object {
- "column": 22,
+ "column": 24,
"line": 1,
- "offset": 21,
+ "offset": 23,
},
- "source": "abc",
+ "source": "\\"abc\\"",
"start": Object {
"column": 19,
"line": 1,
"isSelfClosing": false,
"loc": Object {
"end": Object {
- "column": 22,
- "line": 1,
- "offset": 21,
- },
- "source": "<template><div id=abc",
- "start": Object {
- "column": 1,
- "line": 1,
- "offset": 0,
- },
- },
- "ns": 0,
- "props": Array [],
- "tag": "template",
- "tagType": 0,
- "type": 1,
- },
- ],
- "codegenNode": undefined,
- "components": Array [],
- "directives": Array [],
- "helpers": Array [],
- "hoists": Array [],
- "imports": Array [],
- "loc": Object {
- "end": Object {
- "column": 22,
- "line": 1,
- "offset": 21,
- },
- "source": "<template><div id=abc",
- "start": Object {
- "column": 1,
- "line": 1,
- "offset": 0,
- },
- },
- "temps": 0,
- "type": 0,
-}
-`;
-
-exports[`compiler: parse Errors INCORRECTLY_CLOSED_COMMENT <template><!--comment--!></template> 1`] = `
-Object {
- "cached": 0,
- "children": Array [
- Object {
- "children": Array [
- Object {
- "content": "comment",
- "loc": Object {
- "end": Object {
- "column": 26,
- "line": 1,
- "offset": 25,
- },
- "source": "<!--comment--!>",
- "start": Object {
- "column": 11,
- "line": 1,
- "offset": 10,
- },
- },
- "type": 3,
- },
- ],
- "codegenNode": undefined,
- "isSelfClosing": false,
- "loc": Object {
- "end": Object {
- "column": 37,
+ "column": 25,
"line": 1,
- "offset": 36,
+ "offset": 24,
},
- "source": "<template><!--comment--!></template>",
+ "source": "<template><div id=\\"abc\\"/",
"start": Object {
"column": 1,
"line": 1,
"imports": Array [],
"loc": Object {
"end": Object {
- "column": 37,
- "line": 1,
- "offset": 36,
- },
- "source": "<template><!--comment--!></template>",
- "start": Object {
- "column": 1,
- "line": 1,
- "offset": 0,
- },
- },
- "temps": 0,
- "type": 0,
-}
-`;
-
-exports[`compiler: parse Errors INCORRECTLY_OPENED_COMMENT <!DOCTYPE html> 1`] = `
-Object {
- "cached": 0,
- "children": Array [
- Object {
- "content": "DOCTYPE html",
- "loc": Object {
- "end": Object {
- "column": 16,
- "line": 1,
- "offset": 15,
- },
- "source": "<!DOCTYPE html>",
- "start": Object {
- "column": 1,
- "line": 1,
- "offset": 0,
- },
- },
- "type": 3,
- },
- ],
- "codegenNode": undefined,
- "components": Array [],
- "directives": Array [],
- "helpers": Array [],
- "hoists": Array [],
- "imports": Array [],
- "loc": Object {
- "end": Object {
- "column": 16,
+ "column": 25,
"line": 1,
- "offset": 15,
+ "offset": 24,
},
- "source": "<!DOCTYPE html>",
+ "source": "<template><div id=\\"abc\\"/",
"start": Object {
"column": 1,
"line": 1,
}
`;
-exports[`compiler: parse Errors INCORRECTLY_OPENED_COMMENT <template><!></template> 1`] = `
+exports[`compiler: parse Errors EOF_IN_TAG <template><div id='abc 1`] = `
Object {
"cached": 0,
"children": Array [
Object {
"children": Array [
Object {
- "content": "",
+ "children": Array [],
+ "codegenNode": undefined,
+ "isSelfClosing": false,
"loc": Object {
"end": Object {
- "column": 14,
+ "column": 23,
"line": 1,
- "offset": 13,
+ "offset": 22,
},
- "source": "<!>",
+ "source": "<div id='abc",
"start": Object {
"column": 11,
"line": 1,
"offset": 10,
},
},
- "type": 3,
+ "ns": 0,
+ "props": Array [
+ Object {
+ "loc": Object {
+ "end": Object {
+ "column": 23,
+ "line": 1,
+ "offset": 22,
+ },
+ "source": "id='abc",
+ "start": Object {
+ "column": 16,
+ "line": 1,
+ "offset": 15,
+ },
+ },
+ "name": "id",
+ "type": 6,
+ "value": Object {
+ "content": "abc",
+ "loc": Object {
+ "end": Object {
+ "column": 23,
+ "line": 1,
+ "offset": 22,
+ },
+ "source": "'abc",
+ "start": Object {
+ "column": 19,
+ "line": 1,
+ "offset": 18,
+ },
+ },
+ "type": 2,
+ },
+ },
+ ],
+ "tag": "div",
+ "tagType": 0,
+ "type": 1,
},
],
"codegenNode": undefined,
"isSelfClosing": false,
"loc": Object {
"end": Object {
- "column": 25,
+ "column": 23,
"line": 1,
- "offset": 24,
+ "offset": 22,
},
- "source": "<template><!></template>",
+ "source": "<template><div id='abc",
"start": Object {
"column": 1,
"line": 1,
"imports": Array [],
"loc": Object {
"end": Object {
- "column": 25,
+ "column": 23,
"line": 1,
- "offset": 24,
+ "offset": 22,
},
- "source": "<template><!></template>",
+ "source": "<template><div id='abc",
"start": Object {
"column": 1,
"line": 1,
}
`;
-exports[`compiler: parse Errors INCORRECTLY_OPENED_COMMENT <template><!-></template> 1`] = `
+exports[`compiler: parse Errors EOF_IN_TAG <template><div id='abc' 1`] = `
Object {
"cached": 0,
"children": Array [
Object {
"children": Array [
Object {
- "content": "-",
+ "children": Array [],
+ "codegenNode": undefined,
+ "isSelfClosing": false,
"loc": Object {
"end": Object {
- "column": 15,
+ "column": 24,
"line": 1,
- "offset": 14,
+ "offset": 23,
},
- "source": "<!->",
+ "source": "<div id='abc'",
"start": Object {
"column": 11,
"line": 1,
"offset": 10,
},
},
- "type": 3,
+ "ns": 0,
+ "props": Array [
+ Object {
+ "loc": Object {
+ "end": Object {
+ "column": 24,
+ "line": 1,
+ "offset": 23,
+ },
+ "source": "id='abc'",
+ "start": Object {
+ "column": 16,
+ "line": 1,
+ "offset": 15,
+ },
+ },
+ "name": "id",
+ "type": 6,
+ "value": Object {
+ "content": "abc",
+ "loc": Object {
+ "end": Object {
+ "column": 24,
+ "line": 1,
+ "offset": 23,
+ },
+ "source": "'abc'",
+ "start": Object {
+ "column": 19,
+ "line": 1,
+ "offset": 18,
+ },
+ },
+ "type": 2,
+ },
+ },
+ ],
+ "tag": "div",
+ "tagType": 0,
+ "type": 1,
},
],
"codegenNode": undefined,
"isSelfClosing": false,
"loc": Object {
"end": Object {
- "column": 26,
+ "column": 24,
"line": 1,
- "offset": 25,
+ "offset": 23,
},
- "source": "<template><!-></template>",
+ "source": "<template><div id='abc'",
"start": Object {
"column": 1,
"line": 1,
"imports": Array [],
"loc": Object {
"end": Object {
- "column": 26,
+ "column": 24,
"line": 1,
- "offset": 25,
+ "offset": 23,
},
- "source": "<template><!-></template>",
+ "source": "<template><div id='abc'",
"start": Object {
"column": 1,
"line": 1,
}
`;
-exports[`compiler: parse Errors INCORRECTLY_OPENED_COMMENT <template><!ELEMENT br EMPTY></template> 1`] = `
+exports[`compiler: parse Errors EOF_IN_TAG <template><div id='abc'/ 1`] = `
Object {
"cached": 0,
"children": Array [
Object {
"children": Array [
Object {
- "content": "ELEMENT br EMPTY",
+ "children": Array [],
+ "codegenNode": undefined,
+ "isSelfClosing": false,
"loc": Object {
"end": Object {
- "column": 30,
+ "column": 25,
"line": 1,
- "offset": 29,
+ "offset": 24,
},
- "source": "<!ELEMENT br EMPTY>",
+ "source": "<div id='abc'/",
"start": Object {
"column": 11,
"line": 1,
"offset": 10,
},
},
- "type": 3,
+ "ns": 0,
+ "props": Array [
+ Object {
+ "loc": Object {
+ "end": Object {
+ "column": 24,
+ "line": 1,
+ "offset": 23,
+ },
+ "source": "id='abc'",
+ "start": Object {
+ "column": 16,
+ "line": 1,
+ "offset": 15,
+ },
+ },
+ "name": "id",
+ "type": 6,
+ "value": Object {
+ "content": "abc",
+ "loc": Object {
+ "end": Object {
+ "column": 24,
+ "line": 1,
+ "offset": 23,
+ },
+ "source": "'abc'",
+ "start": Object {
+ "column": 19,
+ "line": 1,
+ "offset": 18,
+ },
+ },
+ "type": 2,
+ },
+ },
+ ],
+ "tag": "div",
+ "tagType": 0,
+ "type": 1,
},
],
"codegenNode": undefined,
"isSelfClosing": false,
"loc": Object {
"end": Object {
- "column": 41,
+ "column": 25,
"line": 1,
- "offset": 40,
+ "offset": 24,
},
- "source": "<template><!ELEMENT br EMPTY></template>",
+ "source": "<template><div id='abc'/",
"start": Object {
"column": 1,
"line": 1,
"imports": Array [],
"loc": Object {
"end": Object {
- "column": 41,
+ "column": 25,
"line": 1,
- "offset": 40,
+ "offset": 24,
},
- "source": "<template><!ELEMENT br EMPTY></template>",
+ "source": "<template><div id='abc'/",
"start": Object {
"column": 1,
"line": 1,
}
`;
-exports[`compiler: parse Errors INVALID_FIRST_CHARACTER_OF_TAG_NAME <template></�></template> 1`] = `
+exports[`compiler: parse Errors EOF_IN_TAG <template><div id=abc / 1`] = `
Object {
"cached": 0,
"children": Array [
Object {
"children": Array [
Object {
- "content": "�",
+ "children": Array [],
+ "codegenNode": undefined,
+ "isSelfClosing": false,
"loc": Object {
"end": Object {
- "column": 15,
+ "column": 24,
"line": 1,
- "offset": 14,
+ "offset": 23,
},
- "source": "</�>",
+ "source": "<div id=abc /",
"start": Object {
"column": 11,
"line": 1,
"offset": 10,
},
},
- "type": 3,
+ "ns": 0,
+ "props": Array [
+ Object {
+ "loc": Object {
+ "end": Object {
+ "column": 22,
+ "line": 1,
+ "offset": 21,
+ },
+ "source": "id=abc",
+ "start": Object {
+ "column": 16,
+ "line": 1,
+ "offset": 15,
+ },
+ },
+ "name": "id",
+ "type": 6,
+ "value": Object {
+ "content": "abc",
+ "loc": Object {
+ "end": Object {
+ "column": 22,
+ "line": 1,
+ "offset": 21,
+ },
+ "source": "abc",
+ "start": Object {
+ "column": 19,
+ "line": 1,
+ "offset": 18,
+ },
+ },
+ "type": 2,
+ },
+ },
+ ],
+ "tag": "div",
+ "tagType": 0,
+ "type": 1,
},
],
"codegenNode": undefined,
"isSelfClosing": false,
"loc": Object {
"end": Object {
- "column": 26,
+ "column": 24,
"line": 1,
- "offset": 25,
+ "offset": 23,
},
- "source": "<template></�></template>",
+ "source": "<template><div id=abc /",
"start": Object {
"column": 1,
"line": 1,
"imports": Array [],
"loc": Object {
"end": Object {
- "column": 26,
+ "column": 24,
"line": 1,
- "offset": 25,
+ "offset": 23,
},
- "source": "<template></�></template>",
+ "source": "<template><div id=abc /",
"start": Object {
"column": 1,
"line": 1,
}
`;
-exports[`compiler: parse Errors INVALID_FIRST_CHARACTER_OF_TAG_NAME <template><�></template> 1`] = `
+exports[`compiler: parse Errors EOF_IN_TAG <template><div id=abc 1`] = `
Object {
"cached": 0,
"children": Array [
Object {
"children": Array [
Object {
- "content": "<�>",
+ "children": Array [],
+ "codegenNode": undefined,
+ "isSelfClosing": false,
"loc": Object {
"end": Object {
- "column": 14,
+ "column": 22,
"line": 1,
- "offset": 13,
+ "offset": 21,
},
- "source": "<�>",
+ "source": "<div id=abc",
"start": Object {
"column": 11,
"line": 1,
"offset": 10,
},
},
- "type": 2,
+ "ns": 0,
+ "props": Array [
+ Object {
+ "loc": Object {
+ "end": Object {
+ "column": 22,
+ "line": 1,
+ "offset": 21,
+ },
+ "source": "id=abc",
+ "start": Object {
+ "column": 16,
+ "line": 1,
+ "offset": 15,
+ },
+ },
+ "name": "id",
+ "type": 6,
+ "value": Object {
+ "content": "abc",
+ "loc": Object {
+ "end": Object {
+ "column": 22,
+ "line": 1,
+ "offset": 21,
+ },
+ "source": "abc",
+ "start": Object {
+ "column": 19,
+ "line": 1,
+ "offset": 18,
+ },
+ },
+ "type": 2,
+ },
+ },
+ ],
+ "tag": "div",
+ "tagType": 0,
+ "type": 1,
},
],
"codegenNode": undefined,
"isSelfClosing": false,
"loc": Object {
"end": Object {
- "column": 25,
+ "column": 22,
"line": 1,
- "offset": 24,
+ "offset": 21,
},
- "source": "<template><�></template>",
+ "source": "<template><div id=abc",
"start": Object {
"column": 1,
"line": 1,
"imports": Array [],
"loc": Object {
"end": Object {
- "column": 25,
+ "column": 22,
"line": 1,
- "offset": 24,
+ "offset": 21,
},
- "source": "<template><�></template>",
+ "source": "<template><div id=abc",
"start": Object {
"column": 1,
"line": 1,
}
`;
-exports[`compiler: parse Errors INVALID_FIRST_CHARACTER_OF_TAG_NAME <template>{{a < b}}</template> 1`] = `
+exports[`compiler: parse Errors INCORRECTLY_CLOSED_COMMENT <template><!--comment--!></template> 1`] = `
Object {
"cached": 0,
"children": Array [
Object {
"children": Array [
Object {
- "content": Object {
- "content": "a < b",
- "isConstant": false,
- "isStatic": false,
- "loc": Object {
- "end": Object {
- "column": 18,
- "line": 1,
- "offset": 17,
- },
- "source": "a < b",
- "start": Object {
- "column": 13,
- "line": 1,
- "offset": 12,
- },
- },
- "type": 4,
- },
+ "content": "comment",
"loc": Object {
"end": Object {
- "column": 20,
+ "column": 26,
"line": 1,
- "offset": 19,
+ "offset": 25,
},
- "source": "{{a < b}}",
+ "source": "<!--comment--!>",
"start": Object {
"column": 11,
"line": 1,
"offset": 10,
},
},
- "type": 5,
+ "type": 3,
},
],
"codegenNode": undefined,
"isSelfClosing": false,
"loc": Object {
"end": Object {
- "column": 31,
+ "column": 37,
"line": 1,
- "offset": 30,
+ "offset": 36,
},
- "source": "<template>{{a < b}}</template>",
+ "source": "<template><!--comment--!></template>",
"start": Object {
"column": 1,
"line": 1,
"imports": Array [],
"loc": Object {
"end": Object {
- "column": 31,
+ "column": 37,
"line": 1,
- "offset": 30,
+ "offset": 36,
},
- "source": "<template>{{a < b}}</template>",
+ "source": "<template><!--comment--!></template>",
"start": Object {
"column": 1,
"line": 1,
}
`;
-exports[`compiler: parse Errors INVALID_FIRST_CHARACTER_OF_TAG_NAME <template>a < b</template> 1`] = `
+exports[`compiler: parse Errors INCORRECTLY_OPENED_COMMENT <!DOCTYPE html> 1`] = `
Object {
"cached": 0,
"children": Array [
Object {
- "children": Array [
- Object {
- "content": "a < b",
- "loc": Object {
- "end": Object {
- "column": 16,
- "line": 1,
- "offset": 15,
- },
- "source": "a < b",
- "start": Object {
- "column": 11,
- "line": 1,
- "offset": 10,
- },
- },
- "type": 2,
- },
- ],
- "codegenNode": undefined,
- "isSelfClosing": false,
+ "content": "DOCTYPE html",
"loc": Object {
"end": Object {
- "column": 27,
+ "column": 16,
"line": 1,
- "offset": 26,
+ "offset": 15,
},
- "source": "<template>a < b</template>",
+ "source": "<!DOCTYPE html>",
"start": Object {
"column": 1,
"line": 1,
"offset": 0,
},
},
- "ns": 0,
- "props": Array [],
- "tag": "template",
- "tagType": 0,
- "type": 1,
+ "type": 3,
},
],
"codegenNode": undefined,
"imports": Array [],
"loc": Object {
"end": Object {
- "column": 27,
+ "column": 16,
"line": 1,
- "offset": 26,
+ "offset": 15,
},
- "source": "<template>a < b</template>",
+ "source": "<!DOCTYPE html>",
"start": Object {
"column": 1,
"line": 1,
}
`;
-exports[`compiler: parse Errors INVALID_FIRST_CHARACTER_OF_TAG_NAME <template>a </ b</template> 1`] = `
+exports[`compiler: parse Errors INCORRECTLY_OPENED_COMMENT <template><!></template> 1`] = `
Object {
"cached": 0,
"children": Array [
Object {
"children": Array [
Object {
- "content": "a ",
+ "content": "",
"loc": Object {
"end": Object {
- "column": 13,
+ "column": 14,
"line": 1,
- "offset": 12,
+ "offset": 13,
},
- "source": "a ",
+ "source": "<!>",
"start": Object {
"column": 11,
"line": 1,
"offset": 10,
},
},
- "type": 2,
- },
- Object {
- "content": " b</template",
- "loc": Object {
- "end": Object {
- "column": 28,
- "line": 1,
- "offset": 27,
- },
- "source": "</ b</template>",
- "start": Object {
- "column": 13,
- "line": 1,
- "offset": 12,
- },
- },
"type": 3,
},
],
"isSelfClosing": false,
"loc": Object {
"end": Object {
- "column": 28,
+ "column": 25,
"line": 1,
- "offset": 27,
+ "offset": 24,
},
- "source": "<template>a </ b</template>",
+ "source": "<template><!></template>",
"start": Object {
"column": 1,
"line": 1,
"imports": Array [],
"loc": Object {
"end": Object {
- "column": 28,
+ "column": 25,
"line": 1,
- "offset": 27,
+ "offset": 24,
},
- "source": "<template>a </ b</template>",
+ "source": "<template><!></template>",
"start": Object {
"column": 1,
"line": 1,
}
`;
-exports[`compiler: parse Errors MISSING_ATTRIBUTE_VALUE <template><div id= /></div></template> 1`] = `
+exports[`compiler: parse Errors INCORRECTLY_OPENED_COMMENT <template><!-></template> 1`] = `
Object {
"cached": 0,
"children": Array [
Object {
"children": Array [
Object {
- "children": Array [],
- "codegenNode": undefined,
- "isSelfClosing": false,
+ "content": "-",
"loc": Object {
"end": Object {
- "column": 28,
+ "column": 15,
"line": 1,
- "offset": 27,
+ "offset": 14,
},
- "source": "<div id= /></div>",
+ "source": "<!->",
"start": Object {
"column": 11,
"line": 1,
"offset": 10,
},
},
- "ns": 0,
- "props": Array [
- Object {
- "loc": Object {
- "end": Object {
- "column": 21,
- "line": 1,
- "offset": 20,
- },
- "source": "id= /",
- "start": Object {
- "column": 16,
- "line": 1,
- "offset": 15,
- },
- },
- "name": "id",
- "type": 6,
- "value": Object {
- "content": "/",
- "loc": Object {
- "end": Object {
- "column": 21,
- "line": 1,
- "offset": 20,
- },
- "source": "/",
- "start": Object {
- "column": 20,
- "line": 1,
- "offset": 19,
- },
- },
- "type": 2,
- },
- },
- ],
- "tag": "div",
- "tagType": 0,
- "type": 1,
+ "type": 3,
},
],
"codegenNode": undefined,
"isSelfClosing": false,
"loc": Object {
"end": Object {
- "column": 39,
+ "column": 26,
"line": 1,
- "offset": 38,
+ "offset": 25,
},
- "source": "<template><div id= /></div></template>",
+ "source": "<template><!-></template>",
"start": Object {
"column": 1,
"line": 1,
"imports": Array [],
"loc": Object {
"end": Object {
- "column": 39,
+ "column": 26,
"line": 1,
- "offset": 38,
+ "offset": 25,
},
- "source": "<template><div id= /></div></template>",
+ "source": "<template><!-></template>",
"start": Object {
"column": 1,
"line": 1,
}
`;
-exports[`compiler: parse Errors MISSING_ATTRIBUTE_VALUE <template><div id= ></div></template> 1`] = `
+exports[`compiler: parse Errors INCORRECTLY_OPENED_COMMENT <template><!ELEMENT br EMPTY></template> 1`] = `
Object {
"cached": 0,
"children": Array [
Object {
"children": Array [
Object {
- "children": Array [],
- "codegenNode": undefined,
- "isSelfClosing": false,
+ "content": "ELEMENT br EMPTY",
"loc": Object {
"end": Object {
- "column": 27,
+ "column": 30,
"line": 1,
- "offset": 26,
+ "offset": 29,
},
- "source": "<div id= ></div>",
+ "source": "<!ELEMENT br EMPTY>",
"start": Object {
"column": 11,
"line": 1,
"offset": 10,
},
},
- "ns": 0,
- "props": Array [
- Object {
- "loc": Object {
- "end": Object {
- "column": 20,
- "line": 1,
- "offset": 19,
- },
- "source": "id= ",
- "start": Object {
- "column": 16,
- "line": 1,
- "offset": 15,
- },
- },
- "name": "id",
- "type": 6,
- "value": undefined,
- },
- ],
- "tag": "div",
- "tagType": 0,
- "type": 1,
+ "type": 3,
},
],
"codegenNode": undefined,
"isSelfClosing": false,
"loc": Object {
"end": Object {
- "column": 38,
+ "column": 41,
"line": 1,
- "offset": 37,
+ "offset": 40,
},
- "source": "<template><div id= ></div></template>",
+ "source": "<template><!ELEMENT br EMPTY></template>",
"start": Object {
"column": 1,
"line": 1,
"imports": Array [],
"loc": Object {
"end": Object {
- "column": 38,
+ "column": 41,
"line": 1,
- "offset": 37,
+ "offset": 40,
},
- "source": "<template><div id= ></div></template>",
+ "source": "<template><!ELEMENT br EMPTY></template>",
"start": Object {
"column": 1,
"line": 1,
}
`;
-exports[`compiler: parse Errors MISSING_ATTRIBUTE_VALUE <template><div id=></div></template> 1`] = `
+exports[`compiler: parse Errors INVALID_FIRST_CHARACTER_OF_TAG_NAME <template></�></template> 1`] = `
Object {
"cached": 0,
"children": Array [
Object {
"children": Array [
Object {
- "children": Array [],
- "codegenNode": undefined,
- "isSelfClosing": false,
+ "content": "�",
"loc": Object {
"end": Object {
- "column": 26,
+ "column": 15,
"line": 1,
- "offset": 25,
+ "offset": 14,
},
- "source": "<div id=></div>",
+ "source": "</�>",
"start": Object {
"column": 11,
"line": 1,
"offset": 10,
},
},
- "ns": 0,
- "props": Array [
- Object {
- "loc": Object {
- "end": Object {
- "column": 19,
- "line": 1,
- "offset": 18,
- },
- "source": "id=",
- "start": Object {
- "column": 16,
- "line": 1,
- "offset": 15,
- },
- },
- "name": "id",
- "type": 6,
- "value": undefined,
- },
- ],
- "tag": "div",
- "tagType": 0,
- "type": 1,
+ "type": 3,
},
],
"codegenNode": undefined,
"isSelfClosing": false,
"loc": Object {
"end": Object {
- "column": 37,
+ "column": 26,
"line": 1,
- "offset": 36,
+ "offset": 25,
},
- "source": "<template><div id=></div></template>",
+ "source": "<template></�></template>",
"start": Object {
"column": 1,
"line": 1,
"imports": Array [],
"loc": Object {
"end": Object {
- "column": 37,
+ "column": 26,
"line": 1,
- "offset": 36,
+ "offset": 25,
},
- "source": "<template><div id=></div></template>",
+ "source": "<template></�></template>",
"start": Object {
"column": 1,
"line": 1,
}
`;
-exports[`compiler: parse Errors MISSING_END_TAG_NAME <template></></template> 1`] = `
+exports[`compiler: parse Errors INVALID_FIRST_CHARACTER_OF_TAG_NAME <template><�></template> 1`] = `
Object {
"cached": 0,
"children": Array [
Object {
- "children": Array [],
+ "children": Array [
+ Object {
+ "content": "<�>",
+ "loc": Object {
+ "end": Object {
+ "column": 14,
+ "line": 1,
+ "offset": 13,
+ },
+ "source": "<�>",
+ "start": Object {
+ "column": 11,
+ "line": 1,
+ "offset": 10,
+ },
+ },
+ "type": 2,
+ },
+ ],
"codegenNode": undefined,
"isSelfClosing": false,
"loc": Object {
"line": 1,
"offset": 24,
},
- "source": "<template></></template>",
+ "source": "<template><�></template>",
"start": Object {
"column": 1,
"line": 1,
"line": 1,
"offset": 24,
},
- "source": "<template></></template>",
+ "source": "<template><�></template>",
"start": Object {
"column": 1,
"line": 1,
}
`;
-exports[`compiler: parse Errors MISSING_SEMICOLON_AFTER_CHARACTER_REFERENCE <template>(</template> 1`] = `
+exports[`compiler: parse Errors INVALID_FIRST_CHARACTER_OF_TAG_NAME <template>{{a < b}}</template> 1`] = `
Object {
"cached": 0,
"children": Array [
Object {
"children": Array [
Object {
- "content": "(",
+ "content": Object {
+ "content": "a < b",
+ "isConstant": false,
+ "isStatic": false,
+ "loc": Object {
+ "end": Object {
+ "column": 18,
+ "line": 1,
+ "offset": 17,
+ },
+ "source": "a < b",
+ "start": Object {
+ "column": 13,
+ "line": 1,
+ "offset": 12,
+ },
+ },
+ "type": 4,
+ },
"loc": Object {
"end": Object {
- "column": 15,
+ "column": 20,
"line": 1,
- "offset": 14,
+ "offset": 19,
},
- "source": "(",
+ "source": "{{a < b}}",
"start": Object {
"column": 11,
"line": 1,
"offset": 10,
},
},
- "type": 2,
+ "type": 5,
},
],
"codegenNode": undefined,
"isSelfClosing": false,
"loc": Object {
"end": Object {
- "column": 26,
+ "column": 31,
"line": 1,
- "offset": 25,
+ "offset": 30,
},
- "source": "<template>(</template>",
+ "source": "<template>{{a < b}}</template>",
"start": Object {
"column": 1,
"line": 1,
"imports": Array [],
"loc": Object {
"end": Object {
- "column": 26,
+ "column": 31,
"line": 1,
- "offset": 25,
+ "offset": 30,
},
- "source": "<template>(</template>",
+ "source": "<template>{{a < b}}</template>",
"start": Object {
"column": 1,
"line": 1,
}
`;
-exports[`compiler: parse Errors MISSING_SEMICOLON_AFTER_CHARACTER_REFERENCE <template>@</template> 1`] = `
+exports[`compiler: parse Errors INVALID_FIRST_CHARACTER_OF_TAG_NAME <template>a < b</template> 1`] = `
Object {
"cached": 0,
"children": Array [
Object {
"children": Array [
Object {
- "content": "@",
+ "content": "a < b",
"loc": Object {
"end": Object {
"column": 16,
"line": 1,
"offset": 15,
},
- "source": "@",
+ "source": "a < b",
"start": Object {
"column": 11,
"line": 1,
"line": 1,
"offset": 26,
},
- "source": "<template>@</template>",
+ "source": "<template>a < b</template>",
"start": Object {
"column": 1,
"line": 1,
"line": 1,
"offset": 26,
},
- "source": "<template>@</template>",
+ "source": "<template>a < b</template>",
"start": Object {
"column": 1,
"line": 1,
}
`;
-exports[`compiler: parse Errors MISSING_SEMICOLON_AFTER_CHARACTER_REFERENCE <template>&</template> 1`] = `
+exports[`compiler: parse Errors INVALID_FIRST_CHARACTER_OF_TAG_NAME <template>a </ b</template> 1`] = `
Object {
"cached": 0,
"children": Array [
Object {
"children": Array [
Object {
- "content": "&",
+ "content": "a ",
"loc": Object {
"end": Object {
- "column": 15,
+ "column": 13,
"line": 1,
- "offset": 14,
+ "offset": 12,
},
- "source": "&",
+ "source": "a ",
"start": Object {
"column": 11,
"line": 1,
},
"type": 2,
},
+ Object {
+ "content": " b</template",
+ "loc": Object {
+ "end": Object {
+ "column": 28,
+ "line": 1,
+ "offset": 27,
+ },
+ "source": "</ b</template>",
+ "start": Object {
+ "column": 13,
+ "line": 1,
+ "offset": 12,
+ },
+ },
+ "type": 3,
+ },
],
"codegenNode": undefined,
"isSelfClosing": false,
"loc": Object {
"end": Object {
- "column": 26,
+ "column": 28,
"line": 1,
- "offset": 25,
+ "offset": 27,
},
- "source": "<template>&</template>",
+ "source": "<template>a </ b</template>",
"start": Object {
"column": 1,
"line": 1,
"imports": Array [],
"loc": Object {
"end": Object {
- "column": 26,
+ "column": 28,
"line": 1,
- "offset": 25,
+ "offset": 27,
},
- "source": "<template>&</template>",
+ "source": "<template>a </ b</template>",
"start": Object {
"column": 1,
"line": 1,
}
`;
-exports[`compiler: parse Errors MISSING_WHITESPACE_BETWEEN_ATTRIBUTES <template><div id="foo"\\x0d;\\x0a;class="bar"></div></template> 1`] = `
+exports[`compiler: parse Errors MISSING_ATTRIBUTE_VALUE <template><div id= /></div></template> 1`] = `
Object {
"cached": 0,
"children": Array [
"isSelfClosing": false,
"loc": Object {
"end": Object {
- "column": 19,
- "line": 2,
- "offset": 43,
- },
- "source": "<div id=\\"foo\\"
-class=\\"bar\\"></div>",
- "start": Object {
- "column": 11,
- "line": 1,
- "offset": 10,
- },
- },
- "ns": 0,
- "props": Array [
- Object {
- "loc": Object {
- "end": Object {
- "column": 24,
- "line": 1,
- "offset": 23,
- },
- "source": "id=\\"foo\\"",
- "start": Object {
- "column": 16,
- "line": 1,
- "offset": 15,
- },
- },
- "name": "id",
- "type": 6,
- "value": Object {
- "content": "foo",
- "loc": Object {
- "end": Object {
- "column": 24,
- "line": 1,
- "offset": 23,
- },
- "source": "\\"foo\\"",
- "start": Object {
- "column": 19,
- "line": 1,
- "offset": 18,
- },
- },
- "type": 2,
- },
+ "column": 28,
+ "line": 1,
+ "offset": 27,
+ },
+ "source": "<div id= /></div>",
+ "start": Object {
+ "column": 11,
+ "line": 1,
+ "offset": 10,
},
+ },
+ "ns": 0,
+ "props": Array [
Object {
"loc": Object {
"end": Object {
- "column": 12,
- "line": 2,
- "offset": 36,
+ "column": 21,
+ "line": 1,
+ "offset": 20,
},
- "source": "class=\\"bar\\"",
+ "source": "id= /",
"start": Object {
- "column": 1,
- "line": 2,
- "offset": 25,
+ "column": 16,
+ "line": 1,
+ "offset": 15,
},
},
- "name": "class",
+ "name": "id",
"type": 6,
"value": Object {
- "content": "bar",
+ "content": "/",
"loc": Object {
"end": Object {
- "column": 12,
- "line": 2,
- "offset": 36,
+ "column": 21,
+ "line": 1,
+ "offset": 20,
},
- "source": "\\"bar\\"",
+ "source": "/",
"start": Object {
- "column": 7,
- "line": 2,
- "offset": 31,
+ "column": 20,
+ "line": 1,
+ "offset": 19,
},
},
"type": 2,
"isSelfClosing": false,
"loc": Object {
"end": Object {
- "column": 30,
- "line": 2,
- "offset": 54,
+ "column": 39,
+ "line": 1,
+ "offset": 38,
},
- "source": "<template><div id=\\"foo\\"
-class=\\"bar\\"></div></template>",
+ "source": "<template><div id= /></div></template>",
"start": Object {
"column": 1,
"line": 1,
"imports": Array [],
"loc": Object {
"end": Object {
- "column": 30,
- "line": 2,
- "offset": 54,
+ "column": 39,
+ "line": 1,
+ "offset": 38,
},
- "source": "<template><div id=\\"foo\\"
-class=\\"bar\\"></div></template>",
+ "source": "<template><div id= /></div></template>",
"start": Object {
"column": 1,
"line": 1,
}
`;
-exports[`compiler: parse Errors MISSING_WHITESPACE_BETWEEN_ATTRIBUTES <template><div id="foo"class="bar"></div></template> 1`] = `
+exports[`compiler: parse Errors MISSING_ATTRIBUTE_VALUE <template><div id= ></div></template> 1`] = `
Object {
"cached": 0,
"children": Array [
"isSelfClosing": false,
"loc": Object {
"end": Object {
- "column": 42,
+ "column": 27,
"line": 1,
- "offset": 41,
+ "offset": 26,
},
- "source": "<div id=\\"foo\\"class=\\"bar\\"></div>",
+ "source": "<div id= ></div>",
"start": Object {
"column": 11,
"line": 1,
Object {
"loc": Object {
"end": Object {
- "column": 24,
+ "column": 20,
"line": 1,
- "offset": 23,
+ "offset": 19,
},
- "source": "id=\\"foo\\"",
+ "source": "id= ",
"start": Object {
"column": 16,
"line": 1,
},
"name": "id",
"type": 6,
- "value": Object {
- "content": "foo",
- "loc": Object {
- "end": Object {
- "column": 24,
- "line": 1,
- "offset": 23,
- },
- "source": "\\"foo\\"",
- "start": Object {
- "column": 19,
- "line": 1,
- "offset": 18,
- },
- },
- "type": 2,
- },
- },
- Object {
- "loc": Object {
- "end": Object {
- "column": 35,
- "line": 1,
- "offset": 34,
- },
- "source": "class=\\"bar\\"",
- "start": Object {
- "column": 24,
- "line": 1,
- "offset": 23,
- },
- },
- "name": "class",
- "type": 6,
- "value": Object {
- "content": "bar",
- "loc": Object {
- "end": Object {
- "column": 35,
- "line": 1,
- "offset": 34,
- },
- "source": "\\"bar\\"",
- "start": Object {
- "column": 30,
- "line": 1,
- "offset": 29,
- },
- },
- "type": 2,
- },
+ "value": undefined,
},
],
"tag": "div",
"isSelfClosing": false,
"loc": Object {
"end": Object {
- "column": 53,
+ "column": 38,
"line": 1,
- "offset": 52,
+ "offset": 37,
},
- "source": "<template><div id=\\"foo\\"class=\\"bar\\"></div></template>",
+ "source": "<template><div id= ></div></template>",
"start": Object {
"column": 1,
"line": 1,
"imports": Array [],
"loc": Object {
"end": Object {
- "column": 53,
+ "column": 38,
"line": 1,
- "offset": 52,
+ "offset": 37,
},
- "source": "<template><div id=\\"foo\\"class=\\"bar\\"></div></template>",
+ "source": "<template><div id= ></div></template>",
"start": Object {
"column": 1,
"line": 1,
}
`;
-exports[`compiler: parse Errors NESTED_COMMENT <template><!--a<!-- 1`] = `
+exports[`compiler: parse Errors MISSING_ATTRIBUTE_VALUE <template><div id=></div></template> 1`] = `
Object {
"cached": 0,
"children": Array [
Object {
"children": Array [
Object {
- "content": "a<!--",
+ "children": Array [],
+ "codegenNode": undefined,
+ "isSelfClosing": false,
"loc": Object {
"end": Object {
- "column": 20,
+ "column": 26,
"line": 1,
- "offset": 19,
+ "offset": 25,
},
- "source": "<!--a<!--",
+ "source": "<div id=></div>",
"start": Object {
"column": 11,
"line": 1,
"offset": 10,
},
},
- "type": 3,
+ "ns": 0,
+ "props": Array [
+ Object {
+ "loc": Object {
+ "end": Object {
+ "column": 19,
+ "line": 1,
+ "offset": 18,
+ },
+ "source": "id=",
+ "start": Object {
+ "column": 16,
+ "line": 1,
+ "offset": 15,
+ },
+ },
+ "name": "id",
+ "type": 6,
+ "value": undefined,
+ },
+ ],
+ "tag": "div",
+ "tagType": 0,
+ "type": 1,
},
],
"codegenNode": undefined,
"isSelfClosing": false,
"loc": Object {
"end": Object {
- "column": 20,
+ "column": 37,
"line": 1,
- "offset": 19,
+ "offset": 36,
},
- "source": "<template><!--a<!--",
+ "source": "<template><div id=></div></template>",
"start": Object {
"column": 1,
"line": 1,
"imports": Array [],
"loc": Object {
"end": Object {
- "column": 20,
+ "column": 37,
"line": 1,
- "offset": 19,
+ "offset": 36,
},
- "source": "<template><!--a<!--",
+ "source": "<template><div id=></div></template>",
"start": Object {
"column": 1,
"line": 1,
}
`;
-exports[`compiler: parse Errors NESTED_COMMENT <template><!--a<!--></template> 1`] = `
+exports[`compiler: parse Errors MISSING_END_TAG_NAME <template></></template> 1`] = `
Object {
"cached": 0,
"children": Array [
Object {
- "children": Array [
- Object {
- "content": "a<!",
- "loc": Object {
- "end": Object {
- "column": 21,
- "line": 1,
- "offset": 20,
- },
- "source": "<!--a<!-->",
- "start": Object {
- "column": 11,
- "line": 1,
- "offset": 10,
- },
- },
- "type": 3,
- },
- ],
+ "children": Array [],
"codegenNode": undefined,
"isSelfClosing": false,
"loc": Object {
"end": Object {
- "column": 32,
+ "column": 25,
"line": 1,
- "offset": 31,
+ "offset": 24,
},
- "source": "<template><!--a<!--></template>",
+ "source": "<template></></template>",
"start": Object {
"column": 1,
"line": 1,
"imports": Array [],
"loc": Object {
"end": Object {
- "column": 32,
+ "column": 25,
"line": 1,
- "offset": 31,
+ "offset": 24,
},
- "source": "<template><!--a<!--></template>",
+ "source": "<template></></template>",
"start": Object {
"column": 1,
"line": 1,
}
`;
-exports[`compiler: parse Errors NESTED_COMMENT <template><!--a<!--b<!--c--></template> 1`] = `
+exports[`compiler: parse Errors MISSING_WHITESPACE_BETWEEN_ATTRIBUTES <template><div id="foo"\\x0d;\\x0a;class="bar"></div></template> 1`] = `
Object {
"cached": 0,
"children": Array [
Object {
"children": Array [
Object {
- "content": "a<!--b<!--c",
+ "children": Array [],
+ "codegenNode": undefined,
+ "isSelfClosing": false,
"loc": Object {
"end": Object {
- "column": 29,
+ "column": 19,
+ "line": 2,
+ "offset": 43,
+ },
+ "source": "<div id=\\"foo\\"
+class=\\"bar\\"></div>",
+ "start": Object {
+ "column": 11,
"line": 1,
- "offset": 28,
+ "offset": 10,
+ },
+ },
+ "ns": 0,
+ "props": Array [
+ Object {
+ "loc": Object {
+ "end": Object {
+ "column": 24,
+ "line": 1,
+ "offset": 23,
+ },
+ "source": "id=\\"foo\\"",
+ "start": Object {
+ "column": 16,
+ "line": 1,
+ "offset": 15,
+ },
+ },
+ "name": "id",
+ "type": 6,
+ "value": Object {
+ "content": "foo",
+ "loc": Object {
+ "end": Object {
+ "column": 24,
+ "line": 1,
+ "offset": 23,
+ },
+ "source": "\\"foo\\"",
+ "start": Object {
+ "column": 19,
+ "line": 1,
+ "offset": 18,
+ },
+ },
+ "type": 2,
+ },
},
- "source": "<!--a<!--b<!--c-->",
- "start": Object {
- "column": 11,
- "line": 1,
- "offset": 10,
+ Object {
+ "loc": Object {
+ "end": Object {
+ "column": 12,
+ "line": 2,
+ "offset": 36,
+ },
+ "source": "class=\\"bar\\"",
+ "start": Object {
+ "column": 1,
+ "line": 2,
+ "offset": 25,
+ },
+ },
+ "name": "class",
+ "type": 6,
+ "value": Object {
+ "content": "bar",
+ "loc": Object {
+ "end": Object {
+ "column": 12,
+ "line": 2,
+ "offset": 36,
+ },
+ "source": "\\"bar\\"",
+ "start": Object {
+ "column": 7,
+ "line": 2,
+ "offset": 31,
+ },
+ },
+ "type": 2,
+ },
},
- },
- "type": 3,
+ ],
+ "tag": "div",
+ "tagType": 0,
+ "type": 1,
},
],
"codegenNode": undefined,
"isSelfClosing": false,
"loc": Object {
"end": Object {
- "column": 40,
- "line": 1,
- "offset": 39,
+ "column": 30,
+ "line": 2,
+ "offset": 54,
},
- "source": "<template><!--a<!--b<!--c--></template>",
+ "source": "<template><div id=\\"foo\\"
+class=\\"bar\\"></div></template>",
"start": Object {
"column": 1,
"line": 1,
"imports": Array [],
"loc": Object {
"end": Object {
- "column": 40,
- "line": 1,
- "offset": 39,
+ "column": 30,
+ "line": 2,
+ "offset": 54,
},
- "source": "<template><!--a<!--b<!--c--></template>",
+ "source": "<template><div id=\\"foo\\"
+class=\\"bar\\"></div></template>",
"start": Object {
"column": 1,
"line": 1,
}
`;
-exports[`compiler: parse Errors NESTED_COMMENT <template><!--a<!--b--></template> 1`] = `
+exports[`compiler: parse Errors MISSING_WHITESPACE_BETWEEN_ATTRIBUTES <template><div id="foo"class="bar"></div></template> 1`] = `
Object {
"cached": 0,
"children": Array [
Object {
"children": Array [
Object {
- "content": "a<!--b",
+ "children": Array [],
+ "codegenNode": undefined,
+ "isSelfClosing": false,
"loc": Object {
"end": Object {
- "column": 24,
+ "column": 42,
"line": 1,
- "offset": 23,
+ "offset": 41,
},
- "source": "<!--a<!--b-->",
+ "source": "<div id=\\"foo\\"class=\\"bar\\"></div>",
"start": Object {
"column": 11,
"line": 1,
"offset": 10,
},
},
- "type": 3,
+ "ns": 0,
+ "props": Array [
+ Object {
+ "loc": Object {
+ "end": Object {
+ "column": 24,
+ "line": 1,
+ "offset": 23,
+ },
+ "source": "id=\\"foo\\"",
+ "start": Object {
+ "column": 16,
+ "line": 1,
+ "offset": 15,
+ },
+ },
+ "name": "id",
+ "type": 6,
+ "value": Object {
+ "content": "foo",
+ "loc": Object {
+ "end": Object {
+ "column": 24,
+ "line": 1,
+ "offset": 23,
+ },
+ "source": "\\"foo\\"",
+ "start": Object {
+ "column": 19,
+ "line": 1,
+ "offset": 18,
+ },
+ },
+ "type": 2,
+ },
+ },
+ Object {
+ "loc": Object {
+ "end": Object {
+ "column": 35,
+ "line": 1,
+ "offset": 34,
+ },
+ "source": "class=\\"bar\\"",
+ "start": Object {
+ "column": 24,
+ "line": 1,
+ "offset": 23,
+ },
+ },
+ "name": "class",
+ "type": 6,
+ "value": Object {
+ "content": "bar",
+ "loc": Object {
+ "end": Object {
+ "column": 35,
+ "line": 1,
+ "offset": 34,
+ },
+ "source": "\\"bar\\"",
+ "start": Object {
+ "column": 30,
+ "line": 1,
+ "offset": 29,
+ },
+ },
+ "type": 2,
+ },
+ },
+ ],
+ "tag": "div",
+ "tagType": 0,
+ "type": 1,
},
],
"codegenNode": undefined,
"isSelfClosing": false,
"loc": Object {
"end": Object {
- "column": 35,
+ "column": 53,
"line": 1,
- "offset": 34,
+ "offset": 52,
},
- "source": "<template><!--a<!--b--></template>",
+ "source": "<template><div id=\\"foo\\"class=\\"bar\\"></div></template>",
"start": Object {
"column": 1,
"line": 1,
"imports": Array [],
"loc": Object {
"end": Object {
- "column": 35,
+ "column": 53,
"line": 1,
- "offset": 34,
+ "offset": 52,
},
- "source": "<template><!--a<!--b--></template>",
+ "source": "<template><div id=\\"foo\\"class=\\"bar\\"></div></template>",
"start": Object {
"column": 1,
"line": 1,
}
`;
-exports[`compiler: parse Errors NONCHARACTER_CHARACTER_REFERENCE <template></template> 1`] = `
+exports[`compiler: parse Errors NESTED_COMMENT <template><!--a<!-- 1`] = `
Object {
"cached": 0,
"children": Array [
Object {
"children": Array [
Object {
- "content": "",
+ "content": "a<!--",
"loc": Object {
"end": Object {
"column": 20,
"line": 1,
"offset": 19,
},
- "source": "",
+ "source": "<!--a<!--",
"start": Object {
"column": 11,
"line": 1,
"offset": 10,
},
},
- "type": 2,
+ "type": 3,
},
],
"codegenNode": undefined,
"isSelfClosing": false,
"loc": Object {
"end": Object {
- "column": 31,
+ "column": 20,
"line": 1,
- "offset": 30,
+ "offset": 19,
},
- "source": "<template></template>",
+ "source": "<template><!--a<!--",
"start": Object {
"column": 1,
"line": 1,
"imports": Array [],
"loc": Object {
"end": Object {
- "column": 31,
+ "column": 20,
"line": 1,
- "offset": 30,
+ "offset": 19,
},
- "source": "<template></template>",
+ "source": "<template><!--a<!--",
"start": Object {
"column": 1,
"line": 1,
}
`;
-exports[`compiler: parse Errors NONCHARACTER_CHARACTER_REFERENCE <template></template> 1`] = `
+exports[`compiler: parse Errors NESTED_COMMENT <template><!--a<!--></template> 1`] = `
Object {
"cached": 0,
"children": Array [
Object {
"children": Array [
Object {
- "content": "",
+ "content": "a<!",
"loc": Object {
"end": Object {
- "column": 19,
+ "column": 21,
"line": 1,
- "offset": 18,
+ "offset": 20,
},
- "source": "",
+ "source": "<!--a<!-->",
"start": Object {
"column": 11,
"line": 1,
"offset": 10,
},
},
- "type": 2,
+ "type": 3,
},
],
"codegenNode": undefined,
"isSelfClosing": false,
"loc": Object {
"end": Object {
- "column": 30,
+ "column": 32,
"line": 1,
- "offset": 29,
+ "offset": 31,
},
- "source": "<template></template>",
+ "source": "<template><!--a<!--></template>",
"start": Object {
"column": 1,
"line": 1,
"imports": Array [],
"loc": Object {
"end": Object {
- "column": 30,
+ "column": 32,
"line": 1,
- "offset": 29,
+ "offset": 31,
},
- "source": "<template></template>",
+ "source": "<template><!--a<!--></template>",
"start": Object {
"column": 1,
"line": 1,
}
`;
-exports[`compiler: parse Errors NULL_CHARACTER_REFERENCE <template>�</template> 1`] = `
+exports[`compiler: parse Errors NESTED_COMMENT <template><!--a<!--b<!--c--></template> 1`] = `
Object {
"cached": 0,
"children": Array [
Object {
"children": Array [
Object {
- "content": "�",
+ "content": "a<!--b<!--c",
"loc": Object {
"end": Object {
- "column": 18,
+ "column": 29,
"line": 1,
- "offset": 17,
+ "offset": 28,
},
- "source": "�",
+ "source": "<!--a<!--b<!--c-->",
"start": Object {
"column": 11,
"line": 1,
"offset": 10,
},
},
- "type": 2,
+ "type": 3,
},
],
"codegenNode": undefined,
"isSelfClosing": false,
"loc": Object {
"end": Object {
- "column": 29,
+ "column": 40,
"line": 1,
- "offset": 28,
+ "offset": 39,
},
- "source": "<template>�</template>",
+ "source": "<template><!--a<!--b<!--c--></template>",
"start": Object {
"column": 1,
"line": 1,
"imports": Array [],
"loc": Object {
"end": Object {
- "column": 29,
+ "column": 40,
"line": 1,
- "offset": 28,
+ "offset": 39,
},
- "source": "<template>�</template>",
+ "source": "<template><!--a<!--b<!--c--></template>",
"start": Object {
"column": 1,
"line": 1,
}
`;
-exports[`compiler: parse Errors SURROGATE_CHARACTER_REFERENCE <template>�</template> 1`] = `
+exports[`compiler: parse Errors NESTED_COMMENT <template><!--a<!--b--></template> 1`] = `
Object {
"cached": 0,
"children": Array [
Object {
"children": Array [
Object {
- "content": "�",
+ "content": "a<!--b",
"loc": Object {
"end": Object {
- "column": 19,
+ "column": 24,
"line": 1,
- "offset": 18,
+ "offset": 23,
},
- "source": "�",
+ "source": "<!--a<!--b-->",
"start": Object {
"column": 11,
"line": 1,
"offset": 10,
},
},
- "type": 2,
+ "type": 3,
},
],
"codegenNode": undefined,
"isSelfClosing": false,
"loc": Object {
"end": Object {
- "column": 30,
+ "column": 35,
"line": 1,
- "offset": 29,
+ "offset": 34,
},
- "source": "<template>�</template>",
+ "source": "<template><!--a<!--b--></template>",
"start": Object {
"column": 1,
"line": 1,
"imports": Array [],
"loc": Object {
"end": Object {
- "column": 30,
+ "column": 35,
"line": 1,
- "offset": 29,
+ "offset": 34,
},
- "source": "<template>�</template>",
+ "source": "<template><!--a<!--b--></template>",
"start": Object {
"column": 1,
"line": 1,