Skip to content

Conversation

@eballantine
Copy link
Contributor

@eballantine eballantine commented Apr 24, 2025

This is something our theme devs want to do. Previously, we replaced liquid variables with empty spaces, which is fine for most uses but when it's used directly in the html tag this results in: ERROR: Invalid first character of tag name ' '.

By changing this to x we can keep the same number of characters but allow for liquid variables to be used in the tag.

Minor version update - adding functionality in a backward compatible manner.

This is something our theme devs want to do. Previously, we replaced
liquid variables with empty spaces, which is fine for most uses but
when it's used directly in the html tag this results in:
`ERROR: Invalid first character of tag name ' '.`

By changing this to `x` we can keep the same number of characters but
allow for liquid variables to be used in the tag.
@eballantine eballantine force-pushed the fix-html-validator-on-liquid-variable-for-tag branch from e0f8c2f to bbd6b1e Compare April 24, 2025 14:03
@eballantine eballantine requested review from a team, CatalinaTudor, geoffreymm and jessehigson and removed request for a team April 24, 2025 14:03
Copy link
Contributor

@emilyworrall emilyworrall left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

seems legit

@eballantine eballantine merged commit 9bb1ddd into main Apr 25, 2025
1 check passed
@eballantine eballantine deleted the fix-html-validator-on-liquid-variable-for-tag branch April 25, 2025 09:32
Copy link
Contributor

@CatalinaTudor CatalinaTudor left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good 👍

@CatalinaTudor
Copy link
Contributor

just a reminder to publish this after, we've forgotten in the past 😬

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

4 participants