Skip to content
This repository has been archived by the owner on Jul 27, 2024. It is now read-only.

Nokogiri cannot properly parse HTML attributes in some scenarios #648

Closed
wants to merge 2 commits into from

Conversation

karreiro
Copy link
Contributor

@karreiro karreiro commented Oct 19, 2022

Nokogiri cannot parse HTML attributes in some scenarios.

When Theme Check handles template fragments like this, Nokogiri cannot loading recognise the tag attributes.

<img {{ "something" }}loading="lazy">

A naive approach for solving this is appending an empty character after the "≬#####≬" placeholder, however while it seems right, it impacts other parts of the codebase. Thus, I'm still validating this approach.

@karreiro karreiro requested a review from mgmanzella October 19, 2022 11:41
@karreiro karreiro linked an issue Oct 19, 2022 that may be closed by this pull request
@karreiro karreiro closed this Mar 13, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

ImgLazyLoading requires space around loading attribute
1 participant