angular/packages/compiler/test
Matthew Beck b478e91068 fix(compiler): support arbitrary nesting in :host-context()
Previously we supported one level of nested pseudo-element selectors
inside :host-context(), e.g. :host-context(:is(.foo, .bar)). This was
based on a regex-based approach. We could support deeper levels of
nesting by updating the regex, but using a regex approach prohibits us
from supporting arbitrary nesting.

Rather than just adding one more level to the existing expression, I've
added a new generator function which splits selectors on commas in a
parenthesis-aware way. This allows us to support arbitrary nesting.

It's likely we'll want to reuse this in other places where we're not as
careful today. We'll probably do this on a request-based basis, though.

Fixes #59176
2025-10-27 13:40:47 +01:00
..
expression_parser fix(compiler): recover template literals with broken expressions (#64150) 2025-09-30 16:01:50 -04:00
i18n refactor(compiler): Remove the interpolation config (#64071) 2025-09-29 15:29:46 -04:00
ml_parser fix(compiler): correctly compile long numeric HTML entities (#64297) 2025-10-17 18:23:44 +00:00
output refactor(compiler): remove unused code (#61668) 2025-05-26 12:21:09 +00:00
render3 refactor(compiler): Improve pipe in track expression error (#64321) 2025-10-13 08:59:56 -07:00
schema fix(compiler): Add support for aria-invalid (#63748) 2025-09-15 18:41:16 +00:00
selector build: rename defaults2.bzl to defaults.bzl (#63383) 2025-08-25 15:45:01 -07:00
shadow_css fix(compiler): support arbitrary nesting in :host-context() 2025-10-27 13:40:47 +01:00
BUILD.bazel build: remove empty globs (#64270) 2025-10-07 20:28:11 -04:00
compiler_facade_interface_spec.ts docs: set syntax highlighting of code examples MD code blocks (#59026) 2024-12-04 17:30:28 +01:00
integration_spec.ts build: migrate packages/compiler to ts_project (#61566) 2025-05-29 14:39:10 -04:00
security_spec.ts refactor: update license text to point to angular.dev (#57901) 2024-09-24 15:33:00 +02:00
style_url_resolver_spec.ts refactor(compiler): convert scripts within packages/compiler to relative imports (#60625) 2025-04-01 11:57:53 +00:00
util_spec.ts refactor(compiler): remove unused code (#61668) 2025-05-26 12:21:09 +00:00