Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

LiquidTag in attribute name not throwing an error. #146

Open
charlespwd opened this issue Dec 15, 2022 · 0 comments
Open

LiquidTag in attribute name not throwing an error. #146

charlespwd opened this issue Dec 15, 2022 · 0 comments
Labels
bug Something isn't working

Comments

@charlespwd
Copy link
Collaborator

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 charlespwd added the bug Something isn't working label Dec 15, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant