Skip to content

Nothing works if there is a comment before the video tag #496

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

Open
afv opened this issue Nov 2, 2023 · 0 comments
Open

Nothing works if there is a comment before the video tag #496

afv opened this issue Nov 2, 2023 · 0 comments

Comments

@afv
Copy link

afv commented Nov 2, 2023

Hello,

The component does not load if there is a comment before <video>. Took me a while to figure out 😅

Example:

<vue-plyr>
  <!-- this comment makes the component to not appear at all! -->
  <video data-poster="https://cdn.plyr.io/static/demo/View_From_A_Blue_Moon_Trailer-HD.jpg">
    <!-- this one is OK -->
    <source
      size="576"
      src="https://cdn.plyr.io/static/demo/View_From_A_Blue_Moon_Trailer-576p.mp4"
      type="video/mp4"
    >
    <!-- this one is OK too -->
  </video>
</vue-plyr>

https://codesandbox.io/s/vueplyr-comment-t37gdr?file=/src/App.vue

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