Closed johan-ohrn closed 5 years ago
Another excellent catch. Thank you!
Here is a proposed fix. It is a one-liner in jsviews.js or jquery.views.js download.zip
if (elCnt && !inTag) {
// elContent maps tagNames which have only element content...
Let me know if it works correctly for you.
I can confirm that it works. Thanks a lot!
The fix is included in the new v1.0.3 release.
Look at this fiddle with the console open and inspect the generated html code. This output from this template is missing a whitespace between tag and the attribute:
it's rendered as:
Expected rendered output is:
Even manually adding whitespsace inside the if-expression doesn't help. I'm only having this issue with the table tag. Divs and other elements seem to work as expected.