google / closure-templates

A client- and server-side templating system that helps you dynamically build reusable HTML and UI elements

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Shouldn't allow using bidiSpanWrap in content kind "text"

dbarnett opened this issue · comments

I found when I accidentally used the bidiSpanWrap directive in a template block with kind="text" it would look fine in simple cases with same text directionality but show literal <span dir="ltr"></span>s in the content in other cases. Since this directive is fundamentally incompatible with kind="text", is it possible for the compiler to detect this incompatible usage and give an error?