htmljs-parser 2.11.0 → 3.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE +1 -1
- package/README.md +103 -106
- package/dist/core/Parser.d.ts +67 -0
- package/dist/index.d.ts +23 -0
- package/dist/index.js +2034 -0
- package/dist/index.mjs +2013 -0
- package/dist/internal.d.ts +4 -0
- package/dist/states/ATTRIBUTE.d.ts +18 -0
- package/dist/states/BEGIN_DELIMITED_HTML_BLOCK.d.ts +7 -0
- package/dist/states/CDATA.d.ts +3 -0
- package/dist/states/CLOSE_TAG.d.ts +3 -0
- package/dist/states/CONCISE_HTML_CONTENT.d.ts +2 -0
- package/dist/states/DECLARATION.d.ts +2 -0
- package/dist/states/DTD.d.ts +2 -0
- package/dist/states/EXPRESSION.d.ts +9 -0
- package/dist/states/HTML_COMMENT.d.ts +2 -0
- package/dist/states/HTML_CONTENT.d.ts +7 -0
- package/dist/states/INLINE_SCRIPT.d.ts +7 -0
- package/dist/states/JS_COMMENT_BLOCK.d.ts +2 -0
- package/dist/states/JS_COMMENT_LINE.d.ts +2 -0
- package/dist/states/OPEN_TAG.d.ts +25 -0
- package/dist/states/PARSED_TEXT_CONTENT.d.ts +7 -0
- package/dist/states/PLACEHOLDER.d.ts +7 -0
- package/dist/states/REGULAR_EXPRESSION.d.ts +6 -0
- package/dist/states/STRING.d.ts +6 -0
- package/dist/states/TAG_NAME.d.ts +5 -0
- package/dist/states/TEMPLATE_STRING.d.ts +2 -0
- package/dist/states/index.d.ts +20 -0
- package/dist/util/constants.d.ts +131 -0
- package/dist/util/util.d.ts +7 -0
- package/package.json +67 -30
- package/.jshintrc +0 -29
- package/.travis.yml +0 -8
- package/BaseParser.js +0 -188
- package/Parser.js +0 -3315
- package/html-tags.js +0 -126
- package/index.js +0 -6
- package/notify-util.js +0 -319
- package/operators.js +0 -65
- package/test/.jshintrc +0 -43
- package/test/1.x-test.js +0 -6
- package/test/autotest/argument-and-params/expected.html +0 -17
- package/test/autotest/argument-and-params/input.htmljs +0 -6
- package/test/autotest/argument-attr/expected.html +0 -2
- package/test/autotest/argument-attr/input.htmljs +0 -1
- package/test/autotest/argument-attr-extra-whitespace/expected.html +0 -4
- package/test/autotest/argument-attr-extra-whitespace/input.htmljs +0 -2
- package/test/autotest/argument-attr-multiple/expected.html +0 -1
- package/test/autotest/argument-attr-multiple/input.htmljs +0 -1
- package/test/autotest/argument-tag/expected.html +0 -2
- package/test/autotest/argument-tag/input.htmljs +0 -1
- package/test/autotest/argument-tag-attr/expected.html +0 -2
- package/test/autotest/argument-tag-attr/input.htmljs +0 -1
- package/test/autotest/argument-tag-complex/expected.html +0 -2
- package/test/autotest/argument-tag-complex/input.htmljs +0 -1
- package/test/autotest/argument-tag-extra-whitespace/expected.html +0 -2
- package/test/autotest/argument-tag-extra-whitespace/input.htmljs +0 -1
- package/test/autotest/argument-tag-multiple/expected.html +0 -1
- package/test/autotest/argument-tag-multiple/input.htmljs +0 -1
- package/test/autotest/argument-tag-nested-parens/expected.html +0 -3
- package/test/autotest/argument-tag-nested-parens/input.htmljs +0 -4
- package/test/autotest/attr-bound/expected.html +0 -23
- package/test/autotest/attr-bound/input.htmljs +0 -6
- package/test/autotest/attr-comma-multiline/expected.html +0 -3
- package/test/autotest/attr-comma-multiline/input.htmljs +0 -6
- package/test/autotest/attr-complex/expected.html +0 -3
- package/test/autotest/attr-complex/input.htmljs +0 -1
- package/test/autotest/attr-complex-instanceof/expected.html +0 -2
- package/test/autotest/attr-complex-instanceof/input.htmljs +0 -1
- package/test/autotest/attr-escape-characters/expected.html +0 -3
- package/test/autotest/attr-escape-characters/input.htmljs +0 -3
- package/test/autotest/attr-escaped-dollar/expected.html +0 -1
- package/test/autotest/attr-escaped-dollar/input.htmljs +0 -1
- package/test/autotest/attr-escaped-dollar/test.js +0 -5
- package/test/autotest/attr-grouped/expected.html +0 -3
- package/test/autotest/attr-grouped/input.htmljs +0 -5
- package/test/autotest/attr-grouped-2/expected.html +0 -3
- package/test/autotest/attr-grouped-2/input.htmljs +0 -5
- package/test/autotest/attr-grouped-3/expected.html +0 -3
- package/test/autotest/attr-grouped-3/input.htmljs +0 -5
- package/test/autotest/attr-grouped-4/expected.html +0 -3
- package/test/autotest/attr-grouped-4/input.htmljs +0 -5
- package/test/autotest/attr-grouped-invalid/expected.html +0 -1
- package/test/autotest/attr-grouped-invalid/input.htmljs +0 -5
- package/test/autotest/attr-grouped-invalid-eof/expected.html +0 -1
- package/test/autotest/attr-grouped-invalid-eof/input.htmljs +0 -4
- package/test/autotest/attr-grouped-multiple/expected.html +0 -3
- package/test/autotest/attr-grouped-multiple/input.htmljs +0 -4
- package/test/autotest/attr-inc-and-dec/expected.html +0 -4
- package/test/autotest/attr-inc-and-dec/input.htmljs +0 -2
- package/test/autotest/attr-inconsistent-commas/expected.html +0 -1
- package/test/autotest/attr-inconsistent-commas/input.htmljs +0 -1
- package/test/autotest/attr-int-and-id/expected.html +0 -2
- package/test/autotest/attr-int-and-id/input.htmljs +0 -1
- package/test/autotest/attr-literal-false/expected.html +0 -2
- package/test/autotest/attr-literal-false/input.htmljs +0 -1
- package/test/autotest/attr-literal-false/test.js +0 -1
- package/test/autotest/attr-literal-null/expected.html +0 -2
- package/test/autotest/attr-literal-null/input.htmljs +0 -1
- package/test/autotest/attr-literal-null/test.js +0 -1
- package/test/autotest/attr-literal-numbers/expected.html +0 -2
- package/test/autotest/attr-literal-numbers/input.htmljs +0 -1
- package/test/autotest/attr-literal-numbers/test.js +0 -1
- package/test/autotest/attr-literal-regex/expected.html +0 -11
- package/test/autotest/attr-literal-regex/input.htmljs +0 -4
- package/test/autotest/attr-literal-string-double-quotes/expected.html +0 -2
- package/test/autotest/attr-literal-string-double-quotes/input.htmljs +0 -1
- package/test/autotest/attr-literal-string-double-quotes/test.js +0 -1
- package/test/autotest/attr-literal-string-single-quotes/expected.html +0 -2
- package/test/autotest/attr-literal-string-single-quotes/input.htmljs +0 -1
- package/test/autotest/attr-literal-string-single-quotes/test.js +0 -1
- package/test/autotest/attr-literal-true/expected.html +0 -2
- package/test/autotest/attr-literal-true/input.htmljs +0 -1
- package/test/autotest/attr-literal-true/test.js +0 -1
- package/test/autotest/attr-literal-undefined/expected.html +0 -2
- package/test/autotest/attr-literal-undefined/input.htmljs +0 -1
- package/test/autotest/attr-literal-undefined/test.js +0 -1
- package/test/autotest/attr-method-shorthand/expected.html +0 -40
- package/test/autotest/attr-method-shorthand/input.htmljs +0 -29
- package/test/autotest/attr-multi-line-comment/expected.html +0 -3
- package/test/autotest/attr-multi-line-comment/input.htmljs +0 -1
- package/test/autotest/attr-multi-line-string/expected.html +0 -2
- package/test/autotest/attr-multi-line-string/input.htmljs +0 -3
- package/test/autotest/attr-name-with-html-chars/expected.html +0 -1
- package/test/autotest/attr-name-with-html-chars/input.htmljs +0 -1
- package/test/autotest/attr-nested-literal-regex/expected.html +0 -2
- package/test/autotest/attr-nested-literal-regex/input.htmljs +0 -1
- package/test/autotest/attr-no-value/expected.html +0 -3
- package/test/autotest/attr-no-value/input.htmljs +0 -1
- package/test/autotest/attr-no-value-self-closed/expected.html +0 -2
- package/test/autotest/attr-no-value-self-closed/input.htmljs +0 -1
- package/test/autotest/attr-non-literal/expected.html +0 -5
- package/test/autotest/attr-non-literal/input.htmljs +0 -2
- package/test/autotest/attr-non-literal/test.js +0 -1
- package/test/autotest/attr-object-expressions/expected.html +0 -4
- package/test/autotest/attr-object-expressions/input.htmljs +0 -3
- package/test/autotest/attr-simple-expression/expected.html +0 -3
- package/test/autotest/attr-simple-expression/input.htmljs +0 -1
- package/test/autotest/attr-unenclosed-whitespace/expected.html +0 -2
- package/test/autotest/attr-unenclosed-whitespace/input.htmljs +0 -1
- package/test/autotest/attr-unenclosed-whitespace-minus/expected.html +0 -2
- package/test/autotest/attr-unenclosed-whitespace-minus/input.htmljs +0 -1
- package/test/autotest/attr-unenclosed-whitespace-multiple-attrs/expected.html +0 -5
- package/test/autotest/attr-unenclosed-whitespace-multiple-attrs/input.htmljs +0 -2
- package/test/autotest/attr-unenclosed-whitespace-odd/expected.html +0 -2
- package/test/autotest/attr-unenclosed-whitespace-odd/input.htmljs +0 -1
- package/test/autotest/attr-value-self-closed/expected.html +0 -2
- package/test/autotest/attr-value-self-closed/input.htmljs +0 -1
- package/test/autotest/attr-value-single-quote-escaped/expected.html +0 -2
- package/test/autotest/attr-value-single-quote-escaped/input.htmljs +0 -1
- package/test/autotest/attr-value-string-concat/expected.html +0 -2
- package/test/autotest/attr-value-string-concat/input.htmljs +0 -1
- package/test/autotest/attr-value-typeof/expected.html +0 -2
- package/test/autotest/attr-value-typeof/input.htmljs +0 -1
- package/test/autotest/attr-value-typeof-comma/expected.html +0 -2
- package/test/autotest/attr-value-typeof-comma/input.htmljs +0 -1
- package/test/autotest/attr-value-typeof-no-space-prefix/expected.html +0 -2
- package/test/autotest/attr-value-typeof-no-space-prefix/input.htmljs +0 -1
- package/test/autotest/attr-value-void/expected.html +0 -2
- package/test/autotest/attr-value-void/input.htmljs +0 -1
- package/test/autotest/attr-with-parens-and-double-quoted-strings/expected.html +0 -2
- package/test/autotest/attr-with-parens-and-double-quoted-strings/input.htmljs +0 -1
- package/test/autotest/attr-with-parens-and-single-quoted-strings/expected.html +0 -2
- package/test/autotest/attr-with-parens-and-single-quoted-strings/input.htmljs +0 -1
- package/test/autotest/attr-with-right-angle-bracket/expected.html +0 -3
- package/test/autotest/attr-with-right-angle-bracket/input.htmljs +0 -1
- package/test/autotest/attr-with-right-angle-bracket-parens/expected.html +0 -3
- package/test/autotest/attr-with-right-angle-bracket-parens/input.htmljs +0 -1
- package/test/autotest/attr-without-delimiters/expected.html +0 -2
- package/test/autotest/attr-without-delimiters/input.htmljs +0 -1
- package/test/autotest/backtick-string/expected.html +0 -3
- package/test/autotest/backtick-string/input.htmljs +0 -2
- package/test/autotest/backtick-string-eof/expected.html +0 -1
- package/test/autotest/backtick-string-eof/input.htmljs +0 -2
- package/test/autotest/backtick-string-nested-with-space/expected.html +0 -2
- package/test/autotest/backtick-string-nested-with-space/input.htmljs +0 -1
- package/test/autotest/backtick-string-placeholder-newline/expected.html +0 -4
- package/test/autotest/backtick-string-placeholder-newline/input.htmljs +0 -3
- package/test/autotest/bad-tag-indent/expected.html +0 -1
- package/test/autotest/bad-tag-indent/input.htmljs +0 -1
- package/test/autotest/cdata/expected.html +0 -3
- package/test/autotest/cdata/input.htmljs +0 -1
- package/test/autotest/cdata-2/expected.html +0 -5
- package/test/autotest/cdata-2/input.htmljs +0 -3
- package/test/autotest/cdata-pos/expected.html +0 -7
- package/test/autotest/cdata-pos/input.htmljs +0 -4
- package/test/autotest/cdata-pos/test.js +0 -1
- package/test/autotest/comma-ends-attr-operators/expected.html +0 -2
- package/test/autotest/comma-ends-attr-operators/input.htmljs +0 -1
- package/test/autotest/commas-relax/expected.html +0 -2
- package/test/autotest/commas-relax/input.htmljs +0 -1
- package/test/autotest/commas-relax/test.js +0 -7
- package/test/autotest/commas-require-all-attrs-first/expected.html +0 -1
- package/test/autotest/commas-require-all-attrs-first/input.htmljs +0 -1
- package/test/autotest/commas-require-all-attrs-last/expected.html +0 -1
- package/test/autotest/commas-require-all-attrs-last/input.htmljs +0 -1
- package/test/autotest/comment-concise-js-block/expected.html +0 -4
- package/test/autotest/comment-concise-js-block/input.htmljs +0 -6
- package/test/autotest/comment-concise-js-block-trailing/expected.html +0 -4
- package/test/autotest/comment-concise-js-block-trailing/input.htmljs +0 -6
- package/test/autotest/comment-concise-js-line/expected.html +0 -4
- package/test/autotest/comment-concise-js-line/input.htmljs +0 -3
- package/test/autotest/comments-within-open-tag/expected.html +0 -2
- package/test/autotest/comments-within-open-tag/input.htmljs +0 -1
- package/test/autotest/complex/expected.html +0 -24
- package/test/autotest/complex/input.htmljs +0 -22
- package/test/autotest/complex-attr-name/expected.html +0 -2
- package/test/autotest/complex-attr-name/input.htmljs +0 -1
- package/test/autotest/concise-complex-tag-name/expected.html +0 -2
- package/test/autotest/concise-complex-tag-name/input.htmljs +0 -1
- package/test/autotest/concise-contentplaceholder-html-start/expected.html +0 -5
- package/test/autotest/concise-contentplaceholder-html-start/input.htmljs +0 -1
- package/test/autotest/concise-contentplaceholder-start/expected.html +0 -1
- package/test/autotest/concise-contentplaceholder-start/input.htmljs +0 -1
- package/test/autotest/concise-hyphen-after-tag-name/expected.html +0 -1
- package/test/autotest/concise-hyphen-after-tag-name/input.htmljs +0 -1
- package/test/autotest/css-calc/expected.html +0 -6
- package/test/autotest/css-calc/input.htmljs +0 -5
- package/test/autotest/declaration/expected.html +0 -1
- package/test/autotest/declaration/input.htmljs +0 -1
- package/test/autotest/default-attr/expected.html +0 -2
- package/test/autotest/default-attr/input.htmljs +0 -1
- package/test/autotest/default-attr-comma/expected.html +0 -2
- package/test/autotest/default-attr-comma/input.htmljs +0 -1
- package/test/autotest/default-attr-no-space/expected.html +0 -6
- package/test/autotest/default-attr-no-space/input.htmljs +0 -3
- package/test/autotest/double-hyphen-block/expected.html +0 -12
- package/test/autotest/double-hyphen-block/input.htmljs +0 -8
- package/test/autotest/double-hyphen-line/expected.html +0 -12
- package/test/autotest/double-hyphen-line/input.htmljs +0 -5
- package/test/autotest/double-hyphen-line-start/expected.html +0 -12
- package/test/autotest/double-hyphen-line-start/input.htmljs +0 -6
- package/test/autotest/dtd/expected.html +0 -1
- package/test/autotest/dtd/input.htmljs +0 -1
- package/test/autotest/empty-closing-tag/expected.html +0 -8
- package/test/autotest/empty-closing-tag/input.htmljs +0 -6
- package/test/autotest/empty-closing-tag2/expected.html +0 -9
- package/test/autotest/empty-closing-tag2/input.htmljs +0 -5
- package/test/autotest/eof-attr-argument/expected.html +0 -1
- package/test/autotest/eof-attr-argument/input.htmljs +0 -1
- package/test/autotest/eof-attr-name/expected.html +0 -3
- package/test/autotest/eof-attr-name/input.htmljs +0 -1
- package/test/autotest/eof-attr-value/expected.html +0 -3
- package/test/autotest/eof-attr-value/input.htmljs +0 -1
- package/test/autotest/eof-attr-value-js-comment-comment/expected.html +0 -3
- package/test/autotest/eof-attr-value-js-comment-comment/input.htmljs +0 -1
- package/test/autotest/eof-attr-value-js-comment-comment-concise/expected.html +0 -1
- package/test/autotest/eof-attr-value-js-comment-comment-concise/input.htmljs +0 -1
- package/test/autotest/eof-attr-value-string/expected.html +0 -1
- package/test/autotest/eof-attr-value-string/input.htmljs +0 -1
- package/test/autotest/eof-doctype/expected.html +0 -1
- package/test/autotest/eof-doctype/input.htmljs +0 -1
- package/test/autotest/eof-placeholder-body-escaped/expected.html +0 -4
- package/test/autotest/eof-placeholder-body-escaped/input.htmljs +0 -1
- package/test/autotest/eof-placeholder-body-non-escaped/expected.html +0 -4
- package/test/autotest/eof-placeholder-body-non-escaped/input.htmljs +0 -4
- package/test/autotest/eof-placeholder-concise/expected.html +0 -3
- package/test/autotest/eof-placeholder-concise/input.htmljs +0 -2
- package/test/autotest/eof-placeholder-script-body-escaped/expected.html +0 -4
- package/test/autotest/eof-placeholder-script-body-escaped/input.htmljs +0 -1
- package/test/autotest/eof-placeholder-script-body-non-escaped/expected.html +0 -4
- package/test/autotest/eof-placeholder-script-body-non-escaped/input.htmljs +0 -1
- package/test/autotest/eof-placeholder-string/expected.html +0 -4
- package/test/autotest/eof-placeholder-string/input.htmljs +0 -1
- package/test/autotest/eof-script-body/expected.html +0 -4
- package/test/autotest/eof-script-body/input.htmljs +0 -2
- package/test/autotest/eof-style/expected.html +0 -4
- package/test/autotest/eof-style/input.htmljs +0 -1
- package/test/autotest/eof-tag-start/expected.html +0 -3
- package/test/autotest/eof-tag-start/input.htmljs +0 -1
- package/test/autotest/eof-xml-declaration/expected.html +0 -1
- package/test/autotest/eof-xml-declaration/input.htmljs +0 -1
- package/test/autotest/html-block-after-tag/expected.html +0 -6
- package/test/autotest/html-block-after-tag/input.htmljs +0 -1
- package/test/autotest/html-comments/expected.html +0 -3
- package/test/autotest/html-comments/input.htmljs +0 -1
- package/test/autotest/html-comments-ignore-placeholders/expected.html +0 -1
- package/test/autotest/html-comments-ignore-placeholders/input.htmljs +0 -1
- package/test/autotest/ignoreAttributes/expected.html +0 -2
- package/test/autotest/ignoreAttributes/input.htmljs +0 -1
- package/test/autotest/ignoreAttributes/test.js +0 -7
- package/test/autotest/ignoreNonstandardStringPlaceholders/expected.html +0 -2
- package/test/autotest/ignoreNonstandardStringPlaceholders/input.htmljs +0 -1
- package/test/autotest/ignoreNonstandardStringPlaceholders/test.js +0 -1
- package/test/autotest/ignorePlaceholders-attr-double-escaped-dollar-placeholder/expected.html +0 -2
- package/test/autotest/ignorePlaceholders-attr-double-escaped-dollar-placeholder/input.htmljs +0 -1
- package/test/autotest/ignorePlaceholders-attr-double-escaped-dollar-placeholder/test.js +0 -1
- package/test/autotest/ignorePlaceholders-attr-escaped-dollar-placeholder/expected.html +0 -2
- package/test/autotest/ignorePlaceholders-attr-escaped-dollar-placeholder/input.htmljs +0 -1
- package/test/autotest/ignorePlaceholders-attr-escaped-dollar-placeholder/test.js +0 -1
- package/test/autotest/ignorePlaceholders-attr-placeholder/expected.html +0 -2
- package/test/autotest/ignorePlaceholders-attr-placeholder/input.htmljs +0 -1
- package/test/autotest/ignorePlaceholders-attr-placeholder/test.js +0 -1
- package/test/autotest/invalid-closing-tag/expected.html +0 -4
- package/test/autotest/invalid-closing-tag/input.htmljs +0 -1
- package/test/autotest/mixed/expected.html +0 -21
- package/test/autotest/mixed/input.htmljs +0 -8
- package/test/autotest/mixed-bad-indentation/expected.html +0 -7
- package/test/autotest/mixed-bad-indentation/input.htmljs +0 -3
- package/test/autotest/mixed-cdata/expected.html +0 -7
- package/test/autotest/mixed-cdata/input.htmljs +0 -3
- package/test/autotest/mixed-comment/expected.html +0 -7
- package/test/autotest/mixed-comment/input.htmljs +0 -6
- package/test/autotest/mixed-invalid/expected.html +0 -16
- package/test/autotest/mixed-invalid/input.htmljs +0 -9
- package/test/autotest/mixed-open-tag-only/expected.html +0 -14
- package/test/autotest/mixed-open-tag-only/input.htmljs +0 -6
- package/test/autotest/multiline-html-block/expected.html +0 -5
- package/test/autotest/multiline-html-block/input.htmljs +0 -4
- package/test/autotest/multiline-html-block-empty/expected.html +0 -0
- package/test/autotest/multiline-html-block-empty/input.htmljs +0 -2
- package/test/autotest/multiline-html-block-missing-end/expected.html +0 -7
- package/test/autotest/multiline-html-block-missing-end/input.htmljs +0 -12
- package/test/autotest/multiline-html-block-nested/expected.html +0 -7
- package/test/autotest/multiline-html-block-nested/input.htmljs +0 -5
- package/test/autotest/multiline-html-block-nested-empty/expected.html +0 -2
- package/test/autotest/multiline-html-block-nested-empty/input.htmljs +0 -3
- package/test/autotest/multiline-html-block-same-line/expected.html +0 -6
- package/test/autotest/multiline-html-block-same-line/input.htmljs +0 -7
- package/test/autotest/multiline-text-block/expected.html +0 -1
- package/test/autotest/multiline-text-block/input.htmljs +0 -4
- package/test/autotest/multiline-text-block-bad/expected.html +0 -1
- package/test/autotest/multiline-text-block-bad/input.htmljs +0 -5
- package/test/autotest/multiline-text-block-with-hyphens/expected.html +0 -1
- package/test/autotest/multiline-text-block-with-hyphens/input.htmljs +0 -4
- package/test/autotest/multiple-tags-on-line-close-next/input.htmljs +0 -2
- package/test/autotest/multiple-tags-on-line-close-next/test.js +0 -1
- package/test/autotest/nested-pyramid/expected.html +0 -12
- package/test/autotest/nested-pyramid/input.htmljs +0 -6
- package/test/autotest/nested-siblings/expected.html +0 -6
- package/test/autotest/nested-siblings/input.htmljs +0 -3
- package/test/autotest/nested-tags/expected.html +0 -4
- package/test/autotest/nested-tags/input.htmljs +0 -2
- package/test/autotest/nested-text/expected.html +0 -8
- package/test/autotest/nested-text/input.htmljs +0 -8
- package/test/autotest/open-tag-only/expected.html +0 -12
- package/test/autotest/open-tag-only/input.htmljs +0 -1
- package/test/autotest/open-tag-only-custom/expected.html +0 -10
- package/test/autotest/open-tag-only-custom/input.htmljs +0 -4
- package/test/autotest/open-tag-only-custom/test.js +0 -9
- package/test/autotest/open-tag-only-with-body/expected.html +0 -4
- package/test/autotest/open-tag-only-with-body/input.htmljs +0 -5
- package/test/autotest/open-tag-only-with-body-concise/expected.html +0 -3
- package/test/autotest/open-tag-only-with-body-concise/input.htmljs +0 -2
- package/test/autotest/open-tag-parser-state/expected.html +0 -21
- package/test/autotest/open-tag-parser-state/input.htmljs +0 -11
- package/test/autotest/open-tag-parser-state/test.js +0 -21
- package/test/autotest/open-tag-parser-state-concise/expected.html +0 -19
- package/test/autotest/open-tag-parser-state-concise/input.htmljs +0 -17
- package/test/autotest/open-tag-parser-state-concise/test.js +0 -17
- package/test/autotest/param-tag/expected.html +0 -2
- package/test/autotest/param-tag/input.htmljs +0 -1
- package/test/autotest/parsed-text-placeholder-in-template-literal-string/expected.html +0 -4
- package/test/autotest/parsed-text-placeholder-in-template-literal-string/input.htmljs +0 -3
- package/test/autotest/parsed-text-placeholder-in-template-literal-string/test.js +0 -1
- package/test/autotest/parsed-text-style-tag/expected.html +0 -3
- package/test/autotest/parsed-text-style-tag/input.htmljs +0 -1
- package/test/autotest/placeholder-attr-invalid/expected.html +0 -1
- package/test/autotest/placeholder-attr-invalid/input.htmljs +0 -1
- package/test/autotest/placeholder-attr-string-value/expected.html +0 -3
- package/test/autotest/placeholder-attr-string-value/input.htmljs +0 -1
- package/test/autotest/placeholder-attr-string-value-mixed-quotes/expected.html +0 -3
- package/test/autotest/placeholder-attr-string-value-mixed-quotes/input.htmljs +0 -1
- package/test/autotest/placeholder-attr-string-value-parens/expected.html +0 -3
- package/test/autotest/placeholder-attr-string-value-parens/input.htmljs +0 -1
- package/test/autotest/placeholder-attr-within-placeholder/expected.html +0 -2
- package/test/autotest/placeholder-attr-within-placeholder/input.htmljs +0 -1
- package/test/autotest/placeholder-attr-within-string-complex/expected.html +0 -2
- package/test/autotest/placeholder-attr-within-string-complex/input.htmljs +0 -1
- package/test/autotest/placeholder-attr-within-string-simple/expected.html +0 -2
- package/test/autotest/placeholder-attr-within-string-simple/input.htmljs +0 -1
- package/test/autotest/placeholder-attr-wrapped/expected.html +0 -2
- package/test/autotest/placeholder-attr-wrapped/input.htmljs +0 -1
- package/test/autotest/placeholder-backslash/expected.html +0 -23
- package/test/autotest/placeholder-backslash/input.htmljs +0 -15
- package/test/autotest/placeholder-body-multi-line-js-comment/expected.html +0 -3
- package/test/autotest/placeholder-body-multi-line-js-comment/input.htmljs +0 -1
- package/test/autotest/placeholder-body-single-line-js-comment/expected.html +0 -3
- package/test/autotest/placeholder-body-single-line-js-comment/input.htmljs +0 -2
- package/test/autotest/placeholder-body-text/expected.html +0 -5
- package/test/autotest/placeholder-body-text/input.htmljs +0 -1
- package/test/autotest/placeholder-escape/expected.html +0 -5
- package/test/autotest/placeholder-escape/input.htmljs +0 -3
- package/test/autotest/placeholder-no-escape/expected.html +0 -5
- package/test/autotest/placeholder-no-escape/input.htmljs +0 -3
- package/test/autotest/placeholder-tag-name-concise/expected.html +0 -2
- package/test/autotest/placeholder-tag-name-concise/input.htmljs +0 -1
- package/test/autotest/placeholder-tag-name-html/expected.html +0 -2
- package/test/autotest/placeholder-tag-name-html/input.htmljs +0 -1
- package/test/autotest/placeholder-unnamed-attr/expected.html +0 -2
- package/test/autotest/placeholder-unnamed-attr/input.htmljs +0 -1
- package/test/autotest/placeholder-unnamed-attr-escaped/expected.html +0 -2
- package/test/autotest/placeholder-unnamed-attr-escaped/input.htmljs +0 -1
- package/test/autotest/placeholder-unnamed-attr-escaped-escaped/expected.html +0 -2
- package/test/autotest/placeholder-unnamed-attr-escaped-escaped/input.htmljs +0 -1
- package/test/autotest/placeholder-unnamed-attr-last/expected.html +0 -2
- package/test/autotest/placeholder-unnamed-attr-last/input.htmljs +0 -1
- package/test/autotest/placeholder-unnamed-attr-last-concise/expected.html +0 -4
- package/test/autotest/placeholder-unnamed-attr-last-concise/input.htmljs +0 -2
- package/test/autotest/placeholder-unnamed-attr-last-self-closed/expected.html +0 -2
- package/test/autotest/placeholder-unnamed-attr-last-self-closed/input.htmljs +0 -1
- package/test/autotest/placeholder-unnamed-attr-trailing-text/expected.html +0 -1
- package/test/autotest/placeholder-unnamed-attr-trailing-text/input.htmljs +0 -1
- package/test/autotest/placeholder-within-placeholder/expected.html +0 -1
- package/test/autotest/placeholder-within-placeholder/input.htmljs +0 -1
- package/test/autotest/placeholder-within-placeholder-escaping/expected.html +0 -1
- package/test/autotest/placeholder-within-placeholder-escaping/input.htmljs +0 -1
- package/test/autotest/placeholder-within-script-tag/expected.html +0 -5
- package/test/autotest/placeholder-within-script-tag/input.htmljs +0 -1
- package/test/autotest/placeholder-within-script-within-string/expected.html +0 -5
- package/test/autotest/placeholder-within-script-within-string/input.htmljs +0 -1
- package/test/autotest/placeholder-within-string-newlines/expected.html +0 -4
- package/test/autotest/placeholder-within-string-newlines/input.htmljs +0 -3
- package/test/autotest/root-el/expected.html +0 -2
- package/test/autotest/root-el/input.htmljs +0 -1
- package/test/autotest/root-els/expected.html +0 -4
- package/test/autotest/root-els/input.htmljs +0 -2
- package/test/autotest/script/expected.html +0 -3
- package/test/autotest/script/input.htmljs +0 -2
- package/test/autotest/script-concise/expected.html +0 -6
- package/test/autotest/script-concise/input.htmljs +0 -7
- package/test/autotest/script-concise-invalid-nested-tag/expected.html +0 -3
- package/test/autotest/script-concise-invalid-nested-tag/input.htmljs +0 -3
- package/test/autotest/script-empty-concise/expected.html +0 -6
- package/test/autotest/script-empty-concise/input.htmljs +0 -3
- package/test/autotest/script-escaped-placeholder/expected.html +0 -5
- package/test/autotest/script-escaped-placeholder/input.htmljs +0 -4
- package/test/autotest/script-self-closed/expected.html +0 -9
- package/test/autotest/script-self-closed/input.htmljs +0 -4
- package/test/autotest/script-single-line-comment/expected.html +0 -3
- package/test/autotest/script-single-line-comment/input.htmljs +0 -1
- package/test/autotest/scriptlet-block/expected.html +0 -1
- package/test/autotest/scriptlet-block/input.htmljs +0 -4
- package/test/autotest/scriptlet-block-division/expected.html +0 -1
- package/test/autotest/scriptlet-block-division/input.htmljs +0 -4
- package/test/autotest/scriptlet-block-html/expected.html +0 -1
- package/test/autotest/scriptlet-block-html/input.htmljs +0 -6
- package/test/autotest/scriptlet-block-invalid-comment/expected.html +0 -1
- package/test/autotest/scriptlet-block-invalid-comment/input.htmljs +0 -3
- package/test/autotest/scriptlet-block-multiline-comment/expected.html +0 -1
- package/test/autotest/scriptlet-block-multiline-comment/input.htmljs +0 -4
- package/test/autotest/scriptlet-block-nested/expected.html +0 -1
- package/test/autotest/scriptlet-block-nested/input.htmljs +0 -16
- package/test/autotest/scriptlet-block-regex/expected.html +0 -1
- package/test/autotest/scriptlet-block-regex/input.htmljs +0 -4
- package/test/autotest/scriptlet-block-single-line-comment/expected.html +0 -1
- package/test/autotest/scriptlet-block-single-line-comment/input.htmljs +0 -4
- package/test/autotest/scriptlet-block-template-literal-href/expected.html +0 -1
- package/test/autotest/scriptlet-block-template-literal-href/input.htmljs +0 -4
- package/test/autotest/scriptlet-line/expected.html +0 -1
- package/test/autotest/scriptlet-line/input.htmljs +0 -1
- package/test/autotest/scriptlet-line-continue/expected.html +0 -1
- package/test/autotest/scriptlet-line-continue/input.htmljs +0 -3
- package/test/autotest/scriptlet-line-continue-chain/expected.html +0 -3
- package/test/autotest/scriptlet-line-continue-chain/input.htmljs +0 -8
- package/test/autotest/scriptlet-line-html/expected.html +0 -1
- package/test/autotest/scriptlet-line-html/input.htmljs +0 -3
- package/test/autotest/scriptlet-line-multiline-comments/expected.html +0 -5
- package/test/autotest/scriptlet-line-multiline-comments/input.htmljs +0 -7
- package/test/autotest/scriptlet-line-no-middle/expected.html +0 -2
- package/test/autotest/scriptlet-line-no-middle/input.htmljs +0 -1
- package/test/autotest/scriptlet-line-no-middle-html/expected.html +0 -1
- package/test/autotest/scriptlet-line-no-middle-html/input.htmljs +0 -3
- package/test/autotest/scriptlet-line-regex-open-bracket/input.htmljs +0 -1
- package/test/autotest/scriptlet-line-regex-open-bracket/test.js +0 -1
- package/test/autotest/scriptlet-line-regex-open-curly/input.htmljs +0 -1
- package/test/autotest/scriptlet-line-regex-open-curly/test.js +0 -1
- package/test/autotest/scriptlet-line-template-literal/expected.html +0 -1
- package/test/autotest/scriptlet-line-template-literal/input.htmljs +0 -4
- package/test/autotest/scriptlet-line-trailing-line-comment/expected.html +0 -5
- package/test/autotest/scriptlet-line-trailing-line-comment/input.htmljs +0 -5
- package/test/autotest/scriptlet-tag/expected.html +0 -11
- package/test/autotest/scriptlet-tag/input.htmljs +0 -6
- package/test/autotest/scriptlet-tag-html/expected.html +0 -7
- package/test/autotest/scriptlet-tag-html/input.htmljs +0 -8
- package/test/autotest/self-closed-tag/expected.html +0 -2
- package/test/autotest/self-closed-tag/input.htmljs +0 -1
- package/test/autotest/self-closed-tag-attrs/expected.html +0 -2
- package/test/autotest/self-closed-tag-attrs/input.htmljs +0 -1
- package/test/autotest/self-closing-open-tag-only/expected.html +0 -3
- package/test/autotest/self-closing-open-tag-only/input.htmljs +0 -1
- package/test/autotest/semicolon-concise/expected.html +0 -4
- package/test/autotest/semicolon-concise/input.htmljs +0 -2
- package/test/autotest/shorthand-class-dynamic/expected.html +0 -2
- package/test/autotest/shorthand-class-dynamic/input.htmljs +0 -1
- package/test/autotest/shorthand-class-dynamic-literal-prefix/expected.html +0 -2
- package/test/autotest/shorthand-class-dynamic-literal-prefix/input.htmljs +0 -1
- package/test/autotest/shorthand-class-dynamic-literal-suffix/expected.html +0 -2
- package/test/autotest/shorthand-class-dynamic-literal-suffix/input.htmljs +0 -1
- package/test/autotest/shorthand-class-self-closed/expected.html +0 -6
- package/test/autotest/shorthand-class-self-closed/input.htmljs +0 -3
- package/test/autotest/shorthand-closing-html/expected.html +0 -9
- package/test/autotest/shorthand-closing-html/input.htmljs +0 -5
- package/test/autotest/shorthand-closing-html2/expected.html +0 -3
- package/test/autotest/shorthand-closing-html2/input.htmljs +0 -2
- package/test/autotest/shorthand-closing-html3/expected.html +0 -3
- package/test/autotest/shorthand-closing-html3/input.htmljs +0 -2
- package/test/autotest/shorthand-div-id/expected.html +0 -2
- package/test/autotest/shorthand-div-id/input.htmljs +0 -1
- package/test/autotest/shorthand-div-id-class/expected.html +0 -2
- package/test/autotest/shorthand-div-id-class/input.htmljs +0 -1
- package/test/autotest/shorthand-div-id-class-multiple/expected.html +0 -2
- package/test/autotest/shorthand-div-id-class-multiple/input.htmljs +0 -1
- package/test/autotest/shorthand-id/expected.html +0 -2
- package/test/autotest/shorthand-id/input.htmljs +0 -1
- package/test/autotest/shorthand-id-class/expected.html +0 -2
- package/test/autotest/shorthand-id-class/input.htmljs +0 -1
- package/test/autotest/shorthand-id-class-html/expected.html +0 -3
- package/test/autotest/shorthand-id-class-html/input.htmljs +0 -2
- package/test/autotest/shorthand-id-dup/expected.html +0 -1
- package/test/autotest/shorthand-id-dup/input.htmljs +0 -1
- package/test/autotest/shorthand-id-dynamic/expected.html +0 -2
- package/test/autotest/shorthand-id-dynamic/input.htmljs +0 -1
- package/test/autotest/shorthand-id-dynamic-literal-prefix/expected.html +0 -2
- package/test/autotest/shorthand-id-dynamic-literal-prefix/input.htmljs +0 -1
- package/test/autotest/shorthand-id-dynamic-literal-suffix/expected.html +0 -2
- package/test/autotest/shorthand-id-dynamic-literal-suffix/input.htmljs +0 -1
- package/test/autotest/shorthand-id-self-closed/expected.html +0 -6
- package/test/autotest/shorthand-id-self-closed/input.htmljs +0 -3
- package/test/autotest/shorthand-mixed/expected.html +0 -15
- package/test/autotest/shorthand-mixed/input.htmljs +0 -5
- package/test/autotest/shorthand-mixed-concise/expected.html +0 -11
- package/test/autotest/shorthand-mixed-concise/input.htmljs +0 -5
- package/test/autotest/simple-text-delimited/expected.html +0 -1
- package/test/autotest/simple-text-delimited/input.htmljs +0 -3
- package/test/autotest/single-line-text-block/expected.html +0 -2
- package/test/autotest/single-line-text-block/input.htmljs +0 -2
- package/test/autotest/single-line-text-block-nested/expected.html +0 -4
- package/test/autotest/single-line-text-block-nested/input.htmljs +0 -3
- package/test/autotest/single-line-text-block-sibling/expected.html +0 -6
- package/test/autotest/single-line-text-block-sibling/input.htmljs +0 -5
- package/test/autotest/stray-forward-slash-within-open-tag/expected.html +0 -3
- package/test/autotest/stray-forward-slash-within-open-tag/input.htmljs +0 -1
- package/test/autotest/stray-special-chars/expected.html +0 -3
- package/test/autotest/stray-special-chars/input.htmljs +0 -1
- package/test/autotest/strip-bom/expected.html +0 -3
- package/test/autotest/strip-bom/input-good.htmljs +0 -1
- package/test/autotest/strip-bom/input.htmljs +0 -1
- package/test/autotest/strip-bom/input.htmljs.txt +0 -60
- package/test/autotest/tag-name-expression-literal-prefix/expected.html +0 -3
- package/test/autotest/tag-name-expression-literal-prefix/input.htmljs +0 -2
- package/test/autotest/tag-name-expression-literal-prefix-attrs/expected.html +0 -3
- package/test/autotest/tag-name-expression-literal-prefix-attrs/input.htmljs +0 -2
- package/test/autotest/tag-name-expression-literal-prefix-suffix/expected.html +0 -3
- package/test/autotest/tag-name-expression-literal-prefix-suffix/input.htmljs +0 -2
- package/test/autotest/tag-name-expression-literal-suffix/expected.html +0 -3
- package/test/autotest/tag-name-expression-literal-suffix/input.htmljs +0 -2
- package/test/autotest/tag-name-expression-shorthand-id/expected.html +0 -2
- package/test/autotest/tag-name-expression-shorthand-id/input.htmljs +0 -1
- package/test/autotest/tag-name-expression-simple/expected.html +0 -3
- package/test/autotest/tag-name-expression-simple/input.htmljs +0 -2
- package/test/autotest/tag-name-expression-simple-empty-close/expected.html +0 -3
- package/test/autotest/tag-name-expression-simple-empty-close/input.htmljs +0 -2
- package/test/autotest/tag-var-declaration/expected.html +0 -38
- package/test/autotest/tag-var-declaration/input.htmljs +0 -19
- package/test/autotest/tag-var-with-params/expected.html +0 -5
- package/test/autotest/tag-var-with-params/input.htmljs +0 -3
- package/test/autotest/text-after-semicolon/expected.html +0 -15
- package/test/autotest/text-after-semicolon/input.htmljs +0 -8
- package/test/autotest/text-after-tag/expected.html +0 -3
- package/test/autotest/text-after-tag/input.htmljs +0 -1
- package/test/autotest/text-parse-mode-concise/expected.html +0 -5
- package/test/autotest/text-parse-mode-concise/input.htmljs +0 -3
- package/test/autotest/text-parse-mode-concise/test.js +0 -1
- package/test/autotest/text-parse-mode-delimited-block/expected.html +0 -8
- package/test/autotest/text-parse-mode-delimited-block/input.htmljs +0 -6
- package/test/autotest/text-parse-mode-delimited-block/test.js +0 -1
- package/test/autotest/text-parse-mode-html/expected.html +0 -7
- package/test/autotest/text-parse-mode-html/input.htmljs +0 -3
- package/test/autotest/text-parse-mode-html/test.js +0 -1
- package/test/autotest/text-parse-mode-parsed-text/expected.html +0 -11
- package/test/autotest/text-parse-mode-parsed-text/input.htmljs +0 -7
- package/test/autotest/text-parse-mode-parsed-text/test.js +0 -7
- package/test/autotest/text-parse-mode-static-text/expected.html +0 -11
- package/test/autotest/text-parse-mode-static-text/input.htmljs +0 -7
- package/test/autotest/text-parse-mode-static-text/test.js +0 -7
- package/test/autotest/textarea/expected.html +0 -5
- package/test/autotest/textarea/input.htmljs +0 -2
- package/test/autotest/textarea/test.js +0 -0
- package/test/autotest/var/expected.html +0 -9
- package/test/autotest/var/input.htmljs +0 -5
- package/test/autotest/var-new-Date/expected.html +0 -2
- package/test/autotest/var-new-Date/input.htmljs +0 -1
- package/test/autotest/whitespace-around-equals/expected.html +0 -2
- package/test/autotest/whitespace-around-equals/input.htmljs +0 -1
- package/test/autotest/whitespace-empty-lines/expected.html +0 -7
- package/test/autotest/whitespace-empty-lines/input.htmljs +0 -4
- package/test/autotest/whitespace-empty-lines-indent/expected.html +0 -8
- package/test/autotest/whitespace-empty-lines-indent/input.htmljs +0 -4
- package/test/autotest/whitespace-newline/expected.html +0 -7
- package/test/autotest/whitespace-newline/input.htmljs +0 -6
- package/test/autotest/whitespace-newline-indent/expected.html +0 -7
- package/test/autotest/whitespace-newline-indent/input.htmljs +0 -6
- package/test/autotest/whitespace-only-reset-indent/expected.html +0 -6
- package/test/autotest/whitespace-only-reset-indent/input.htmljs +0 -3
- package/test/autotest/windows-line-ending/expected.html +0 -10
- package/test/autotest/windows-line-ending/test.js +0 -11
- package/test/autotest/xml-declaration/expected.html +0 -5
- package/test/autotest/xml-declaration/input.htmljs +0 -2
- package/test/autotest/xml-declaration-ill-formed/expected.html +0 -5
- package/test/autotest/xml-declaration-ill-formed/input.htmljs +0 -2
- package/test/autotest-1.x/argument-attr/expected.html +0 -2
- package/test/autotest-1.x/argument-attr/input.htmljs +0 -1
- package/test/autotest-1.x/argument-attr-extra-whitespace/expected.html +0 -4
- package/test/autotest-1.x/argument-attr-extra-whitespace/input.htmljs +0 -2
- package/test/autotest-1.x/argument-attr-multiple/expected.html +0 -1
- package/test/autotest-1.x/argument-attr-multiple/input.htmljs +0 -1
- package/test/autotest-1.x/argument-tag/expected.html +0 -2
- package/test/autotest-1.x/argument-tag/input.htmljs +0 -1
- package/test/autotest-1.x/argument-tag-attr/expected.html +0 -2
- package/test/autotest-1.x/argument-tag-attr/input.htmljs +0 -1
- package/test/autotest-1.x/argument-tag-complex/expected.html +0 -2
- package/test/autotest-1.x/argument-tag-complex/input.htmljs +0 -1
- package/test/autotest-1.x/argument-tag-extra-whitespace/expected.html +0 -2
- package/test/autotest-1.x/argument-tag-extra-whitespace/input.htmljs +0 -1
- package/test/autotest-1.x/argument-tag-multiple/expected.html +0 -1
- package/test/autotest-1.x/argument-tag-multiple/input.htmljs +0 -1
- package/test/autotest-1.x/argument-tag-nested-parens/expected.html +0 -3
- package/test/autotest-1.x/argument-tag-nested-parens/input.htmljs +0 -4
- package/test/autotest-1.x/attr-complex/expected.html +0 -1
- package/test/autotest-1.x/attr-complex/input.htmljs +0 -1
- package/test/autotest-1.x/attr-escape-characters/expected.html +0 -3
- package/test/autotest-1.x/attr-escape-characters/input.htmljs +0 -3
- package/test/autotest-1.x/attr-escaped-dollar/expected.html +0 -1
- package/test/autotest-1.x/attr-escaped-dollar/input.htmljs +0 -1
- package/test/autotest-1.x/attr-escaped-dollar/test.js +0 -5
- package/test/autotest-1.x/attr-grouped/expected.html +0 -3
- package/test/autotest-1.x/attr-grouped/input.htmljs +0 -5
- package/test/autotest-1.x/attr-grouped-2/expected.html +0 -3
- package/test/autotest-1.x/attr-grouped-2/input.htmljs +0 -5
- package/test/autotest-1.x/attr-grouped-3/expected.html +0 -3
- package/test/autotest-1.x/attr-grouped-3/input.htmljs +0 -5
- package/test/autotest-1.x/attr-grouped-4/expected.html +0 -3
- package/test/autotest-1.x/attr-grouped-4/input.htmljs +0 -5
- package/test/autotest-1.x/attr-grouped-invalid/expected.html +0 -1
- package/test/autotest-1.x/attr-grouped-invalid/input.htmljs +0 -5
- package/test/autotest-1.x/attr-grouped-invalid-eof/expected.html +0 -1
- package/test/autotest-1.x/attr-grouped-invalid-eof/input.htmljs +0 -4
- package/test/autotest-1.x/attr-grouped-multiple/expected.html +0 -3
- package/test/autotest-1.x/attr-grouped-multiple/input.htmljs +0 -4
- package/test/autotest-1.x/attr-int-and-id/expected.html +0 -2
- package/test/autotest-1.x/attr-int-and-id/input.htmljs +0 -1
- package/test/autotest-1.x/attr-literal-false/expected.html +0 -2
- package/test/autotest-1.x/attr-literal-false/input.htmljs +0 -1
- package/test/autotest-1.x/attr-literal-false/test.js +0 -1
- package/test/autotest-1.x/attr-literal-null/expected.html +0 -2
- package/test/autotest-1.x/attr-literal-null/input.htmljs +0 -1
- package/test/autotest-1.x/attr-literal-null/test.js +0 -1
- package/test/autotest-1.x/attr-literal-numbers/expected.html +0 -2
- package/test/autotest-1.x/attr-literal-numbers/input.htmljs +0 -1
- package/test/autotest-1.x/attr-literal-numbers/test.js +0 -1
- package/test/autotest-1.x/attr-literal-string-double-quotes/expected.html +0 -2
- package/test/autotest-1.x/attr-literal-string-double-quotes/input.htmljs +0 -1
- package/test/autotest-1.x/attr-literal-string-double-quotes/test.js +0 -1
- package/test/autotest-1.x/attr-literal-string-single-quotes/expected.html +0 -2
- package/test/autotest-1.x/attr-literal-string-single-quotes/input.htmljs +0 -1
- package/test/autotest-1.x/attr-literal-string-single-quotes/test.js +0 -1
- package/test/autotest-1.x/attr-literal-true/expected.html +0 -2
- package/test/autotest-1.x/attr-literal-true/input.htmljs +0 -1
- package/test/autotest-1.x/attr-literal-true/test.js +0 -1
- package/test/autotest-1.x/attr-literal-undefined/expected.html +0 -2
- package/test/autotest-1.x/attr-literal-undefined/input.htmljs +0 -1
- package/test/autotest-1.x/attr-literal-undefined/test.js +0 -1
- package/test/autotest-1.x/attr-multi-line-comment/expected.html +0 -3
- package/test/autotest-1.x/attr-multi-line-comment/input.htmljs +0 -1
- package/test/autotest-1.x/attr-multi-line-string/expected.html +0 -2
- package/test/autotest-1.x/attr-multi-line-string/input.htmljs +0 -3
- package/test/autotest-1.x/attr-name-with-html-chars/expected.html +0 -1
- package/test/autotest-1.x/attr-name-with-html-chars/input.htmljs +0 -1
- package/test/autotest-1.x/attr-no-value/expected.html +0 -3
- package/test/autotest-1.x/attr-no-value/input.htmljs +0 -1
- package/test/autotest-1.x/attr-no-value-self-closed/expected.html +0 -2
- package/test/autotest-1.x/attr-no-value-self-closed/input.htmljs +0 -1
- package/test/autotest-1.x/attr-non-literal/expected.html +0 -5
- package/test/autotest-1.x/attr-non-literal/input.htmljs +0 -2
- package/test/autotest-1.x/attr-non-literal/test.js +0 -1
- package/test/autotest-1.x/attr-object-expressions/expected.html +0 -4
- package/test/autotest-1.x/attr-object-expressions/input.htmljs +0 -3
- package/test/autotest-1.x/attr-simple-expression/expected.html +0 -3
- package/test/autotest-1.x/attr-simple-expression/input.htmljs +0 -1
- package/test/autotest-1.x/attr-value-self-closed/expected.html +0 -2
- package/test/autotest-1.x/attr-value-self-closed/input.htmljs +0 -1
- package/test/autotest-1.x/attr-with-parens-and-double-quoted-strings/expected.html +0 -2
- package/test/autotest-1.x/attr-with-parens-and-double-quoted-strings/input.htmljs +0 -1
- package/test/autotest-1.x/attr-with-parens-and-single-quoted-strings/expected.html +0 -2
- package/test/autotest-1.x/attr-with-parens-and-single-quoted-strings/input.htmljs +0 -1
- package/test/autotest-1.x/attr-with-right-angle-bracket/expected.html +0 -3
- package/test/autotest-1.x/attr-with-right-angle-bracket/input.htmljs +0 -1
- package/test/autotest-1.x/attr-with-right-angle-bracket-parens/expected.html +0 -3
- package/test/autotest-1.x/attr-with-right-angle-bracket-parens/input.htmljs +0 -1
- package/test/autotest-1.x/attr-without-delimiters/expected.html +0 -2
- package/test/autotest-1.x/attr-without-delimiters/input.htmljs +0 -1
- package/test/autotest-1.x/backtick-string/expected.html +0 -3
- package/test/autotest-1.x/backtick-string/input.htmljs +0 -2
- package/test/autotest-1.x/backtick-string-eof/expected.html +0 -1
- package/test/autotest-1.x/backtick-string-eof/input.htmljs +0 -2
- package/test/autotest-1.x/bad-tag-indent/expected.html +0 -1
- package/test/autotest-1.x/bad-tag-indent/input.htmljs +0 -1
- package/test/autotest-1.x/cdata/expected.html +0 -3
- package/test/autotest-1.x/cdata/input.htmljs +0 -1
- package/test/autotest-1.x/cdata-2/expected.html +0 -5
- package/test/autotest-1.x/cdata-2/input.htmljs +0 -3
- package/test/autotest-1.x/cdata-pos/expected.html +0 -7
- package/test/autotest-1.x/cdata-pos/input.htmljs +0 -4
- package/test/autotest-1.x/cdata-pos/test.js +0 -1
- package/test/autotest-1.x/comment-concise-js-block/expected.html +0 -4
- package/test/autotest-1.x/comment-concise-js-block/input.htmljs +0 -6
- package/test/autotest-1.x/comment-concise-js-block-trailing/expected.html +0 -4
- package/test/autotest-1.x/comment-concise-js-block-trailing/input.htmljs +0 -6
- package/test/autotest-1.x/comment-concise-js-line/expected.html +0 -4
- package/test/autotest-1.x/comment-concise-js-line/input.htmljs +0 -3
- package/test/autotest-1.x/comments-within-open-tag/expected.html +0 -2
- package/test/autotest-1.x/comments-within-open-tag/input.htmljs +0 -1
- package/test/autotest-1.x/complex/expected.html +0 -24
- package/test/autotest-1.x/complex/input.htmljs +0 -22
- package/test/autotest-1.x/complex-attr-name/expected.html +0 -2
- package/test/autotest-1.x/complex-attr-name/input.htmljs +0 -1
- package/test/autotest-1.x/concise-complex-tag-name/expected.html +0 -2
- package/test/autotest-1.x/concise-complex-tag-name/input.htmljs +0 -1
- package/test/autotest-1.x/concise-contentplaceholder-html-start/expected.html +0 -5
- package/test/autotest-1.x/concise-contentplaceholder-html-start/input.htmljs +0 -1
- package/test/autotest-1.x/concise-contentplaceholder-start/expected.html +0 -1
- package/test/autotest-1.x/concise-contentplaceholder-start/input.htmljs +0 -1
- package/test/autotest-1.x/declaration/expected.html +0 -1
- package/test/autotest-1.x/declaration/input.htmljs +0 -1
- package/test/autotest-1.x/double-hyphen-block/expected.html +0 -12
- package/test/autotest-1.x/double-hyphen-block/input.htmljs +0 -8
- package/test/autotest-1.x/double-hyphen-line/expected.html +0 -12
- package/test/autotest-1.x/double-hyphen-line/input.htmljs +0 -5
- package/test/autotest-1.x/double-hyphen-line-start/expected.html +0 -12
- package/test/autotest-1.x/double-hyphen-line-start/input.htmljs +0 -6
- package/test/autotest-1.x/dtd/expected.html +0 -1
- package/test/autotest-1.x/dtd/input.htmljs +0 -1
- package/test/autotest-1.x/empty-closing-tag/expected.html +0 -8
- package/test/autotest-1.x/empty-closing-tag/input.htmljs +0 -6
- package/test/autotest-1.x/empty-closing-tag2/expected.html +0 -9
- package/test/autotest-1.x/empty-closing-tag2/input.htmljs +0 -5
- package/test/autotest-1.x/eof-attr-argument/expected.html +0 -1
- package/test/autotest-1.x/eof-attr-argument/input.htmljs +0 -1
- package/test/autotest-1.x/eof-attr-name/expected.html +0 -3
- package/test/autotest-1.x/eof-attr-name/input.htmljs +0 -1
- package/test/autotest-1.x/eof-attr-value/expected.html +0 -3
- package/test/autotest-1.x/eof-attr-value/input.htmljs +0 -1
- package/test/autotest-1.x/eof-attr-value-js-comment-comment/expected.html +0 -3
- package/test/autotest-1.x/eof-attr-value-js-comment-comment/input.htmljs +0 -1
- package/test/autotest-1.x/eof-attr-value-js-comment-comment-concise/expected.html +0 -1
- package/test/autotest-1.x/eof-attr-value-js-comment-comment-concise/input.htmljs +0 -1
- package/test/autotest-1.x/eof-attr-value-string/expected.html +0 -1
- package/test/autotest-1.x/eof-attr-value-string/input.htmljs +0 -1
- package/test/autotest-1.x/eof-doctype/expected.html +0 -1
- package/test/autotest-1.x/eof-doctype/input.htmljs +0 -1
- package/test/autotest-1.x/eof-placeholder-body-escaped/expected.html +0 -4
- package/test/autotest-1.x/eof-placeholder-body-escaped/input.htmljs +0 -1
- package/test/autotest-1.x/eof-placeholder-body-non-escaped/expected.html +0 -4
- package/test/autotest-1.x/eof-placeholder-body-non-escaped/input.htmljs +0 -4
- package/test/autotest-1.x/eof-placeholder-concise/expected.html +0 -3
- package/test/autotest-1.x/eof-placeholder-concise/input.htmljs +0 -2
- package/test/autotest-1.x/eof-placeholder-script-body-escaped/expected.html +0 -4
- package/test/autotest-1.x/eof-placeholder-script-body-escaped/input.htmljs +0 -1
- package/test/autotest-1.x/eof-placeholder-script-body-non-escaped/expected.html +0 -4
- package/test/autotest-1.x/eof-placeholder-script-body-non-escaped/input.htmljs +0 -1
- package/test/autotest-1.x/eof-placeholder-string/expected.html +0 -4
- package/test/autotest-1.x/eof-placeholder-string/input.htmljs +0 -1
- package/test/autotest-1.x/eof-script-body/expected.html +0 -4
- package/test/autotest-1.x/eof-script-body/input.htmljs +0 -2
- package/test/autotest-1.x/eof-style/expected.html +0 -4
- package/test/autotest-1.x/eof-style/input.htmljs +0 -1
- package/test/autotest-1.x/eof-tag-start/expected.html +0 -3
- package/test/autotest-1.x/eof-tag-start/input.htmljs +0 -1
- package/test/autotest-1.x/eof-xml-declaration/expected.html +0 -1
- package/test/autotest-1.x/eof-xml-declaration/input.htmljs +0 -1
- package/test/autotest-1.x/html-block-after-tag/expected.html +0 -6
- package/test/autotest-1.x/html-block-after-tag/input.htmljs +0 -1
- package/test/autotest-1.x/html-comments/expected.html +0 -3
- package/test/autotest-1.x/html-comments/input.htmljs +0 -1
- package/test/autotest-1.x/html-comments-ignore-placeholders/expected.html +0 -1
- package/test/autotest-1.x/html-comments-ignore-placeholders/input.htmljs +0 -1
- package/test/autotest-1.x/ignorePlaceholders-attr-double-escaped-dollar-placeholder/expected.html +0 -2
- package/test/autotest-1.x/ignorePlaceholders-attr-double-escaped-dollar-placeholder/input.htmljs +0 -1
- package/test/autotest-1.x/ignorePlaceholders-attr-double-escaped-dollar-placeholder/test.js +0 -1
- package/test/autotest-1.x/ignorePlaceholders-attr-escaped-dollar-placeholder/expected.html +0 -2
- package/test/autotest-1.x/ignorePlaceholders-attr-escaped-dollar-placeholder/input.htmljs +0 -1
- package/test/autotest-1.x/ignorePlaceholders-attr-escaped-dollar-placeholder/test.js +0 -1
- package/test/autotest-1.x/ignorePlaceholders-attr-placeholder/expected.html +0 -2
- package/test/autotest-1.x/ignorePlaceholders-attr-placeholder/input.htmljs +0 -1
- package/test/autotest-1.x/ignorePlaceholders-attr-placeholder/test.js +0 -1
- package/test/autotest-1.x/invalid-closing-tag/expected.html +0 -4
- package/test/autotest-1.x/invalid-closing-tag/input.htmljs +0 -1
- package/test/autotest-1.x/mixed/expected.html +0 -21
- package/test/autotest-1.x/mixed/input.htmljs +0 -8
- package/test/autotest-1.x/mixed-bad-indentation/expected.html +0 -7
- package/test/autotest-1.x/mixed-bad-indentation/input.htmljs +0 -3
- package/test/autotest-1.x/mixed-cdata/expected.html +0 -7
- package/test/autotest-1.x/mixed-cdata/input.htmljs +0 -3
- package/test/autotest-1.x/mixed-comment/expected.html +0 -7
- package/test/autotest-1.x/mixed-comment/input.htmljs +0 -6
- package/test/autotest-1.x/mixed-invalid/expected.html +0 -16
- package/test/autotest-1.x/mixed-invalid/input.htmljs +0 -9
- package/test/autotest-1.x/mixed-open-tag-only/expected.html +0 -14
- package/test/autotest-1.x/mixed-open-tag-only/input.htmljs +0 -6
- package/test/autotest-1.x/multiline-html-block/expected.html +0 -5
- package/test/autotest-1.x/multiline-html-block/input.htmljs +0 -4
- package/test/autotest-1.x/multiline-html-block-empty/expected.html +0 -0
- package/test/autotest-1.x/multiline-html-block-empty/input.htmljs +0 -2
- package/test/autotest-1.x/multiline-html-block-missing-end/expected.html +0 -1
- package/test/autotest-1.x/multiline-html-block-missing-end/input.htmljs +0 -3
- package/test/autotest-1.x/multiline-html-block-nested/expected.html +0 -7
- package/test/autotest-1.x/multiline-html-block-nested/input.htmljs +0 -5
- package/test/autotest-1.x/multiline-html-block-nested-empty/expected.html +0 -2
- package/test/autotest-1.x/multiline-html-block-nested-empty/input.htmljs +0 -3
- package/test/autotest-1.x/multiline-text-block/expected.html +0 -1
- package/test/autotest-1.x/multiline-text-block/input.htmljs +0 -4
- package/test/autotest-1.x/multiline-text-block-bad/expected.html +0 -1
- package/test/autotest-1.x/multiline-text-block-bad/input.htmljs +0 -5
- package/test/autotest-1.x/multiline-text-block-with-hyphens/expected.html +0 -1
- package/test/autotest-1.x/multiline-text-block-with-hyphens/input.htmljs +0 -4
- package/test/autotest-1.x/nested-pyramid/expected.html +0 -12
- package/test/autotest-1.x/nested-pyramid/input.htmljs +0 -6
- package/test/autotest-1.x/nested-siblings/expected.html +0 -6
- package/test/autotest-1.x/nested-siblings/input.htmljs +0 -3
- package/test/autotest-1.x/nested-tags/expected.html +0 -4
- package/test/autotest-1.x/nested-tags/input.htmljs +0 -2
- package/test/autotest-1.x/nested-text/expected.html +0 -8
- package/test/autotest-1.x/nested-text/input.htmljs +0 -8
- package/test/autotest-1.x/new-attr-prefix/expected.html +0 -3
- package/test/autotest-1.x/new-attr-prefix/input.htmljs +0 -1
- package/test/autotest-1.x/open-tag-only/expected.html +0 -12
- package/test/autotest-1.x/open-tag-only/input.htmljs +0 -1
- package/test/autotest-1.x/open-tag-only-custom/expected.html +0 -10
- package/test/autotest-1.x/open-tag-only-custom/input.htmljs +0 -4
- package/test/autotest-1.x/open-tag-only-custom/test.js +0 -9
- package/test/autotest-1.x/open-tag-only-with-body/expected.html +0 -4
- package/test/autotest-1.x/open-tag-only-with-body/input.htmljs +0 -5
- package/test/autotest-1.x/open-tag-only-with-body-concise/expected.html +0 -3
- package/test/autotest-1.x/open-tag-only-with-body-concise/input.htmljs +0 -2
- package/test/autotest-1.x/open-tag-parser-state/expected.html +0 -21
- package/test/autotest-1.x/open-tag-parser-state/input.htmljs +0 -11
- package/test/autotest-1.x/open-tag-parser-state/test.js +0 -21
- package/test/autotest-1.x/open-tag-parser-state-concise/expected.html +0 -19
- package/test/autotest-1.x/open-tag-parser-state-concise/input.htmljs +0 -17
- package/test/autotest-1.x/open-tag-parser-state-concise/test.js +0 -17
- package/test/autotest-1.x/parsed-text-style-tag/expected.html +0 -3
- package/test/autotest-1.x/parsed-text-style-tag/input.htmljs +0 -1
- package/test/autotest-1.x/parsed-text-style-tag-class/expected.html +0 -12
- package/test/autotest-1.x/parsed-text-style-tag-class/input.htmljs +0 -3
- package/test/autotest-1.x/placeholder-attr-invalid/expected.html +0 -1
- package/test/autotest-1.x/placeholder-attr-invalid/input.htmljs +0 -1
- package/test/autotest-1.x/placeholder-attr-string-value/expected.html +0 -3
- package/test/autotest-1.x/placeholder-attr-string-value/input.htmljs +0 -1
- package/test/autotest-1.x/placeholder-attr-string-value-mixed-quotes/expected.html +0 -3
- package/test/autotest-1.x/placeholder-attr-string-value-mixed-quotes/input.htmljs +0 -1
- package/test/autotest-1.x/placeholder-attr-string-value-parens/expected.html +0 -3
- package/test/autotest-1.x/placeholder-attr-string-value-parens/input.htmljs +0 -1
- package/test/autotest-1.x/placeholder-attr-within-placeholder/expected.html +0 -2
- package/test/autotest-1.x/placeholder-attr-within-placeholder/input.htmljs +0 -1
- package/test/autotest-1.x/placeholder-attr-within-string-complex/expected.html +0 -2
- package/test/autotest-1.x/placeholder-attr-within-string-complex/input.htmljs +0 -1
- package/test/autotest-1.x/placeholder-attr-within-string-simple/expected.html +0 -2
- package/test/autotest-1.x/placeholder-attr-within-string-simple/input.htmljs +0 -1
- package/test/autotest-1.x/placeholder-attr-wrapped/expected.html +0 -2
- package/test/autotest-1.x/placeholder-attr-wrapped/input.htmljs +0 -1
- package/test/autotest-1.x/placeholder-backslash/expected.html +0 -23
- package/test/autotest-1.x/placeholder-backslash/input.htmljs +0 -15
- package/test/autotest-1.x/placeholder-body-multi-line-js-comment/expected.html +0 -3
- package/test/autotest-1.x/placeholder-body-multi-line-js-comment/input.htmljs +0 -1
- package/test/autotest-1.x/placeholder-body-single-line-js-comment/expected.html +0 -3
- package/test/autotest-1.x/placeholder-body-single-line-js-comment/input.htmljs +0 -2
- package/test/autotest-1.x/placeholder-body-text/expected.html +0 -5
- package/test/autotest-1.x/placeholder-body-text/input.htmljs +0 -1
- package/test/autotest-1.x/placeholder-escape/expected.html +0 -5
- package/test/autotest-1.x/placeholder-escape/input.htmljs +0 -3
- package/test/autotest-1.x/placeholder-no-escape/expected.html +0 -5
- package/test/autotest-1.x/placeholder-no-escape/input.htmljs +0 -3
- package/test/autotest-1.x/placeholder-unnamed-attr/expected.html +0 -2
- package/test/autotest-1.x/placeholder-unnamed-attr/input.htmljs +0 -1
- package/test/autotest-1.x/placeholder-unnamed-attr-escaped/expected.html +0 -2
- package/test/autotest-1.x/placeholder-unnamed-attr-escaped/input.htmljs +0 -1
- package/test/autotest-1.x/placeholder-unnamed-attr-escaped-escaped/expected.html +0 -2
- package/test/autotest-1.x/placeholder-unnamed-attr-escaped-escaped/input.htmljs +0 -1
- package/test/autotest-1.x/placeholder-unnamed-attr-last/expected.html +0 -2
- package/test/autotest-1.x/placeholder-unnamed-attr-last/input.htmljs +0 -1
- package/test/autotest-1.x/placeholder-unnamed-attr-last-concise/expected.html +0 -4
- package/test/autotest-1.x/placeholder-unnamed-attr-last-concise/input.htmljs +0 -2
- package/test/autotest-1.x/placeholder-unnamed-attr-last-self-closed/expected.html +0 -2
- package/test/autotest-1.x/placeholder-unnamed-attr-last-self-closed/input.htmljs +0 -1
- package/test/autotest-1.x/placeholder-unnamed-attr-trailing-text/expected.html +0 -1
- package/test/autotest-1.x/placeholder-unnamed-attr-trailing-text/input.htmljs +0 -1
- package/test/autotest-1.x/placeholder-within-placeholder/expected.html +0 -1
- package/test/autotest-1.x/placeholder-within-placeholder/input.htmljs +0 -1
- package/test/autotest-1.x/placeholder-within-placeholder-escaping/expected.html +0 -1
- package/test/autotest-1.x/placeholder-within-placeholder-escaping/input.htmljs +0 -1
- package/test/autotest-1.x/placeholder-within-script-tag/expected.html +0 -5
- package/test/autotest-1.x/placeholder-within-script-tag/input.htmljs +0 -1
- package/test/autotest-1.x/placeholder-within-script-within-string/expected.html +0 -5
- package/test/autotest-1.x/placeholder-within-script-within-string/input.htmljs +0 -1
- package/test/autotest-1.x/placeholder-within-string-newlines/expected.html +0 -4
- package/test/autotest-1.x/placeholder-within-string-newlines/input.htmljs +0 -3
- package/test/autotest-1.x/root-el/expected.html +0 -2
- package/test/autotest-1.x/root-el/input.htmljs +0 -1
- package/test/autotest-1.x/root-els/expected.html +0 -4
- package/test/autotest-1.x/root-els/input.htmljs +0 -2
- package/test/autotest-1.x/script/expected.html +0 -3
- package/test/autotest-1.x/script/input.htmljs +0 -2
- package/test/autotest-1.x/script-concise/expected.html +0 -6
- package/test/autotest-1.x/script-concise/input.htmljs +0 -7
- package/test/autotest-1.x/script-concise-invalid-nested-tag/expected.html +0 -3
- package/test/autotest-1.x/script-concise-invalid-nested-tag/input.htmljs +0 -3
- package/test/autotest-1.x/script-empty-concise/expected.html +0 -6
- package/test/autotest-1.x/script-empty-concise/input.htmljs +0 -3
- package/test/autotest-1.x/script-self-closed/expected.html +0 -9
- package/test/autotest-1.x/script-self-closed/input.htmljs +0 -4
- package/test/autotest-1.x/script-single-line-comment/expected.html +0 -3
- package/test/autotest-1.x/script-single-line-comment/input.htmljs +0 -1
- package/test/autotest-1.x/scriptlet/expected.html +0 -11
- package/test/autotest-1.x/scriptlet/input.htmljs +0 -6
- package/test/autotest-1.x/scriptlet-html-block/expected.html +0 -7
- package/test/autotest-1.x/scriptlet-html-block/input.htmljs +0 -8
- package/test/autotest-1.x/self-closed-tag/expected.html +0 -2
- package/test/autotest-1.x/self-closed-tag/input.htmljs +0 -1
- package/test/autotest-1.x/self-closed-tag-attrs/expected.html +0 -2
- package/test/autotest-1.x/self-closed-tag-attrs/input.htmljs +0 -1
- package/test/autotest-1.x/self-closing-open-tag-only/expected.html +0 -3
- package/test/autotest-1.x/self-closing-open-tag-only/input.htmljs +0 -1
- package/test/autotest-1.x/shorthand-class-dynamic/expected.html +0 -2
- package/test/autotest-1.x/shorthand-class-dynamic/input.htmljs +0 -1
- package/test/autotest-1.x/shorthand-class-dynamic-literal-prefix/expected.html +0 -2
- package/test/autotest-1.x/shorthand-class-dynamic-literal-prefix/input.htmljs +0 -1
- package/test/autotest-1.x/shorthand-class-dynamic-literal-suffix/expected.html +0 -2
- package/test/autotest-1.x/shorthand-class-dynamic-literal-suffix/input.htmljs +0 -1
- package/test/autotest-1.x/shorthand-class-self-closed/expected.html +0 -6
- package/test/autotest-1.x/shorthand-class-self-closed/input.htmljs +0 -3
- package/test/autotest-1.x/shorthand-closing-html/expected.html +0 -9
- package/test/autotest-1.x/shorthand-closing-html/input.htmljs +0 -5
- package/test/autotest-1.x/shorthand-closing-html2/expected.html +0 -3
- package/test/autotest-1.x/shorthand-closing-html2/input.htmljs +0 -2
- package/test/autotest-1.x/shorthand-closing-html3/expected.html +0 -3
- package/test/autotest-1.x/shorthand-closing-html3/input.htmljs +0 -2
- package/test/autotest-1.x/shorthand-div-id/expected.html +0 -2
- package/test/autotest-1.x/shorthand-div-id/input.htmljs +0 -1
- package/test/autotest-1.x/shorthand-div-id-class/expected.html +0 -2
- package/test/autotest-1.x/shorthand-div-id-class/input.htmljs +0 -1
- package/test/autotest-1.x/shorthand-div-id-class-multiple/expected.html +0 -2
- package/test/autotest-1.x/shorthand-div-id-class-multiple/input.htmljs +0 -1
- package/test/autotest-1.x/shorthand-id/expected.html +0 -2
- package/test/autotest-1.x/shorthand-id/input.htmljs +0 -1
- package/test/autotest-1.x/shorthand-id-class/expected.html +0 -2
- package/test/autotest-1.x/shorthand-id-class/input.htmljs +0 -1
- package/test/autotest-1.x/shorthand-id-class-html/expected.html +0 -3
- package/test/autotest-1.x/shorthand-id-class-html/input.htmljs +0 -2
- package/test/autotest-1.x/shorthand-id-dup/expected.html +0 -1
- package/test/autotest-1.x/shorthand-id-dup/input.htmljs +0 -1
- package/test/autotest-1.x/shorthand-id-dynamic/expected.html +0 -2
- package/test/autotest-1.x/shorthand-id-dynamic/input.htmljs +0 -1
- package/test/autotest-1.x/shorthand-id-dynamic-literal-prefix/expected.html +0 -2
- package/test/autotest-1.x/shorthand-id-dynamic-literal-prefix/input.htmljs +0 -1
- package/test/autotest-1.x/shorthand-id-dynamic-literal-suffix/expected.html +0 -2
- package/test/autotest-1.x/shorthand-id-dynamic-literal-suffix/input.htmljs +0 -1
- package/test/autotest-1.x/shorthand-id-self-closed/expected.html +0 -6
- package/test/autotest-1.x/shorthand-id-self-closed/input.htmljs +0 -3
- package/test/autotest-1.x/shorthand-mixed/expected.html +0 -15
- package/test/autotest-1.x/shorthand-mixed/input.htmljs +0 -5
- package/test/autotest-1.x/shorthand-mixed-concise/expected.html +0 -11
- package/test/autotest-1.x/shorthand-mixed-concise/input.htmljs +0 -5
- package/test/autotest-1.x/simple-text-delimited/expected.html +0 -1
- package/test/autotest-1.x/simple-text-delimited/input.htmljs +0 -3
- package/test/autotest-1.x/single-hyphen-after-attr/expected.html +0 -3
- package/test/autotest-1.x/single-hyphen-after-attr/input.htmljs +0 -1
- package/test/autotest-1.x/single-line-text-block/expected.html +0 -2
- package/test/autotest-1.x/single-line-text-block/input.htmljs +0 -2
- package/test/autotest-1.x/single-line-text-block-nested/expected.html +0 -4
- package/test/autotest-1.x/single-line-text-block-nested/input.htmljs +0 -3
- package/test/autotest-1.x/single-line-text-block-sibling/expected.html +0 -6
- package/test/autotest-1.x/single-line-text-block-sibling/input.htmljs +0 -5
- package/test/autotest-1.x/stray-forward-slash-within-open-tag/expected.html +0 -3
- package/test/autotest-1.x/stray-forward-slash-within-open-tag/input.htmljs +0 -1
- package/test/autotest-1.x/stray-special-chars/expected.html +0 -3
- package/test/autotest-1.x/stray-special-chars/input.htmljs +0 -1
- package/test/autotest-1.x/strip-bom/expected.html +0 -3
- package/test/autotest-1.x/strip-bom/input-good.htmljs +0 -1
- package/test/autotest-1.x/strip-bom/input.htmljs +0 -1
- package/test/autotest-1.x/strip-bom/input.htmljs.txt +0 -60
- package/test/autotest-1.x/tag-name-expression-literal-prefix/expected.html +0 -3
- package/test/autotest-1.x/tag-name-expression-literal-prefix/input.htmljs +0 -2
- package/test/autotest-1.x/tag-name-expression-literal-prefix-attrs/expected.html +0 -3
- package/test/autotest-1.x/tag-name-expression-literal-prefix-attrs/input.htmljs +0 -2
- package/test/autotest-1.x/tag-name-expression-literal-prefix-suffix/expected.html +0 -3
- package/test/autotest-1.x/tag-name-expression-literal-prefix-suffix/input.htmljs +0 -2
- package/test/autotest-1.x/tag-name-expression-literal-suffix/expected.html +0 -3
- package/test/autotest-1.x/tag-name-expression-literal-suffix/input.htmljs +0 -2
- package/test/autotest-1.x/tag-name-expression-shorthand-id/expected.html +0 -2
- package/test/autotest-1.x/tag-name-expression-shorthand-id/input.htmljs +0 -1
- package/test/autotest-1.x/tag-name-expression-simple/expected.html +0 -3
- package/test/autotest-1.x/tag-name-expression-simple/input.htmljs +0 -2
- package/test/autotest-1.x/tag-name-expression-simple-empty-close/expected.html +0 -3
- package/test/autotest-1.x/tag-name-expression-simple-empty-close/input.htmljs +0 -2
- package/test/autotest-1.x/text-after-tag/expected.html +0 -3
- package/test/autotest-1.x/text-after-tag/input.htmljs +0 -1
- package/test/autotest-1.x/text-parse-mode-concise/expected.html +0 -5
- package/test/autotest-1.x/text-parse-mode-concise/input.htmljs +0 -3
- package/test/autotest-1.x/text-parse-mode-concise/test.js +0 -1
- package/test/autotest-1.x/text-parse-mode-delimited-block/expected.html +0 -8
- package/test/autotest-1.x/text-parse-mode-delimited-block/input.htmljs +0 -6
- package/test/autotest-1.x/text-parse-mode-delimited-block/test.js +0 -1
- package/test/autotest-1.x/text-parse-mode-html/expected.html +0 -7
- package/test/autotest-1.x/text-parse-mode-html/input.htmljs +0 -3
- package/test/autotest-1.x/text-parse-mode-html/test.js +0 -1
- package/test/autotest-1.x/text-parse-mode-parsed-text/expected.html +0 -11
- package/test/autotest-1.x/text-parse-mode-parsed-text/input.htmljs +0 -7
- package/test/autotest-1.x/text-parse-mode-parsed-text/test.js +0 -7
- package/test/autotest-1.x/text-parse-mode-static-text/expected.html +0 -11
- package/test/autotest-1.x/text-parse-mode-static-text/input.htmljs +0 -7
- package/test/autotest-1.x/text-parse-mode-static-text/test.js +0 -7
- package/test/autotest-1.x/var/expected.html +0 -9
- package/test/autotest-1.x/var/input.htmljs +0 -5
- package/test/autotest-1.x/whitespace-empty-lines/expected.html +0 -7
- package/test/autotest-1.x/whitespace-empty-lines/input.htmljs +0 -4
- package/test/autotest-1.x/whitespace-empty-lines-indent/expected.html +0 -8
- package/test/autotest-1.x/whitespace-empty-lines-indent/input.htmljs +0 -4
- package/test/autotest-1.x/whitespace-newline/expected.html +0 -7
- package/test/autotest-1.x/whitespace-newline/input.htmljs +0 -6
- package/test/autotest-1.x/whitespace-newline-indent/expected.html +0 -7
- package/test/autotest-1.x/whitespace-newline-indent/input.htmljs +0 -6
- package/test/autotest-1.x/windows-line-ending/expected.html +0 -10
- package/test/autotest-1.x/windows-line-ending/test.js +0 -11
- package/test/autotest-1.x/xml-declaration/expected.html +0 -5
- package/test/autotest-1.x/xml-declaration/input.htmljs +0 -2
- package/test/autotest-1.x/xml-declaration-ill-formed/expected.html +0 -5
- package/test/autotest-1.x/xml-declaration-ill-formed/input.htmljs +0 -2
- package/test/test.js +0 -6
- package/test/util/TreeBuilder.js +0 -417
- package/test/util/runDirTest.js +0 -76
package/LICENSE
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
MIT License
|
|
2
2
|
|
|
3
|
-
Copyright (c)
|
|
3
|
+
Copyright (c) 2022 JS Foundation and contributors and contributors
|
|
4
4
|
|
|
5
5
|
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
6
|
of this software and associated documentation files (the "Software"), to deal
|
package/README.md
CHANGED
|
@@ -1,5 +1,4 @@
|
|
|
1
|
-
htmljs-parser
|
|
2
|
-
=============
|
|
1
|
+
# htmljs-parser
|
|
3
2
|
|
|
4
3
|
HTML parsers written according to the HTML spec will interpret all
|
|
5
4
|
attribute values as strings which makes it challenging to properly
|
|
@@ -12,7 +11,6 @@ For example, consider a HTML-based template that wishes to
|
|
|
12
11
|
support a custom tag named `<say-hello>` that supports an
|
|
13
12
|
attribute named `message` that can be a string literal or a JavaScript expression.
|
|
14
13
|
|
|
15
|
-
|
|
16
14
|
Ideally, the template compiler should be able to handle any of the following:
|
|
17
15
|
|
|
18
16
|
```html
|
|
@@ -24,28 +22,34 @@ Ideally, the template compiler should be able to handle any of the following:
|
|
|
24
22
|
This parser extends the HTML grammar to add these important features:
|
|
25
23
|
|
|
26
24
|
- JavaScript expressions as attribute values
|
|
25
|
+
|
|
27
26
|
```html
|
|
28
27
|
<say-hello message=("Hello " + personName) count=2+2 large=true />
|
|
29
28
|
```
|
|
29
|
+
|
|
30
30
|
- Placeholders in the content of an element
|
|
31
|
+
|
|
31
32
|
```html
|
|
32
|
-
<div>
|
|
33
|
-
Hello ${personName}
|
|
34
|
-
</div>
|
|
33
|
+
<div>Hello ${personName}</div>
|
|
35
34
|
```
|
|
35
|
+
|
|
36
36
|
- Placeholders within attribute value strings
|
|
37
|
+
|
|
37
38
|
```html
|
|
38
|
-
<div data-message="Hello ${personName}!">
|
|
39
|
+
<div data-message="Hello ${personName}!"></div>
|
|
39
40
|
```
|
|
41
|
+
|
|
40
42
|
- JavaScript flow-control statements within HTML elements
|
|
43
|
+
|
|
41
44
|
```html
|
|
42
45
|
<div for(a in b) />
|
|
43
46
|
<div if(a === b) />
|
|
44
47
|
```
|
|
48
|
+
|
|
45
49
|
- JavaScript flow-control statements as elements
|
|
50
|
+
|
|
46
51
|
```html
|
|
47
|
-
<for (a in b)>
|
|
48
|
-
<if (a in b)>
|
|
52
|
+
<for (a in b)> <if (a in b)></if></for>
|
|
49
53
|
```
|
|
50
54
|
|
|
51
55
|
# Installation
|
|
@@ -57,85 +61,82 @@ npm install htmljs-parser
|
|
|
57
61
|
# Usage
|
|
58
62
|
|
|
59
63
|
```javascript
|
|
60
|
-
var parser = require(
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
var code = event.code; // String
|
|
137
|
-
var pos = event.pos; // Integer
|
|
138
|
-
}
|
|
64
|
+
var parser = require("htmljs-parser").createParser({
|
|
65
|
+
onText: function (event) {
|
|
66
|
+
// Text within an HTML element
|
|
67
|
+
var value = event.value;
|
|
68
|
+
},
|
|
69
|
+
|
|
70
|
+
onPlaceholder: function (event) {
|
|
71
|
+
// ${<value>]} // escape = true
|
|
72
|
+
// $!{<value>]} // escape = false
|
|
73
|
+
var value = event.value; // String
|
|
74
|
+
var escaped = event.escaped; // boolean
|
|
75
|
+
var withinBody = event.withinBody; // boolean
|
|
76
|
+
var withinAttribute = event.withinAttribute; // boolean
|
|
77
|
+
var withinOpenTag = event.withinOpenTag; // boolean
|
|
78
|
+
var pos = event.pos; // Integer
|
|
79
|
+
},
|
|
80
|
+
|
|
81
|
+
onString: function (event) {
|
|
82
|
+
// Text within ""
|
|
83
|
+
var value = event.value; // String
|
|
84
|
+
var pos = event.pos; // Integer
|
|
85
|
+
},
|
|
86
|
+
|
|
87
|
+
onCDATA: function (event) {
|
|
88
|
+
// <![CDATA[<value>]]>
|
|
89
|
+
var value = event.value; // String
|
|
90
|
+
var pos = event.pos; // Integer
|
|
91
|
+
},
|
|
92
|
+
|
|
93
|
+
onOpenTag: function (event) {
|
|
94
|
+
var tagName = event.tagName; // String
|
|
95
|
+
var attributes = event.attributes; // Array
|
|
96
|
+
var argument = event.argument; // Object
|
|
97
|
+
var pos = event.pos; // Integer
|
|
98
|
+
},
|
|
99
|
+
|
|
100
|
+
onCloseTag: function (event) {
|
|
101
|
+
// close tag
|
|
102
|
+
var tagName = event.tagName; // String
|
|
103
|
+
var pos = event.pos; // Integer
|
|
104
|
+
},
|
|
105
|
+
|
|
106
|
+
onDocumentType: function (event) {
|
|
107
|
+
// Document Type/DTD
|
|
108
|
+
// <!<value>>
|
|
109
|
+
// Example: <!DOCTYPE html>
|
|
110
|
+
var value = event.value; // String
|
|
111
|
+
var pos = event.pos; // Integer
|
|
112
|
+
},
|
|
113
|
+
|
|
114
|
+
onDeclaration: function (event) {
|
|
115
|
+
// Declaration
|
|
116
|
+
// <?<value>?>
|
|
117
|
+
// Example: <?xml version="1.0" encoding="UTF-8" ?>
|
|
118
|
+
var value = event.value; // String
|
|
119
|
+
var pos = event.pos; // Integer
|
|
120
|
+
},
|
|
121
|
+
|
|
122
|
+
onComment: function (event) {
|
|
123
|
+
// Text within XML comment
|
|
124
|
+
var value = event.value; // String
|
|
125
|
+
var pos = event.pos; // Integer
|
|
126
|
+
},
|
|
127
|
+
|
|
128
|
+
onScriptlet: function (event) {
|
|
129
|
+
// Text within <% %>
|
|
130
|
+
var value = event.value; // String
|
|
131
|
+
var pos = event.pos; // Integer
|
|
132
|
+
},
|
|
133
|
+
|
|
134
|
+
onError: function (event) {
|
|
135
|
+
// Error
|
|
136
|
+
var message = event.message; // String
|
|
137
|
+
var code = event.code; // String
|
|
138
|
+
var pos = event.pos; // Integer
|
|
139
|
+
},
|
|
139
140
|
});
|
|
140
141
|
|
|
141
142
|
parser.parse(str);
|
|
@@ -150,15 +151,15 @@ to be changed (usually in response to an `onOpenTag` event).
|
|
|
150
151
|
There are three content parsing modes:
|
|
151
152
|
|
|
152
153
|
- **HTML Content (DEFAULT):**
|
|
153
|
-
|
|
154
|
-
|
|
154
|
+
The parser will look for any HTML tag and content placeholders while in
|
|
155
|
+
this mode and parse opening and closing tags accordingly.
|
|
155
156
|
|
|
156
157
|
- **Parsed Text Content**: The parser will look for the closing tag that matches
|
|
157
|
-
|
|
158
|
-
|
|
158
|
+
the current open tag as well as content placeholders but all other content
|
|
159
|
+
will be interpreted as text.
|
|
159
160
|
|
|
160
161
|
- **Static Text Content**: The parser will look for the closing tag that matches
|
|
161
|
-
|
|
162
|
+
the current open tag but all other content will be interpreted as raw text.
|
|
162
163
|
|
|
163
164
|
```javascript
|
|
164
165
|
var htmljs = require('htmljs-parser');
|
|
@@ -208,7 +209,7 @@ encountered.
|
|
|
208
209
|
INPUT:
|
|
209
210
|
|
|
210
211
|
```html
|
|
211
|
-
<div>
|
|
212
|
+
<div></div>
|
|
212
213
|
```
|
|
213
214
|
|
|
214
215
|
OUTPUT EVENT:
|
|
@@ -226,7 +227,7 @@ OUTPUT EVENT:
|
|
|
226
227
|
INPUT:
|
|
227
228
|
|
|
228
229
|
```html
|
|
229
|
-
<div class="demo" disabled=false data-number=123>
|
|
230
|
+
<div class="demo" disabled="false" data-number="123"></div>
|
|
230
231
|
```
|
|
231
232
|
|
|
232
233
|
OUTPUT EVENT:
|
|
@@ -238,18 +239,15 @@ OUTPUT EVENT:
|
|
|
238
239
|
attributes: [
|
|
239
240
|
{
|
|
240
241
|
name: 'class',
|
|
241
|
-
value: '"demo"'
|
|
242
|
-
literalValue: 'demo'
|
|
242
|
+
value: '"demo"'
|
|
243
243
|
},
|
|
244
244
|
{
|
|
245
245
|
name: 'disabled',
|
|
246
|
-
value: 'false'
|
|
247
|
-
literalValue: false
|
|
246
|
+
value: 'false'
|
|
248
247
|
},
|
|
249
248
|
{
|
|
250
249
|
name: 'data-number',
|
|
251
|
-
value: '123'
|
|
252
|
-
literalValue: 123
|
|
250
|
+
value: '123'
|
|
253
251
|
}
|
|
254
252
|
]
|
|
255
253
|
}
|
|
@@ -283,7 +281,7 @@ OUTPUT EVENT:
|
|
|
283
281
|
INPUT:
|
|
284
282
|
|
|
285
283
|
```html
|
|
286
|
-
<for(var i
|
|
284
|
+
<for(var i="0;" i < 10; i++)></for(var>
|
|
287
285
|
```
|
|
288
286
|
|
|
289
287
|
OUTPUT EVENT:
|
|
@@ -305,7 +303,7 @@ OUTPUT EVENT:
|
|
|
305
303
|
INPUT:
|
|
306
304
|
|
|
307
305
|
```html
|
|
308
|
-
<div if(x
|
|
306
|
+
<div if(x>y)></div>
|
|
309
307
|
```
|
|
310
308
|
|
|
311
309
|
OUTPUT EVENT:
|
|
@@ -417,8 +415,7 @@ cannot use placeholders for these blocks of code.
|
|
|
417
415
|
INPUT:
|
|
418
416
|
|
|
419
417
|
```html
|
|
420
|
-
${"This is an escaped placeholder"}
|
|
421
|
-
$!{"This is a non-escaped placeholder"}
|
|
418
|
+
${"This is an escaped placeholder"} $!{"This is a non-escaped placeholder"}
|
|
422
419
|
```
|
|
423
420
|
|
|
424
421
|
OUTPUT EVENTS
|
|
@@ -435,7 +432,7 @@ ${name}
|
|
|
435
432
|
}
|
|
436
433
|
```
|
|
437
434
|
|
|
438
|
-
|
|
435
|
+
---
|
|
439
436
|
|
|
440
437
|
```html
|
|
441
438
|
$!{name}
|
|
@@ -0,0 +1,67 @@
|
|
|
1
|
+
import { STATE, Range, Handlers } from "../internal";
|
|
2
|
+
export interface Meta extends Range {
|
|
3
|
+
parent: Meta;
|
|
4
|
+
state: StateDefinition;
|
|
5
|
+
}
|
|
6
|
+
export interface StateDefinition<P extends Meta = Meta> {
|
|
7
|
+
name: string;
|
|
8
|
+
enter: (this: Parser, parent: Meta, pos: number) => Partial<P & {
|
|
9
|
+
state: unknown;
|
|
10
|
+
}>;
|
|
11
|
+
exit: (this: Parser, activeRange: P) => void;
|
|
12
|
+
char: (this: Parser, code: number, activeRange: P) => void;
|
|
13
|
+
eol: (this: Parser, length: number, activeRange: P) => void;
|
|
14
|
+
eof: (this: Parser, activeRange: P) => void;
|
|
15
|
+
return: (this: Parser, child: Meta, activeRange: P) => void;
|
|
16
|
+
}
|
|
17
|
+
export declare class Parser {
|
|
18
|
+
handlers: Handlers;
|
|
19
|
+
pos: number;
|
|
20
|
+
maxPos: number;
|
|
21
|
+
data: string;
|
|
22
|
+
activeState: StateDefinition;
|
|
23
|
+
activeRange: Meta;
|
|
24
|
+
forward: number;
|
|
25
|
+
activeTag: STATE.OpenTagMeta | undefined;
|
|
26
|
+
activeAttr: STATE.AttrMeta | undefined;
|
|
27
|
+
indent: string;
|
|
28
|
+
isConcise: boolean;
|
|
29
|
+
beginMixedMode?: boolean;
|
|
30
|
+
endingMixedModeAtEOL?: boolean;
|
|
31
|
+
textPos: number;
|
|
32
|
+
lines: undefined | number[];
|
|
33
|
+
constructor(handlers: Handlers);
|
|
34
|
+
read(range: Range): string;
|
|
35
|
+
positionAt(index: number): import("../internal").Position;
|
|
36
|
+
locationAt(range: Range): import("../internal").Location;
|
|
37
|
+
enterState<P extends Meta>(state: StateDefinition<P>): P;
|
|
38
|
+
exitState(): void;
|
|
39
|
+
/**
|
|
40
|
+
* Compare a position in the source to either another position, or a string.
|
|
41
|
+
*/
|
|
42
|
+
matchAtPos(a: Range, b: Range | string): boolean;
|
|
43
|
+
matchAnyAtPos(a: Range, list: (Range | string)[]): boolean;
|
|
44
|
+
/**
|
|
45
|
+
* Look ahead to see if the given str matches the substring sequence
|
|
46
|
+
* beyond
|
|
47
|
+
*/
|
|
48
|
+
lookAheadFor(str: string, startPos?: number): string | undefined;
|
|
49
|
+
lookAtCharCodeAhead(offset: number, startPos?: number): number;
|
|
50
|
+
startText(): void;
|
|
51
|
+
endText(): void;
|
|
52
|
+
/**
|
|
53
|
+
* This is used to enter into "HTML" parsing mode instead
|
|
54
|
+
* of concise HTML. We push a block on to the stack so that we know when
|
|
55
|
+
* return back to the previous parsing mode and to ensure that all
|
|
56
|
+
* tags within a block are properly closed.
|
|
57
|
+
*/
|
|
58
|
+
beginHtmlBlock(delimiter: string | undefined, singleLine: boolean): void;
|
|
59
|
+
emitError(range: number | Range, code: string, message: string): void;
|
|
60
|
+
closeTag(start: number, end: number, value: Range | undefined): void;
|
|
61
|
+
consumeWhitespaceIfBefore(str: string, start?: number): boolean;
|
|
62
|
+
getPreviousNonWhitespaceCharCode(start?: number): number;
|
|
63
|
+
onlyWhitespaceRemainsOnLine(start?: number): boolean;
|
|
64
|
+
consumeWhitespaceOnLine(start?: number): boolean;
|
|
65
|
+
consumeWhitespace(): void;
|
|
66
|
+
parse(data: string): void;
|
|
67
|
+
}
|
package/dist/index.d.ts
ADDED
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import { type Handlers, type Range } from "./internal";
|
|
2
|
+
export { OpenTagEnding, type Handlers, type Position, type Location, type Ranges, type Range, } from "./internal";
|
|
3
|
+
/**
|
|
4
|
+
* Creates a new Marko parser.
|
|
5
|
+
*/
|
|
6
|
+
export declare function createParser(handlers: Handlers): {
|
|
7
|
+
/**
|
|
8
|
+
* Parses code and calls the provided handlers.
|
|
9
|
+
*/
|
|
10
|
+
parse(code: string): void;
|
|
11
|
+
/**
|
|
12
|
+
* Given an offset range in the current source code, reads and returns the substring in the input code.
|
|
13
|
+
*/
|
|
14
|
+
read(range: Range): string;
|
|
15
|
+
/**
|
|
16
|
+
* Given a offset in the current source code, returns a Position object with line & character information.
|
|
17
|
+
*/
|
|
18
|
+
positionAt(index: number): import("./internal").Position;
|
|
19
|
+
/**
|
|
20
|
+
* Given a offset range in the current source code, returns a Location object with a start & end position information.
|
|
21
|
+
*/
|
|
22
|
+
locationAt(range: Range): import("./internal").Location;
|
|
23
|
+
};
|