Skip to content

fix(compiler): incorrect source span for expression AST inside template attribute#63175

Closed
crisbeto wants to merge 1 commit intoangular:mainfrom
crisbeto:63157/template-attrs-whitespace
Closed

fix(compiler): incorrect source span for expression AST inside template attribute#63175
crisbeto wants to merge 1 commit intoangular:mainfrom
crisbeto:63157/template-attrs-whitespace

Conversation

@crisbeto
Copy link
Copy Markdown
Member

Similar fix as #63082, but for template attributes. The root cause is the same where we should be using fullStart instead of start in order to account for whitespaces being skipped.

Fixes #63157.

…te attribute

Similar fix as angular#63082, but for template attributes. The root cause is the same where we should be using `fullStart` instead of `start` in order to account for whitespaces being skipped.

Fixes angular#63157.
@crisbeto crisbeto added action: review The PR is still awaiting reviews from at least one requested reviewer target: patch This PR is targeted for the next patch release labels Aug 15, 2025
@angular-robot angular-robot bot added the area: compiler Issues related to `ngc`, Angular's template compiler label Aug 15, 2025
@ngbot ngbot bot added this to the Backlog milestone Aug 15, 2025
@crisbeto crisbeto requested a review from JoostK August 15, 2025 07:03
@crisbeto crisbeto added action: merge The PR is ready for merge by the caretaker and removed action: review The PR is still awaiting reviews from at least one requested reviewer labels Aug 15, 2025
@crisbeto
Copy link
Copy Markdown
Member Author

This PR was merged into the repository by commit 9ac6385.

The changes were merged into the following branches: main, 20.1.x, 20.2.x

crisbeto added a commit that referenced this pull request Aug 15, 2025
…te attribute (#63175)

Similar fix as #63082, but for template attributes. The root cause is the same where we should be using `fullStart` instead of `start` in order to account for whitespaces being skipped.

Fixes #63157.

PR Close #63175
@crisbeto crisbeto closed this in 9ac6385 Aug 15, 2025
crisbeto added a commit that referenced this pull request Aug 15, 2025
…te attribute (#63175)

Similar fix as #63082, but for template attributes. The root cause is the same where we should be using `fullStart` instead of `start` in order to account for whitespaces being skipped.

Fixes #63157.

PR Close #63175
@angular-automatic-lock-bot
Copy link
Copy Markdown

This issue has been automatically locked due to inactivity.
Please file a new issue if you are encountering a similar or related problem.

Read more about our automatic conversation locking policy.

This action has been performed automatically by a bot.

@angular-automatic-lock-bot angular-automatic-lock-bot bot locked and limited conversation to collaborators Sep 15, 2025
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

action: merge The PR is ready for merge by the caretaker area: compiler Issues related to `ngc`, Angular's template compiler target: patch This PR is targeted for the next patch release

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Leading whitespace in template attributes causes incorrect source span

2 participants