描述
Environment
Provide version numbers for the following components (information can be retrieved by running tns info in your project folder or by inspecting the package.json of the project):
- CLI: 4.2
- Cross-platform modules: 4.2
- Android Runtime:4.2
- iOS Runtime: not tested
- Plugin(s): none
Describe the bug
<label>
<FormattedString>
<span text="This span does not render because span is lowercased"></span>
</FormattedString>
</label>
<label>
<FormattedString>
<Span text="This Span renders"></Span>
</FormattedString>
</label>
To Reproduce
Lowercase a Span -> span and it will not render.
Playground: https://play.nativescript.org/?template=play-ng&id=zC6iKJ
Expected behavior
Span should still be rendered regardless of casing of Span and FormattedString should also support formatted-string in the same manner we can do stack-layout for other views.
I have not added formatted-string in the playground but I'd expect it to behave the same as StackLayout when used as stack-layout which is shown on the playground and has been working for several major releases of NS. For it to not render without throwing any template errors can be a time sink for the developer 😄 so if this is a limitation of parsing or with templates then I'd expect some form of template parsing error to be thrown/indicated so it can be corrected. When I encountered this I spent a long time trying to adjust my layouts and wiring up events to see if it was just hidden or rendered incorrectly.
Sample project
Playground: https://play.nativescript.org/?template=play-ng&id=zC6iKJ
Want to back this issue? Post a bounty on it! We accept bounties via Bountysource.