Closed frankvaneykelen closed 8 years ago
Great catch, thanks. And especially thanks for including a fix :) I'll get this patched up and a new version up on NuGet ASAP (most likely later today).
Great! Please make sure that to add CreateSanitizedId()'s everywhere it's needed - I only fixed it for my use case, but there may be others!
Can you confirm which version of FluentBootstrap you're using? It looks like this may have been fixed in 3.3.5.0. It looks like I'm currently getting the correct output from the tests:
I've not been able to replicate it either.
@daveaglick version: 3.3.4.4. I'll go and try the latest version.
I can confirm that this is fixed in 3.3.5.1. Thanks for your help.
Excellent - glad it's working for you now. Just let me know if you run into any other problems.
This is how the built-in HTML helpers deal with nested entities:
Razor:
HTML:
Please note that the dot has been replaced by an underscore for the 'id' and 'for' attributes only.
FluentBootstrap handles it differently (incorrectly):
Razor:
HTML:
Please note that the dot has been replaced by an underscore for the 'name' attribute too.
I would expect the name of the markup generated by the FluentBootstrap helper to be the same. This also breaks my model binding.
I have changed GetControlName to fix this is my project. It now does this:
I also added these lines to Tag.OnStart():