angular-cn/packages/compiler/test/ml_parser
Pete Bacon Darwin 9de65dbdce fix(compiler): should not break a text token on a non-valid start tag (#42605)
Previously the lexer would break out of consuming a text token if it contains
a `<` character. Then if the next characters did not indicate an HTML syntax
item, such as a tag or comment, then it would start a new text token. These
consecutive text tokens are then merged into each other in a post tokenization
step.

In the commit before this, interpolation no longer leaks across text tokens.
The approach given above to handling `<` characters that appear in text is
no longer adequate. This change ensures that the lexer only breaks out of
a text token if the next characters indicate a valid HTML tag, comment,
CDATA etc.

PR Close #42605
2021-06-22 16:37:00 +00:00
..
util build: update license headers to reference Google LLC (#37205) 2020-05-26 14:26:58 -04:00
BUILD.bazel build: derive ts_library dep from jasmine_node_test boostrap label if it ends in `_es5` (#34736) 2020-01-15 14:58:07 -05:00
ast_serializer_spec.ts build: update license headers to reference Google LLC (#37205) 2020-05-26 14:26:58 -04:00
ast_spec_utils.ts refactor(compiler): element.startSourceSpan is required (#38581) 2020-09-02 14:47:28 -07:00
html_parser_spec.ts fix(compiler): always match close tag to the nearest open element (#42554) 2021-06-14 14:10:46 -07:00
html_whitespaces_spec.ts build: update license headers to reference Google LLC (#37205) 2020-05-26 14:26:58 -04:00
icu_ast_expander_spec.ts refactor(compiler): element.startSourceSpan is required (#38581) 2020-09-02 14:47:28 -07:00
lexer_spec.ts fix(compiler): should not break a text token on a non-valid start tag (#42605) 2021-06-22 16:37:00 +00:00