htmljs-parser 2.11.2 → 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 -3324
- 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 -9
- package/test/autotest/argument-tag/input.htmljs +0 -3
- 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 -14
- package/test/autotest/attr-method-shorthand/input.htmljs +0 -39
- 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
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { StateDefinition, Range, Ranges, Meta } from "../internal";
|
|
2
|
+
declare const enum ATTR_STAGE {
|
|
3
|
+
UNKNOWN = 0,
|
|
4
|
+
NAME = 1,
|
|
5
|
+
VALUE = 2,
|
|
6
|
+
ARGUMENT = 3,
|
|
7
|
+
BLOCK = 4
|
|
8
|
+
}
|
|
9
|
+
export interface AttrMeta extends Meta {
|
|
10
|
+
stage: ATTR_STAGE;
|
|
11
|
+
name: undefined | Range;
|
|
12
|
+
valueStart: number;
|
|
13
|
+
args: boolean | Ranges.AttrMethod["params"];
|
|
14
|
+
spread: boolean;
|
|
15
|
+
bound: boolean;
|
|
16
|
+
}
|
|
17
|
+
export declare const ATTRIBUTE: StateDefinition<AttrMeta>;
|
|
18
|
+
export {};
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { Parser, StateDefinition, STATE, Meta } from "../internal";
|
|
2
|
+
export interface DelimitedHTMLBlockMeta extends Meta {
|
|
3
|
+
delimiter: string;
|
|
4
|
+
indent: string;
|
|
5
|
+
}
|
|
6
|
+
export declare const BEGIN_DELIMITED_HTML_BLOCK: StateDefinition<DelimitedHTMLBlockMeta>;
|
|
7
|
+
export declare function handleDelimitedEOL(parser: Parser, newLineLength: number, content: STATE.ParsedTextContentMeta | STATE.HTMLContentMeta): boolean;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { StateDefinition, Meta } from "../internal";
|
|
2
|
+
export interface ExpressionMeta extends Meta {
|
|
3
|
+
groupStack: number[];
|
|
4
|
+
terminator: number | (number | number[])[];
|
|
5
|
+
skipOperators: boolean;
|
|
6
|
+
terminatedByEOL: boolean;
|
|
7
|
+
terminatedByWhitespace: boolean;
|
|
8
|
+
}
|
|
9
|
+
export declare const EXPRESSION: StateDefinition<ExpressionMeta>;
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import { StateDefinition, BODY_MODE, OpenTagEnding, Ranges, Meta } from "../internal";
|
|
2
|
+
declare const enum TAG_STAGE {
|
|
3
|
+
UNKNOWN = 0,
|
|
4
|
+
VAR = 1,
|
|
5
|
+
ARGUMENT = 2,
|
|
6
|
+
PARAMS = 3,
|
|
7
|
+
ATTR_GROUP = 4
|
|
8
|
+
}
|
|
9
|
+
export interface OpenTagMeta extends Meta {
|
|
10
|
+
bodyMode: BODY_MODE;
|
|
11
|
+
stage: TAG_STAGE;
|
|
12
|
+
concise: boolean;
|
|
13
|
+
beginMixedMode?: boolean;
|
|
14
|
+
tagName: Ranges.Template;
|
|
15
|
+
shorthandEnd: number;
|
|
16
|
+
hasArgs: boolean;
|
|
17
|
+
hasAttrs: boolean;
|
|
18
|
+
hasShorthandId: boolean;
|
|
19
|
+
ending: OpenTagEnding;
|
|
20
|
+
indent: string;
|
|
21
|
+
nestedIndent: string | undefined;
|
|
22
|
+
parentTag: OpenTagMeta | undefined;
|
|
23
|
+
}
|
|
24
|
+
export declare const OPEN_TAG: StateDefinition<OpenTagMeta>;
|
|
25
|
+
export {};
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { StateDefinition, Meta } from "../internal";
|
|
2
|
+
export interface ParsedTextContentMeta extends Meta {
|
|
3
|
+
indent: string;
|
|
4
|
+
singleLine: boolean;
|
|
5
|
+
delimiter: undefined | string;
|
|
6
|
+
}
|
|
7
|
+
export declare const PARSED_TEXT_CONTENT: StateDefinition<ParsedTextContentMeta>;
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { Parser, StateDefinition, Meta } from "../internal";
|
|
2
|
+
interface PlaceholderMeta extends Meta {
|
|
3
|
+
escape: boolean;
|
|
4
|
+
}
|
|
5
|
+
export declare const PLACEHOLDER: StateDefinition<PlaceholderMeta>;
|
|
6
|
+
export declare function checkForPlaceholder(parser: Parser, code: number): boolean;
|
|
7
|
+
export {};
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
export * from "./ATTRIBUTE";
|
|
2
|
+
export * from "./BEGIN_DELIMITED_HTML_BLOCK";
|
|
3
|
+
export * from "./CDATA";
|
|
4
|
+
export * from "./CLOSE_TAG";
|
|
5
|
+
export * from "./CONCISE_HTML_CONTENT";
|
|
6
|
+
export * from "./DECLARATION";
|
|
7
|
+
export * from "./DTD";
|
|
8
|
+
export * from "./EXPRESSION";
|
|
9
|
+
export * from "./HTML_COMMENT";
|
|
10
|
+
export * from "./HTML_CONTENT";
|
|
11
|
+
export * from "./INLINE_SCRIPT";
|
|
12
|
+
export * from "./JS_COMMENT_BLOCK";
|
|
13
|
+
export * from "./JS_COMMENT_LINE";
|
|
14
|
+
export * from "./PARSED_TEXT_CONTENT";
|
|
15
|
+
export * from "./PLACEHOLDER";
|
|
16
|
+
export * from "./REGULAR_EXPRESSION";
|
|
17
|
+
export * from "./STRING";
|
|
18
|
+
export * from "./TAG_NAME";
|
|
19
|
+
export * from "./TEMPLATE_STRING";
|
|
20
|
+
export * from "./OPEN_TAG";
|
|
@@ -0,0 +1,131 @@
|
|
|
1
|
+
export declare const enum CODE {
|
|
2
|
+
NUMBER_0 = 48,
|
|
3
|
+
NUMBER_9 = 57,
|
|
4
|
+
UPPER_A = 65,
|
|
5
|
+
UPPER_Z = 90,
|
|
6
|
+
LOWER_A = 97,
|
|
7
|
+
LOWER_Z = 122,
|
|
8
|
+
BACK_SLASH = 92,
|
|
9
|
+
FORWARD_SLASH = 47,
|
|
10
|
+
OPEN_ANGLE_BRACKET = 60,
|
|
11
|
+
CLOSE_ANGLE_BRACKET = 62,
|
|
12
|
+
EXCLAMATION = 33,
|
|
13
|
+
QUESTION = 63,
|
|
14
|
+
OPEN_SQUARE_BRACKET = 91,
|
|
15
|
+
CLOSE_SQUARE_BRACKET = 93,
|
|
16
|
+
EQUAL = 61,
|
|
17
|
+
SINGLE_QUOTE = 39,
|
|
18
|
+
DOUBLE_QUOTE = 34,
|
|
19
|
+
BACKTICK = 96,
|
|
20
|
+
OPEN_PAREN = 40,
|
|
21
|
+
CLOSE_PAREN = 41,
|
|
22
|
+
OPEN_CURLY_BRACE = 123,
|
|
23
|
+
CLOSE_CURLY_BRACE = 125,
|
|
24
|
+
ASTERISK = 42,
|
|
25
|
+
HYPHEN = 45,
|
|
26
|
+
HTML_BLOCK_DELIMITER = 45,
|
|
27
|
+
DOLLAR = 36,
|
|
28
|
+
PERCENT = 37,
|
|
29
|
+
PERIOD = 46,
|
|
30
|
+
COMMA = 44,
|
|
31
|
+
COLON = 58,
|
|
32
|
+
SEMICOLON = 59,
|
|
33
|
+
NUMBER_SIGN = 35,
|
|
34
|
+
PIPE = 124,
|
|
35
|
+
NEWLINE = 10,
|
|
36
|
+
CARRIAGE_RETURN = 13,
|
|
37
|
+
SPACE = 32,
|
|
38
|
+
TAB = 9
|
|
39
|
+
}
|
|
40
|
+
export declare const enum BODY_MODE {
|
|
41
|
+
HTML = 0,
|
|
42
|
+
PARSED_TEXT = 1
|
|
43
|
+
}
|
|
44
|
+
export interface Position {
|
|
45
|
+
/**
|
|
46
|
+
* Line position in a document (zero-based).
|
|
47
|
+
*/
|
|
48
|
+
line: number;
|
|
49
|
+
/**
|
|
50
|
+
* Character offset on a line in a document (zero-based).
|
|
51
|
+
*/
|
|
52
|
+
character: number;
|
|
53
|
+
}
|
|
54
|
+
export interface Location {
|
|
55
|
+
start: Position;
|
|
56
|
+
end: Position;
|
|
57
|
+
}
|
|
58
|
+
export interface Range {
|
|
59
|
+
/**
|
|
60
|
+
* The start characters offset from the beginning of the document (zero-based).
|
|
61
|
+
*/
|
|
62
|
+
start: number;
|
|
63
|
+
/**
|
|
64
|
+
* The end characters offset from the beginning of the document (zero-based).
|
|
65
|
+
*/
|
|
66
|
+
end: number;
|
|
67
|
+
}
|
|
68
|
+
export declare namespace Ranges {
|
|
69
|
+
interface Value extends Range {
|
|
70
|
+
value: Range;
|
|
71
|
+
}
|
|
72
|
+
interface Template extends Range {
|
|
73
|
+
expressions: Value[];
|
|
74
|
+
quasis: Range[];
|
|
75
|
+
}
|
|
76
|
+
interface Error extends Range {
|
|
77
|
+
code: string;
|
|
78
|
+
message: string;
|
|
79
|
+
}
|
|
80
|
+
interface Scriptlet extends Value {
|
|
81
|
+
block: boolean;
|
|
82
|
+
}
|
|
83
|
+
interface Placeholder extends Value {
|
|
84
|
+
escape: boolean;
|
|
85
|
+
}
|
|
86
|
+
interface TagName extends Template {
|
|
87
|
+
concise: boolean;
|
|
88
|
+
}
|
|
89
|
+
interface AttrValue extends Value {
|
|
90
|
+
bound: boolean;
|
|
91
|
+
}
|
|
92
|
+
interface AttrMethod extends Range {
|
|
93
|
+
body: Value;
|
|
94
|
+
params: Value;
|
|
95
|
+
}
|
|
96
|
+
interface OpenTagEnd extends Range {
|
|
97
|
+
ending: OpenTagEnding;
|
|
98
|
+
}
|
|
99
|
+
interface CloseTag extends Range {
|
|
100
|
+
value: Range | undefined;
|
|
101
|
+
}
|
|
102
|
+
}
|
|
103
|
+
export declare const enum OpenTagEnding {
|
|
104
|
+
tag = 0,
|
|
105
|
+
self = 1,
|
|
106
|
+
void = 2,
|
|
107
|
+
code = 4
|
|
108
|
+
}
|
|
109
|
+
export interface Handlers {
|
|
110
|
+
onError?(data: Ranges.Error): void;
|
|
111
|
+
onText?(data: Range): void;
|
|
112
|
+
onComment?(data: Ranges.Value): void;
|
|
113
|
+
onCDATA?(data: Ranges.Value): void;
|
|
114
|
+
onDeclaration?(data: Ranges.Value): void;
|
|
115
|
+
onDoctype?(data: Ranges.Value): void;
|
|
116
|
+
onScriptlet?(data: Ranges.Scriptlet): void;
|
|
117
|
+
onPlaceholder?(data: Ranges.Placeholder): void;
|
|
118
|
+
onTagName?(data: Ranges.TagName): void;
|
|
119
|
+
onTagShorthandId?(data: Ranges.Template): void;
|
|
120
|
+
onTagShorthandClass?(data: Ranges.Template): void;
|
|
121
|
+
onTagVar?(data: Ranges.Value): void;
|
|
122
|
+
onTagArgs?(data: Ranges.Value): void;
|
|
123
|
+
onTagParams?(data: Ranges.Value): void;
|
|
124
|
+
onAttrName?(data: Range): void;
|
|
125
|
+
onAttrArgs?(data: Ranges.Value): void;
|
|
126
|
+
onAttrValue?(data: Ranges.AttrValue): void;
|
|
127
|
+
onAttrMethod?(data: Ranges.AttrMethod): void;
|
|
128
|
+
onAttrSpread?(data: Ranges.Value): void;
|
|
129
|
+
onOpenTagEnd?(data: Ranges.OpenTagEnd): void;
|
|
130
|
+
onCloseTag?(data: Ranges.CloseTag): void;
|
|
131
|
+
}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { type Parser } from "../internal";
|
|
2
|
+
import type { Location, Position, Range } from "./constants";
|
|
3
|
+
export declare function isWhitespaceCode(code: number): boolean;
|
|
4
|
+
export declare function getLoc(lines: number[], range: Range): Location;
|
|
5
|
+
export declare function getPos(lines: number[], startLine: number, index: number): Position;
|
|
6
|
+
export declare function getLines(src: string): number[];
|
|
7
|
+
export declare function htmlEOF(this: Parser): void;
|
package/package.json
CHANGED
|
@@ -1,44 +1,81 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "htmljs-parser",
|
|
3
3
|
"description": "An HTML parser recognizes content and string placeholders and allows JavaScript expressions as attribute values",
|
|
4
|
+
"version": "3.0.0",
|
|
5
|
+
"author": "Phillip Gates-Idem <phillip.idem@gmail.com>",
|
|
6
|
+
"devDependencies": {
|
|
7
|
+
"@commitlint/cli": "^16.2.3",
|
|
8
|
+
"@commitlint/config-conventional": "^16.2.1",
|
|
9
|
+
"@types/benchmark": "^2.1.1",
|
|
10
|
+
"@types/degit": "^2.8.3",
|
|
11
|
+
"@types/mocha": "^9.1.0",
|
|
12
|
+
"@types/node": "^17.0.22",
|
|
13
|
+
"@typescript-eslint/eslint-plugin": "^5.16.0",
|
|
14
|
+
"@typescript-eslint/parser": "^5.16.0",
|
|
15
|
+
"benchmark": "^2.1.4",
|
|
16
|
+
"cross-env": "^7.0.3",
|
|
17
|
+
"degit": "^2.8.4",
|
|
18
|
+
"esbuild": "0.14.27",
|
|
19
|
+
"esbuild-register": "^3.3.2",
|
|
20
|
+
"eslint": "^8.11.0",
|
|
21
|
+
"eslint-config-prettier": "^8.5.0",
|
|
22
|
+
"fast-glob": "^3.2.11",
|
|
23
|
+
"fixpack": "^4.0.0",
|
|
24
|
+
"husky": "^7.0.4",
|
|
25
|
+
"lint-staged": "^12.3.7",
|
|
26
|
+
"mocha": "^9.2.2",
|
|
27
|
+
"mocha-snap": "^4.3.0",
|
|
28
|
+
"nyc": "^15.1.0",
|
|
29
|
+
"prettier": "^2.6.0",
|
|
30
|
+
"semantic-release": "^19.0.2",
|
|
31
|
+
"typescript": "^4.6.2"
|
|
32
|
+
},
|
|
33
|
+
"exports": {
|
|
34
|
+
".": {
|
|
35
|
+
"import": "./dist/index.mjs",
|
|
36
|
+
"default": "./dist/index.js"
|
|
37
|
+
}
|
|
38
|
+
},
|
|
39
|
+
"files": [
|
|
40
|
+
"dist",
|
|
41
|
+
"!**/__tests__",
|
|
42
|
+
"!**/*.tsbuildinfo"
|
|
43
|
+
],
|
|
44
|
+
"homepage": "https://github.com/marko-js/htmljs-parser",
|
|
4
45
|
"keywords": [
|
|
5
46
|
"HTML",
|
|
6
|
-
"parser",
|
|
7
47
|
"JavaScript",
|
|
8
|
-
"expressions",
|
|
9
48
|
"browser",
|
|
10
|
-
"
|
|
49
|
+
"compiler",
|
|
50
|
+
"expressions",
|
|
11
51
|
"nodejs",
|
|
12
|
-
"
|
|
13
|
-
"
|
|
52
|
+
"parser",
|
|
53
|
+
"server",
|
|
54
|
+
"template"
|
|
14
55
|
],
|
|
15
|
-
"
|
|
16
|
-
"
|
|
17
|
-
|
|
18
|
-
"mocha": "node_modules/.bin/mocha --ui bdd --reporter spec ./test",
|
|
19
|
-
"jshint": "node_modules/.bin/jshint *.js"
|
|
20
|
-
},
|
|
56
|
+
"license": "MIT",
|
|
57
|
+
"main": "./dist/index.js",
|
|
58
|
+
"module": "./dist/index.mjs",
|
|
21
59
|
"repository": {
|
|
22
60
|
"type": "git",
|
|
23
|
-
"url": "https://github.com/
|
|
24
|
-
},
|
|
25
|
-
"author": "Phillip Gates-Idem <phillip.idem@gmail.com>",
|
|
26
|
-
"maintainers": "Phillip Gates-Idem <phillip.idem@gmail.com>",
|
|
27
|
-
"dependencies": {
|
|
28
|
-
"char-props": "^0.1.5",
|
|
29
|
-
"complain": "^1.0.0"
|
|
30
|
-
},
|
|
31
|
-
"devDependencies": {
|
|
32
|
-
"@babel/runtime": "^7.12.5",
|
|
33
|
-
"chai": "^4.0.0",
|
|
34
|
-
"colors": "^1.1.2",
|
|
35
|
-
"jshint": "^2.8.0",
|
|
36
|
-
"mocha": "^4.0.0",
|
|
37
|
-
"mocha-autotest": "^1.0.3"
|
|
61
|
+
"url": "https://github.com/marko-js/htmljs-parser.git"
|
|
38
62
|
},
|
|
39
|
-
"
|
|
40
|
-
|
|
41
|
-
"
|
|
63
|
+
"scripts": {
|
|
64
|
+
"bench": "npm run build && node -r esbuild-register ./src/__tests__/bench",
|
|
65
|
+
"build": "tsc -b && node -r esbuild-register build",
|
|
66
|
+
"ci:test": "nyc npm run mocha -- --forbid-pending --forbid-only",
|
|
67
|
+
"format": "npm run lint:eslint -- --fix && npm run lint:prettier -- --write && (fixpack || true)",
|
|
68
|
+
"lint": "tsc -b && npm run lint:eslint && npm run lint:prettier -- -l && fixpack",
|
|
69
|
+
"lint:eslint": "eslint -f visualstudio .",
|
|
70
|
+
"lint:prettier": "prettier \"./**/*{.ts,.js,.json,.md,.yml,rc}\"",
|
|
71
|
+
"mocha": "cross-env NODE_ENV=test mocha \"./src/**/__tests__/*.test.ts\"",
|
|
72
|
+
"prepare": "husky install",
|
|
73
|
+
"prepublishOnly": "npm run build",
|
|
74
|
+
"release": "semantic-release",
|
|
75
|
+
"report": "open ./coverage/lcov-report/index.html",
|
|
76
|
+
"test": "npm run mocha -- --watch",
|
|
77
|
+
"test:inspect": "npm test -- --inspect",
|
|
78
|
+
"test:update": "npm run mocha -- --update"
|
|
42
79
|
},
|
|
43
|
-
"
|
|
80
|
+
"types": "dist/index.d.ts"
|
|
44
81
|
}
|
package/.jshintrc
DELETED
|
@@ -1,29 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"node" : true,
|
|
3
|
-
"esnext": true,
|
|
4
|
-
"boss" : false,
|
|
5
|
-
"curly": false,
|
|
6
|
-
"debug": false,
|
|
7
|
-
"devel": false,
|
|
8
|
-
"eqeqeq": true,
|
|
9
|
-
"evil": true,
|
|
10
|
-
"forin": false,
|
|
11
|
-
"immed": true,
|
|
12
|
-
"laxbreak": false,
|
|
13
|
-
"newcap": true,
|
|
14
|
-
"noarg": true,
|
|
15
|
-
"noempty": false,
|
|
16
|
-
"nonew": true,
|
|
17
|
-
"nomen": false,
|
|
18
|
-
"onevar": false,
|
|
19
|
-
"plusplus": false,
|
|
20
|
-
"regexp": false,
|
|
21
|
-
"undef": true,
|
|
22
|
-
"sub": false,
|
|
23
|
-
"white": false,
|
|
24
|
-
"eqeqeq": false,
|
|
25
|
-
"latedef": false,
|
|
26
|
-
"unused": "vars",
|
|
27
|
-
"strict": false,
|
|
28
|
-
"eqnull": true
|
|
29
|
-
}
|
package/.travis.yml
DELETED
package/BaseParser.js
DELETED
|
@@ -1,188 +0,0 @@
|
|
|
1
|
-
'use strict';
|
|
2
|
-
|
|
3
|
-
var CODE_NEWLINE = 10;
|
|
4
|
-
var CODE_CARRIAGE_RETURN = 13;
|
|
5
|
-
|
|
6
|
-
class Parser {
|
|
7
|
-
static createState(mixins) {
|
|
8
|
-
return mixins;
|
|
9
|
-
}
|
|
10
|
-
|
|
11
|
-
constructor(options) {
|
|
12
|
-
this.reset();
|
|
13
|
-
}
|
|
14
|
-
|
|
15
|
-
reset() {
|
|
16
|
-
// current absolute character position
|
|
17
|
-
this.pos = -1;
|
|
18
|
-
|
|
19
|
-
// The maxPos property is the last absolute character position that is
|
|
20
|
-
// readable based on the currently received chunks
|
|
21
|
-
this.maxPos = -1;
|
|
22
|
-
|
|
23
|
-
// the current parser state
|
|
24
|
-
this.state = null;
|
|
25
|
-
|
|
26
|
-
// The raw string that we are parsing
|
|
27
|
-
this.data = this.src = null;
|
|
28
|
-
|
|
29
|
-
this.filename = null;
|
|
30
|
-
}
|
|
31
|
-
|
|
32
|
-
setInitialState(initialState) {
|
|
33
|
-
this.initialState = initialState;
|
|
34
|
-
}
|
|
35
|
-
|
|
36
|
-
enterState(state) {
|
|
37
|
-
if (this.state === state) {
|
|
38
|
-
// Re-entering the same state can lead to unexpected behavior
|
|
39
|
-
// so we should throw error to catch these types of mistakes
|
|
40
|
-
throw new Error('Re-entering the current state is illegal - ' + state.name);
|
|
41
|
-
}
|
|
42
|
-
|
|
43
|
-
var oldState;
|
|
44
|
-
if ((oldState = this.state) && oldState.leave) {
|
|
45
|
-
// console.log('Leaving state ' + oldState.name);
|
|
46
|
-
oldState.leave.call(this, state);
|
|
47
|
-
}
|
|
48
|
-
|
|
49
|
-
// console.log('Entering state ' + state.name);
|
|
50
|
-
|
|
51
|
-
this.state = state;
|
|
52
|
-
|
|
53
|
-
if (state.enter) {
|
|
54
|
-
state.enter.call(this, oldState);
|
|
55
|
-
}
|
|
56
|
-
}
|
|
57
|
-
|
|
58
|
-
/**
|
|
59
|
-
* Look ahead to see if the given str matches the substring sequence
|
|
60
|
-
* beyond
|
|
61
|
-
*/
|
|
62
|
-
lookAheadFor(str, startPos) {
|
|
63
|
-
// Have we read enough chunks to read the string that we need?
|
|
64
|
-
if (startPos == null) {
|
|
65
|
-
startPos = this.pos + 1;
|
|
66
|
-
}
|
|
67
|
-
var len = str.length;
|
|
68
|
-
var endPos = startPos + len;
|
|
69
|
-
|
|
70
|
-
if (endPos > this.maxPos + 1) {
|
|
71
|
-
return undefined;
|
|
72
|
-
}
|
|
73
|
-
|
|
74
|
-
var found = this.data.substring(startPos, endPos);
|
|
75
|
-
return (found === str) ? str : undefined;
|
|
76
|
-
}
|
|
77
|
-
|
|
78
|
-
/**
|
|
79
|
-
* Look ahead to a character at a specific offset.
|
|
80
|
-
* The callback will be invoked with the character
|
|
81
|
-
* at the given position.
|
|
82
|
-
*/
|
|
83
|
-
lookAtCharAhead(offset, startPos) {
|
|
84
|
-
if (startPos == null) {
|
|
85
|
-
startPos = this.pos;
|
|
86
|
-
}
|
|
87
|
-
return this.data.charAt(startPos + offset);
|
|
88
|
-
}
|
|
89
|
-
|
|
90
|
-
lookAtCharCodeAhead(offset, startPos) {
|
|
91
|
-
if (startPos == null) {
|
|
92
|
-
startPos = this.pos;
|
|
93
|
-
}
|
|
94
|
-
return this.data.charCodeAt(startPos + offset);
|
|
95
|
-
}
|
|
96
|
-
|
|
97
|
-
rewind(offset) {
|
|
98
|
-
this.pos -= offset;
|
|
99
|
-
}
|
|
100
|
-
|
|
101
|
-
skip(offset) {
|
|
102
|
-
// console.log('-- ' + JSON.stringify(this.data.substring(this.pos, this.pos + offset)) + ' -- ' + 'SKIPPED'.gray);
|
|
103
|
-
this.pos += offset;
|
|
104
|
-
}
|
|
105
|
-
|
|
106
|
-
end() {
|
|
107
|
-
this.pos = this.maxPos + 1;
|
|
108
|
-
}
|
|
109
|
-
|
|
110
|
-
substring(pos, endPos) {
|
|
111
|
-
return this.data.substring(pos, endPos);
|
|
112
|
-
}
|
|
113
|
-
|
|
114
|
-
parse(data, filename) {
|
|
115
|
-
if (data == null) {
|
|
116
|
-
return;
|
|
117
|
-
}
|
|
118
|
-
|
|
119
|
-
// call the constructor function again because we have a contract that
|
|
120
|
-
// it will fully reset the parser
|
|
121
|
-
this.reset();
|
|
122
|
-
|
|
123
|
-
if (Array.isArray(data)) {
|
|
124
|
-
data = data.join('');
|
|
125
|
-
}
|
|
126
|
-
|
|
127
|
-
this.src = data; // This is the unmodified data used for reporting warnings
|
|
128
|
-
this.filename = filename;
|
|
129
|
-
this.data = data;
|
|
130
|
-
this.maxPos = data.length - 1;
|
|
131
|
-
|
|
132
|
-
// Enter initial state
|
|
133
|
-
if (this.initialState) {
|
|
134
|
-
this.enterState(this.initialState);
|
|
135
|
-
}
|
|
136
|
-
|
|
137
|
-
// Move to first position
|
|
138
|
-
// Skip the byte order mark (BOM) sequence
|
|
139
|
-
// at the beginning of the file if there is one:
|
|
140
|
-
// - https://en.wikipedia.org/wiki/Byte_order_mark
|
|
141
|
-
// > The Unicode Standard permits the BOM in UTF-8, but does not require or recommend its use.
|
|
142
|
-
this.pos = data.charCodeAt(0) === 0xFEFF ? 1 : 0;
|
|
143
|
-
|
|
144
|
-
if (!this.state) {
|
|
145
|
-
// Cannot resume when parser has no state
|
|
146
|
-
return;
|
|
147
|
-
}
|
|
148
|
-
|
|
149
|
-
var pos;
|
|
150
|
-
while ((pos = this.pos) <= this.maxPos) {
|
|
151
|
-
let ch = data[pos];
|
|
152
|
-
let code = ch.charCodeAt(0);
|
|
153
|
-
let state = this.state;
|
|
154
|
-
|
|
155
|
-
if (code === CODE_NEWLINE) {
|
|
156
|
-
if (state.eol) {
|
|
157
|
-
state.eol.call(this, ch);
|
|
158
|
-
}
|
|
159
|
-
this.pos++;
|
|
160
|
-
continue;
|
|
161
|
-
} else if (code === CODE_CARRIAGE_RETURN) {
|
|
162
|
-
let nextPos = pos + 1;
|
|
163
|
-
if (nextPos < data.length && data.charCodeAt(nextPos) === CODE_NEWLINE) {
|
|
164
|
-
if (state.eol) {
|
|
165
|
-
state.eol.call(this, '\r\n');
|
|
166
|
-
}
|
|
167
|
-
this.pos+=2;
|
|
168
|
-
continue;
|
|
169
|
-
}
|
|
170
|
-
}
|
|
171
|
-
|
|
172
|
-
// console.log('-- ' + JSON.stringify(ch) + ' -- ' + this.state.name.gray);
|
|
173
|
-
|
|
174
|
-
// We assume that every state will have "char" function
|
|
175
|
-
state.char.call(this, ch, code);
|
|
176
|
-
|
|
177
|
-
// move to next position
|
|
178
|
-
this.pos++;
|
|
179
|
-
}
|
|
180
|
-
|
|
181
|
-
let state = this.state;
|
|
182
|
-
if (state && state.eof) {
|
|
183
|
-
state.eof.call(this);
|
|
184
|
-
}
|
|
185
|
-
}
|
|
186
|
-
}
|
|
187
|
-
|
|
188
|
-
module.exports = Parser;
|