Skip to content

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

@afv

Description

@afv

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions