angular/packages/compiler/src/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
..
ast.ts refactor(compiler): stricter types for HTML AST (#41360) 2021-05-06 17:34:52 -04:00
html_parser.ts build: update license headers to reference Google LLC (#37205) 2020-05-26 14:26:58 -04:00
html_tags.ts fix(compiler): incorrectly inferring content type of SVG-specific title tag (#40259) 2021-01-11 15:35:23 -08:00
html_whitespaces.ts build: update license headers to reference Google LLC (#37205) 2020-05-26 14:26:58 -04:00
icu_ast_expander.ts refactor(compiler-cli): add keySpan to text attributes (#39613) 2020-11-12 14:19:00 -08:00
interpolation_config.ts build: update license headers to reference Google LLC (#37205) 2020-05-26 14:26:58 -04:00
lexer.ts fix(compiler): should not break a text token on a non-valid start tag (#42605) 2021-06-22 16:37:00 +00:00
parser.ts fix(compiler): always match close tag to the nearest open element (#42554) 2021-06-14 14:10:46 -07:00
tags.ts fix(compiler): incorrectly inferring content type of SVG-specific title tag (#40259) 2021-01-11 15:35:23 -08:00
xml_parser.ts build: update license headers to reference Google LLC (#37205) 2020-05-26 14:26:58 -04:00
xml_tags.ts fix(compiler): incorrectly inferring content type of SVG-specific title tag (#40259) 2021-01-11 15:35:23 -08:00