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

Lexer thrown off by < character as attribute #93

Open
spider-mane opened this issue Apr 9, 2020 · 0 comments
Open

Lexer thrown off by < character as attribute #93

spider-mane opened this issue Apr 9, 2020 · 0 comments

Comments

@spider-mane
Copy link

spider-mane commented Apr 9, 2020

Sparser encounters parse error 1 more start types than end types. when supplying < as an html attribute such as:

<div data-direction="<">
    previous
</div>

in a larger example:

<div class="swiper-container">
  <div class="glide">
    <div class="glide__track" data-glide-el="track">
      <ul class="glide__slides">
        <li class="glide__slide"><img src="image1.png" alt="" /></li>
        <li class="glide__slide"><img src="image2.png" alt="" /></li>
        <li class="glide__slide"><img src="image3.png" alt="" /></li>
      </ul>

      <div data-glide-el="controls">
        <button class="" data-glide-dir="<">prev</button>
        <button data-glide-dir=">">next</button>
      </div>
    </div>
  </div>
</div>

I get 5 more start types than end types despite < as an attribute still only occurring once.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant