Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Angular templates self closing tags #14168

Closed
SebastianPodgajny opened this issue Jan 12, 2023 · 2 comments · Fixed by #14170
Closed

Angular templates self closing tags #14168

SebastianPodgajny opened this issue Jan 12, 2023 · 2 comments · Fixed by #14170
Assignees
Labels
lang:angular Issues affecting Angular template (not general JS/TS issues used for Angular) locked-due-to-inactivity Please open a new issue and fill out the template instead of commenting. type:bug Issues identifying ugly output, or a defect in the program

Comments

@SebastianPodgajny
Copy link

Prettier 2.8.2
Playground link

Input:

<app-test/>

Output:

SyntaxError: Only void and foreign elements can be self closed "app-test" (1:1)
> 1 | <app-test/>
    | ^^^^^^^^^
  2 |

Expected behavior:
In Angular 15.1.0 developers are allowed to use self closed tags for custom elements angular/angular#48535
Prettier should support this feature

@fisker
Copy link
Sponsor Member

fisker commented Jan 14, 2023

Will make a release today.

@fisker
Copy link
Sponsor Member

fisker commented Jan 14, 2023

@fisker fisker unpinned this issue Jan 14, 2023
@github-actions github-actions bot added the locked-due-to-inactivity Please open a new issue and fill out the template instead of commenting. label Nov 27, 2023
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Nov 27, 2023
medikoo pushed a commit to medikoo/prettier-elastic that referenced this issue Jan 4, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
lang:angular Issues affecting Angular template (not general JS/TS issues used for Angular) locked-due-to-inactivity Please open a new issue and fill out the template instead of commenting. type:bug Issues identifying ugly output, or a defect in the program
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants