htmljs-parser 2.11.3 → 3.2.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 +2020 -0
- package/dist/index.mjs +1999 -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 +127 -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 -3331
- 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 -51
- 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 -43
- package/test/autotest/tag-var-declaration/input.htmljs +0 -21
- 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/html-tags.js
DELETED
|
@@ -1,126 +0,0 @@
|
|
|
1
|
-
var openTagOnly = {};
|
|
2
|
-
|
|
3
|
-
[
|
|
4
|
-
'base',
|
|
5
|
-
'br',
|
|
6
|
-
'col',
|
|
7
|
-
'hr',
|
|
8
|
-
'embed',
|
|
9
|
-
'img',
|
|
10
|
-
'input',
|
|
11
|
-
'keygen',
|
|
12
|
-
'link',
|
|
13
|
-
'meta',
|
|
14
|
-
'param',
|
|
15
|
-
'source',
|
|
16
|
-
'track',
|
|
17
|
-
'wbr'
|
|
18
|
-
].forEach(function(tagName) {
|
|
19
|
-
openTagOnly[tagName] = true;
|
|
20
|
-
});
|
|
21
|
-
|
|
22
|
-
// [
|
|
23
|
-
// 'a',
|
|
24
|
-
// 'abbr',
|
|
25
|
-
// 'address',
|
|
26
|
-
// 'area',
|
|
27
|
-
// 'article',
|
|
28
|
-
// 'aside',
|
|
29
|
-
// 'audio',
|
|
30
|
-
// 'b',
|
|
31
|
-
// 'bdi',
|
|
32
|
-
// 'bdo',
|
|
33
|
-
// 'blockquote',
|
|
34
|
-
// 'body',
|
|
35
|
-
// 'button',
|
|
36
|
-
// 'canvas',
|
|
37
|
-
// 'caption',
|
|
38
|
-
// 'cite',
|
|
39
|
-
// 'code',
|
|
40
|
-
// 'colgroup',
|
|
41
|
-
// 'command',
|
|
42
|
-
// 'datalist',
|
|
43
|
-
// 'dd',
|
|
44
|
-
// 'del',
|
|
45
|
-
// 'details',
|
|
46
|
-
// 'dfn',
|
|
47
|
-
// 'div',
|
|
48
|
-
// 'dl',
|
|
49
|
-
// 'dt',
|
|
50
|
-
// 'em',
|
|
51
|
-
// 'fieldset',
|
|
52
|
-
// 'figcaption',
|
|
53
|
-
// 'figure',
|
|
54
|
-
// 'footer',
|
|
55
|
-
// 'form',
|
|
56
|
-
// 'h1',
|
|
57
|
-
// 'h2',
|
|
58
|
-
// 'h3',
|
|
59
|
-
// 'h4',
|
|
60
|
-
// 'h5',
|
|
61
|
-
// 'h6',
|
|
62
|
-
// 'head',
|
|
63
|
-
// 'header',
|
|
64
|
-
// 'hgroup',
|
|
65
|
-
// 'html',
|
|
66
|
-
// 'i',
|
|
67
|
-
// 'iframe',
|
|
68
|
-
// 'ins',
|
|
69
|
-
// 'kbd',
|
|
70
|
-
// 'label',
|
|
71
|
-
// 'legend',
|
|
72
|
-
// 'li',
|
|
73
|
-
// 'map',
|
|
74
|
-
// 'mark',
|
|
75
|
-
// 'menu',
|
|
76
|
-
// 'meter',
|
|
77
|
-
// 'nav',
|
|
78
|
-
// 'noscript',
|
|
79
|
-
// 'object',
|
|
80
|
-
// 'ol',
|
|
81
|
-
// 'optgroup',
|
|
82
|
-
// 'option',
|
|
83
|
-
// 'output',
|
|
84
|
-
// 'p',
|
|
85
|
-
// 'pre',
|
|
86
|
-
// 'progress',
|
|
87
|
-
// 'q',
|
|
88
|
-
// 'rp',
|
|
89
|
-
// 'rt',
|
|
90
|
-
// 'ruby',
|
|
91
|
-
// 's',
|
|
92
|
-
// 'samp',
|
|
93
|
-
// 'script',
|
|
94
|
-
// 'section',
|
|
95
|
-
// 'select',
|
|
96
|
-
// 'small',
|
|
97
|
-
// 'span',
|
|
98
|
-
// 'strong',
|
|
99
|
-
// 'style',
|
|
100
|
-
// 'sub',
|
|
101
|
-
// 'summary',
|
|
102
|
-
// 'sup',
|
|
103
|
-
// 'table',
|
|
104
|
-
// 'tbody',
|
|
105
|
-
// 'td',
|
|
106
|
-
// 'textarea',
|
|
107
|
-
// 'tfoot',
|
|
108
|
-
// 'th',
|
|
109
|
-
// 'thead',
|
|
110
|
-
// 'time',
|
|
111
|
-
// 'title',
|
|
112
|
-
// 'tr',
|
|
113
|
-
// 'u',
|
|
114
|
-
// 'ul',
|
|
115
|
-
// 'var',
|
|
116
|
-
// 'video',
|
|
117
|
-
// 'wbr'
|
|
118
|
-
// ].forEach(function(tagName) {
|
|
119
|
-
// openTagOnly[tagName] = {
|
|
120
|
-
// requireClosingTag: true
|
|
121
|
-
// };
|
|
122
|
-
// });
|
|
123
|
-
|
|
124
|
-
exports.isOpenTagOnly = function(tagName) {
|
|
125
|
-
return openTagOnly.hasOwnProperty(tagName);
|
|
126
|
-
};
|
package/index.js
DELETED
package/notify-util.js
DELETED
|
@@ -1,319 +0,0 @@
|
|
|
1
|
-
exports.createNotifiers = function(parser, listeners) {
|
|
2
|
-
var hasError = false;
|
|
3
|
-
|
|
4
|
-
return {
|
|
5
|
-
notifyText(value, textParseMode) {
|
|
6
|
-
if (hasError) {
|
|
7
|
-
return;
|
|
8
|
-
}
|
|
9
|
-
|
|
10
|
-
var eventFunc = listeners.onText;
|
|
11
|
-
|
|
12
|
-
if (eventFunc && (value.length > 0)) {
|
|
13
|
-
eventFunc.call(parser, {
|
|
14
|
-
type: 'text',
|
|
15
|
-
value: value,
|
|
16
|
-
parseMode: textParseMode
|
|
17
|
-
}, parser);
|
|
18
|
-
}
|
|
19
|
-
},
|
|
20
|
-
|
|
21
|
-
notifyCDATA(value, pos, endPos) {
|
|
22
|
-
if (hasError) {
|
|
23
|
-
return;
|
|
24
|
-
}
|
|
25
|
-
|
|
26
|
-
var eventFunc = listeners.onCDATA;
|
|
27
|
-
|
|
28
|
-
if (eventFunc && value) {
|
|
29
|
-
eventFunc.call(parser, {
|
|
30
|
-
type: 'cdata',
|
|
31
|
-
value: value,
|
|
32
|
-
pos: pos,
|
|
33
|
-
endPos: endPos
|
|
34
|
-
}, parser);
|
|
35
|
-
}
|
|
36
|
-
},
|
|
37
|
-
|
|
38
|
-
notifyError(pos, errorCode, message) {
|
|
39
|
-
if (hasError) {
|
|
40
|
-
return;
|
|
41
|
-
}
|
|
42
|
-
|
|
43
|
-
hasError = true;
|
|
44
|
-
|
|
45
|
-
var eventFunc = listeners.onError;
|
|
46
|
-
|
|
47
|
-
if (eventFunc) {
|
|
48
|
-
eventFunc.call(parser, {
|
|
49
|
-
type: 'error',
|
|
50
|
-
code: errorCode,
|
|
51
|
-
message: message,
|
|
52
|
-
pos: pos,
|
|
53
|
-
endPos: parser.pos
|
|
54
|
-
}, parser);
|
|
55
|
-
}
|
|
56
|
-
},
|
|
57
|
-
|
|
58
|
-
notifyOpenTagName(tagInfo) {
|
|
59
|
-
if (hasError) {
|
|
60
|
-
return;
|
|
61
|
-
}
|
|
62
|
-
|
|
63
|
-
var eventFunc = listeners.onOpenTagName;
|
|
64
|
-
|
|
65
|
-
if (eventFunc) {
|
|
66
|
-
// set the literalValue property for attributes that are simple
|
|
67
|
-
// string simple values or simple literal values
|
|
68
|
-
|
|
69
|
-
var event = {
|
|
70
|
-
type: 'openTagName',
|
|
71
|
-
tagName: tagInfo.tagName,
|
|
72
|
-
tagNameExpression: tagInfo.tagNameExpression,
|
|
73
|
-
emptyTagName: tagInfo.emptyTagName,
|
|
74
|
-
pos: tagInfo.pos,
|
|
75
|
-
endPos: tagInfo.tagNameEndPos,
|
|
76
|
-
concise: tagInfo.concise
|
|
77
|
-
};
|
|
78
|
-
|
|
79
|
-
if (tagInfo.shorthandId) {
|
|
80
|
-
event.shorthandId = tagInfo.shorthandId;
|
|
81
|
-
}
|
|
82
|
-
|
|
83
|
-
if (tagInfo.shorthandClassNames) {
|
|
84
|
-
event.shorthandClassNames = tagInfo.shorthandClassNames;
|
|
85
|
-
}
|
|
86
|
-
|
|
87
|
-
event.setParseOptions = function(parseOptions) {
|
|
88
|
-
if (!parseOptions) {
|
|
89
|
-
return;
|
|
90
|
-
}
|
|
91
|
-
tagInfo.parseOptions = parseOptions;
|
|
92
|
-
};
|
|
93
|
-
|
|
94
|
-
eventFunc.call(parser, event, parser);
|
|
95
|
-
}
|
|
96
|
-
},
|
|
97
|
-
|
|
98
|
-
notifyOpenTag(tagInfo) {
|
|
99
|
-
if (hasError) {
|
|
100
|
-
return;
|
|
101
|
-
}
|
|
102
|
-
|
|
103
|
-
var eventFunc = listeners.onOpenTag;
|
|
104
|
-
|
|
105
|
-
if (eventFunc) {
|
|
106
|
-
// set the literalValue property for attributes that are simple
|
|
107
|
-
// string simple values or simple literal values
|
|
108
|
-
|
|
109
|
-
var event = {
|
|
110
|
-
type: 'openTag',
|
|
111
|
-
tagName: tagInfo.tagName,
|
|
112
|
-
tagNameExpression: tagInfo.tagNameExpression,
|
|
113
|
-
emptyTagName: tagInfo.emptyTagName,
|
|
114
|
-
var: tagInfo.var,
|
|
115
|
-
argument: tagInfo.argument,
|
|
116
|
-
params: tagInfo.params,
|
|
117
|
-
pos: tagInfo.pos,
|
|
118
|
-
endPos: tagInfo.endPos,
|
|
119
|
-
tagNameEndPos: tagInfo.tagNameEndPos,
|
|
120
|
-
openTagOnly: tagInfo.openTagOnly,
|
|
121
|
-
selfClosed: tagInfo.selfClosed,
|
|
122
|
-
concise: tagInfo.concise
|
|
123
|
-
};
|
|
124
|
-
|
|
125
|
-
if (tagInfo.shorthandId) {
|
|
126
|
-
event.shorthandId = tagInfo.shorthandId;
|
|
127
|
-
}
|
|
128
|
-
|
|
129
|
-
if (tagInfo.shorthandClassNames) {
|
|
130
|
-
event.shorthandClassNames = tagInfo.shorthandClassNames;
|
|
131
|
-
}
|
|
132
|
-
|
|
133
|
-
event.attributes = tagInfo.attributes.map((attr) => {
|
|
134
|
-
var newAttr = {
|
|
135
|
-
default: attr.default,
|
|
136
|
-
name: attr.name,
|
|
137
|
-
value: attr.value,
|
|
138
|
-
pos: attr.pos,
|
|
139
|
-
endPos: attr.endPos,
|
|
140
|
-
argument: attr.argument,
|
|
141
|
-
method: attr.method,
|
|
142
|
-
bound: attr.bound
|
|
143
|
-
};
|
|
144
|
-
|
|
145
|
-
if (attr.hasOwnProperty('literalValue')) {
|
|
146
|
-
newAttr.literalValue = attr.literalValue;
|
|
147
|
-
}
|
|
148
|
-
|
|
149
|
-
return newAttr;
|
|
150
|
-
});
|
|
151
|
-
|
|
152
|
-
event.setParseOptions = function(parseOptions) {
|
|
153
|
-
if (!parseOptions) {
|
|
154
|
-
return;
|
|
155
|
-
}
|
|
156
|
-
var newState = parseOptions.state;
|
|
157
|
-
|
|
158
|
-
if (newState) {
|
|
159
|
-
if (newState === 'parsed-text') {
|
|
160
|
-
parser.enterParsedTextContentState();
|
|
161
|
-
} else if (newState === 'static-text') {
|
|
162
|
-
parser.enterStaticTextContentState();
|
|
163
|
-
}
|
|
164
|
-
}
|
|
165
|
-
|
|
166
|
-
tagInfo.parseOptions = parseOptions;
|
|
167
|
-
};
|
|
168
|
-
|
|
169
|
-
eventFunc.call(parser, event, parser);
|
|
170
|
-
}
|
|
171
|
-
},
|
|
172
|
-
|
|
173
|
-
notifyCloseTag(tagName, pos, endPos) {
|
|
174
|
-
if (hasError) {
|
|
175
|
-
return;
|
|
176
|
-
}
|
|
177
|
-
|
|
178
|
-
var eventFunc = listeners.onCloseTag;
|
|
179
|
-
|
|
180
|
-
if (eventFunc) {
|
|
181
|
-
var event = {
|
|
182
|
-
type: 'closeTag',
|
|
183
|
-
tagName: tagName,
|
|
184
|
-
pos: pos,
|
|
185
|
-
endPos: endPos
|
|
186
|
-
};
|
|
187
|
-
|
|
188
|
-
eventFunc.call(parser, event, parser);
|
|
189
|
-
}
|
|
190
|
-
},
|
|
191
|
-
|
|
192
|
-
notifyDocumentType(documentType) {
|
|
193
|
-
if (hasError) {
|
|
194
|
-
return;
|
|
195
|
-
}
|
|
196
|
-
|
|
197
|
-
var eventFunc = listeners.onDocumentType;
|
|
198
|
-
|
|
199
|
-
if (eventFunc) {
|
|
200
|
-
eventFunc.call(this, {
|
|
201
|
-
type: 'documentType',
|
|
202
|
-
value: documentType.value,
|
|
203
|
-
pos: documentType.pos,
|
|
204
|
-
endPos: documentType.endPos
|
|
205
|
-
}, parser);
|
|
206
|
-
}
|
|
207
|
-
},
|
|
208
|
-
|
|
209
|
-
notifyDeclaration(declaration) {
|
|
210
|
-
if (hasError) {
|
|
211
|
-
return;
|
|
212
|
-
}
|
|
213
|
-
|
|
214
|
-
var eventFunc = listeners.onDeclaration;
|
|
215
|
-
|
|
216
|
-
if (eventFunc) {
|
|
217
|
-
eventFunc.call(parser, {
|
|
218
|
-
type: 'declaration',
|
|
219
|
-
value: declaration.value,
|
|
220
|
-
pos: declaration.pos,
|
|
221
|
-
endPos: declaration.endPos
|
|
222
|
-
}, parser);
|
|
223
|
-
}
|
|
224
|
-
},
|
|
225
|
-
|
|
226
|
-
notifyComment(comment) {
|
|
227
|
-
if (hasError) {
|
|
228
|
-
return;
|
|
229
|
-
}
|
|
230
|
-
|
|
231
|
-
var eventFunc = listeners.onComment;
|
|
232
|
-
|
|
233
|
-
if (eventFunc && comment.value) {
|
|
234
|
-
eventFunc.call(parser, {
|
|
235
|
-
type: 'comment',
|
|
236
|
-
value: comment.value,
|
|
237
|
-
pos: comment.pos,
|
|
238
|
-
endPos: comment.endPos
|
|
239
|
-
}, parser);
|
|
240
|
-
}
|
|
241
|
-
},
|
|
242
|
-
|
|
243
|
-
notifyScriptlet(scriptlet) {
|
|
244
|
-
if (hasError) {
|
|
245
|
-
return;
|
|
246
|
-
}
|
|
247
|
-
|
|
248
|
-
var eventFunc = listeners.onScriptlet;
|
|
249
|
-
|
|
250
|
-
if (eventFunc && scriptlet.value) {
|
|
251
|
-
eventFunc.call(parser, {
|
|
252
|
-
type: 'scriptlet',
|
|
253
|
-
tag: scriptlet.tag,
|
|
254
|
-
line: scriptlet.line,
|
|
255
|
-
block: scriptlet.block,
|
|
256
|
-
value: scriptlet.value,
|
|
257
|
-
pos: scriptlet.pos,
|
|
258
|
-
endPos: scriptlet.endPos
|
|
259
|
-
}, parser);
|
|
260
|
-
}
|
|
261
|
-
},
|
|
262
|
-
|
|
263
|
-
notifyPlaceholder(placeholder) {
|
|
264
|
-
if (hasError) {
|
|
265
|
-
return;
|
|
266
|
-
}
|
|
267
|
-
|
|
268
|
-
var eventFunc = listeners.onPlaceholder;
|
|
269
|
-
if (eventFunc) {
|
|
270
|
-
var placeholderEvent = {
|
|
271
|
-
type: 'placeholder',
|
|
272
|
-
value: placeholder.value,
|
|
273
|
-
pos: placeholder.pos,
|
|
274
|
-
endPos: placeholder.endPos,
|
|
275
|
-
escape: placeholder.escape !== false,
|
|
276
|
-
withinBody: placeholder.withinBody === true,
|
|
277
|
-
withinAttribute: placeholder.withinAttribute === true,
|
|
278
|
-
withinString: placeholder.withinString === true,
|
|
279
|
-
withinOpenTag: placeholder.withinOpenTag === true,
|
|
280
|
-
withinTagName: placeholder.withinTagName === true
|
|
281
|
-
};
|
|
282
|
-
|
|
283
|
-
eventFunc.call(parser, placeholderEvent, parser);
|
|
284
|
-
return placeholderEvent.value;
|
|
285
|
-
}
|
|
286
|
-
|
|
287
|
-
return placeholder.value;
|
|
288
|
-
},
|
|
289
|
-
|
|
290
|
-
notifyString(string) {
|
|
291
|
-
if (hasError) {
|
|
292
|
-
return;
|
|
293
|
-
}
|
|
294
|
-
|
|
295
|
-
var eventFunc = listeners.onString;
|
|
296
|
-
if (eventFunc) {
|
|
297
|
-
var stringEvent = {
|
|
298
|
-
type: 'string',
|
|
299
|
-
value: string.value,
|
|
300
|
-
pos: string.pos,
|
|
301
|
-
endPos: string.endPos,
|
|
302
|
-
stringParts: string.stringParts,
|
|
303
|
-
isStringLiteral: string.isStringLiteral
|
|
304
|
-
};
|
|
305
|
-
|
|
306
|
-
eventFunc.call(parser, stringEvent, parser);
|
|
307
|
-
return stringEvent.value;
|
|
308
|
-
}
|
|
309
|
-
|
|
310
|
-
return string.value;
|
|
311
|
-
},
|
|
312
|
-
|
|
313
|
-
notifyFinish() {
|
|
314
|
-
if (listeners.onfinish) {
|
|
315
|
-
listeners.onfinish.call(parser, {}, parser);
|
|
316
|
-
}
|
|
317
|
-
}
|
|
318
|
-
};
|
|
319
|
-
};
|
package/operators.js
DELETED
|
@@ -1,65 +0,0 @@
|
|
|
1
|
-
var operators = exports.operators = [
|
|
2
|
-
//Multiplicative Operators
|
|
3
|
-
'*', '/', '%',
|
|
4
|
-
|
|
5
|
-
//Additive Operators
|
|
6
|
-
'+', '-',
|
|
7
|
-
|
|
8
|
-
//Bitwise Shift Operators
|
|
9
|
-
'<<', '>>', '>>>',
|
|
10
|
-
|
|
11
|
-
//Relational Operators
|
|
12
|
-
'<', '<=', '>', '>=',
|
|
13
|
-
|
|
14
|
-
// Readable Operators
|
|
15
|
-
// NOTE: These become reserved words and cannot be used as attribute names
|
|
16
|
-
'instanceof',
|
|
17
|
-
'in',
|
|
18
|
-
// 'from', -- as in <import x from './file'/>
|
|
19
|
-
// 'typeof', -- would need to look behind, not ahead
|
|
20
|
-
|
|
21
|
-
// Equality Operators
|
|
22
|
-
'==', '!=', '===', '!==',
|
|
23
|
-
|
|
24
|
-
// Binary Bitwise Operators
|
|
25
|
-
'&', '^', '|',
|
|
26
|
-
|
|
27
|
-
// Binary Logical Operators
|
|
28
|
-
'&&', '||',
|
|
29
|
-
|
|
30
|
-
// Ternary Operator
|
|
31
|
-
'?', ':',
|
|
32
|
-
|
|
33
|
-
// Member
|
|
34
|
-
'['
|
|
35
|
-
];
|
|
36
|
-
|
|
37
|
-
var unary = [
|
|
38
|
-
'typeof',
|
|
39
|
-
'new',
|
|
40
|
-
'void'
|
|
41
|
-
];
|
|
42
|
-
|
|
43
|
-
// Look for longest operators first
|
|
44
|
-
operators.sort(function(a, b) {
|
|
45
|
-
return b.length - a.length;
|
|
46
|
-
});
|
|
47
|
-
|
|
48
|
-
exports.longest = operators.sort((a, b) => b.length-a.length)[0].length+1;
|
|
49
|
-
exports.patternNext = new RegExp('^\\s*('+operators.map(escapeOperator).join('|')+')\\s*(?!-)');
|
|
50
|
-
exports.patternPrev = new RegExp('[^-+](?:'+operators.concat(unary).map(escapeOperator).join('|')+')(\\s*)$');
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
function escapeOperator(o) {
|
|
54
|
-
if(/^[A-Z]+$/i.test(o)) {
|
|
55
|
-
return '\\b'+escapeNonAlphaNumeric(o)+'\\b';
|
|
56
|
-
}
|
|
57
|
-
if(o === '/') {
|
|
58
|
-
return '\\/(?:\\b|\\s)'; //make sure this isn't a comment
|
|
59
|
-
}
|
|
60
|
-
return escapeNonAlphaNumeric(o);
|
|
61
|
-
}
|
|
62
|
-
|
|
63
|
-
function escapeNonAlphaNumeric(str) {
|
|
64
|
-
return str.replace(/([^\w\d])/g, '\\$1');
|
|
65
|
-
}
|
package/test/.jshintrc
DELETED
|
@@ -1,43 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"predef": [
|
|
3
|
-
"it",
|
|
4
|
-
"xit",
|
|
5
|
-
"console",
|
|
6
|
-
"describe",
|
|
7
|
-
"xdescribe",
|
|
8
|
-
"beforeEach",
|
|
9
|
-
"before",
|
|
10
|
-
"after",
|
|
11
|
-
"waits",
|
|
12
|
-
"waitsFor",
|
|
13
|
-
"runs"
|
|
14
|
-
],
|
|
15
|
-
"node" : true,
|
|
16
|
-
"es5" : false,
|
|
17
|
-
"esnext": true,
|
|
18
|
-
"browser" : true,
|
|
19
|
-
"boss" : false,
|
|
20
|
-
"curly": false,
|
|
21
|
-
"debug": false,
|
|
22
|
-
"devel": false,
|
|
23
|
-
"eqeqeq": true,
|
|
24
|
-
"evil": true,
|
|
25
|
-
"forin": false,
|
|
26
|
-
"immed": true,
|
|
27
|
-
"laxbreak": false,
|
|
28
|
-
"newcap": true,
|
|
29
|
-
"noarg": true,
|
|
30
|
-
"noempty": false,
|
|
31
|
-
"nonew": true,
|
|
32
|
-
"nomen": false,
|
|
33
|
-
"onevar": false,
|
|
34
|
-
"plusplus": false,
|
|
35
|
-
"regexp": false,
|
|
36
|
-
"undef": true,
|
|
37
|
-
"sub": false,
|
|
38
|
-
"white": false,
|
|
39
|
-
"eqeqeq": false,
|
|
40
|
-
"latedef": true,
|
|
41
|
-
"unused": "vars",
|
|
42
|
-
"eqnull": true
|
|
43
|
-
}
|
package/test/1.x-test.js
DELETED
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
<((x)) ARGS=(y) SELF_CLOSED>
|
|
2
|
-
</${x}>
|
|
3
|
-
text:"\n"
|
|
4
|
-
<((x)) PARAMS=(y) SELF_CLOSED>
|
|
5
|
-
</${x}>
|
|
6
|
-
text:"\n"
|
|
7
|
-
<tag ARGS=(y) shorthandClassNames=["x"] SELF_CLOSED>
|
|
8
|
-
</tag>
|
|
9
|
-
text:"\n"
|
|
10
|
-
<tag PARAMS=(y) shorthandClassNames=["x"] SELF_CLOSED>
|
|
11
|
-
</tag>
|
|
12
|
-
text:"\n"
|
|
13
|
-
<tag ARGS=(y) shorthandId="x" SELF_CLOSED>
|
|
14
|
-
</tag>
|
|
15
|
-
text:"\n"
|
|
16
|
-
<tag PARAMS=(y) shorthandId="x" SELF_CLOSED>
|
|
17
|
-
</tag>
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
<div if(x > y)></div>
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
error:"An attribute can only have one argument" (code: "ILLEGAL_ATTRIBUTE_ARGUMENT")
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
<div for(var i = 0; i < 10; i++) (nonsense!)></div>
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
<for(var i = 0; i < 10; i++) if(x > y)></for>
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
<for (x in ["Hello ${name}!", "(World)"])></for>
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
<for (x in y)></for>
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
error:"A tag can only have one argument" (code: "ILLEGAL_TAG_ARGUMENT")
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
<for(var i = 0; i < 10; i++) (nonsense!)></for>
|