prettier-plugin-liquid icon indicating copy to clipboard operation
prettier-plugin-liquid copied to clipboard

LiquidTag in attribute name not throwing an error.

Open charlespwd opened this issue 1 year ago • 0 comments

Input:

<a data-{%if condition%}enabled{%else%}disabled{%endif%}></a>
<a data-{%case number%}{%when 1%}enabled{%else%}disabled{%endcase%}></a>

Actual Output:

<a
  data-
  {% if condition %}
    enabled
  {% else %}
    disabled
  {% endif %}
></a>
<a
  data-
  {% case number %}
    {% when 1 %}
      enabled
    {% else %}
      disabled
  {% endcase %}
></a>

Expected

Throw LiquidHTMLError

charlespwd avatar Dec 15 '22 16:12 charlespwd