ionic-team / ionic-team/ionic-framework
bug: ion-label does not render when binding innerHTML directly
- Langage dominant
- TypeScript
- Étoiles
- 52.7k
- Forks
- 13.3k
- Merge moyen
- 1 j 15 h
- PR mergées (30 j)
- 51
Description
### Prerequisites
- [x] I have read the [Contributing Guidelines](https://github.com/ionic-team/ionic-framework/blob/main/docs/CONTRIBUTING.md#creating-an-issue).
- [x] I agree to follow the [Code of Conduct](https://ionicframework.com/code-of-conduct).
- [x] I have searched for [existing issues](https://github.com/ionic-team/ionic-framework/issues) that already report this problem, without success.
### Ionic Framework Version
v9.x, v8.x
### Current Behavior
When binding innerHTML directly to ion-label it does not get rendered.
### Expected Behavior
When binding innerHTML directly to ion-label it should be rendered.
### Steps to Reproduce
### Code Reproduction URL
https://stackblitz.com/edit/mchyfkqo?file=src%2Fapp%2Fexample.component.ts,src%2Fapp%2Fexample.component.html
### Ionic Info
However, wrapping the same content inside a native element works correctly:
### Additional Information
_No response_
Guide de contribution
Ouvrir le guide de contribution
Piste de recherche
Start by running the StackBlitz reproduction and inspect src/app/example.component.ts and src/app/example.component.html, comparing direct [innerHTML] binding on ion-label with the nested span case. Done means the bound HTML renders when applied directly to ion-label without breaking the working wrapped example.
Rédigé par le modèle d'indexation à partir du texte de l'issue.
Évaluation
- Stack technique
- angular, typescript
- Domaine
- frontend
- Type d'issue
- Bug
- Difficulté
- 3/5
- Temps estimé
- 1-2 jours
- Activité
- Active
- Clarté
- Plutôt claire
- Accessibilité débutants
- 64/100