[prefer-self-closing-tags] closes ng-container with #1700
Labels
package: eslint-plugin-template
Angular Template rules
triage
This issue needs to be looked at and categorized by a maintainer
Description and reproduction of the issue
The self-closing tag rule considers an
ng-content
with a non-breakable space as an empty tag.But this is not true, as a non-breakable space is a rendered element.
The auto-fixer removes the non-breakable space, which causes a UI change.
Rendered:
prefix suffix
Rendered:
prefixsuffix
Versions
@angular-eslint/eslint-plugin-template
17.2.0
@angular-eslint/template-parser
17.2.0
@typescript-eslint/parser
6.19.0
ESLint
8.56.0
node
20.10.0
# Please run `npx ng version` in your project and paste the full output here: Angular CLI: 17.1.0 Node: 20.10.0 Package Manager: npm 10.2.3 OS: win32 x64 Angular: 17.1.0 ... animations, cdk, cli, common, compiler, compiler-cli, core ... forms, language-service, localize, platform-browser ... platform-browser-dynamic, router Package Version --------------------------------------------------------- @angular-devkit/architect 0.1701.0 @angular-devkit/build-angular 17.1.0 @angular-devkit/core 17.1.0 @angular-devkit/schematics 17.1.0 @schematics/angular 17.1.0 rxjs 7.8.1 typescript 5.2.2 zone.js 0.14.3
ng version
output per the instructions given here.The text was updated successfully, but these errors were encountered: