plyr can not be used in xhtml

Created on 6 Feb 2018  Â·  7Comments  Â·  Source: sampotts/plyr

Expected behaviour

It should work in xhtml as well.

Actual behaviour

for xhtml it is not loading and giving console error.

Environment

Players affected:

  • [x] HTML5 Video
  • [x] HTML5 Audio

### Steps to reproduce
-

Relevant links

All 7 comments

It’s a HTML5 video player. There’s a bit of a hint in the name. Also, “huge error” means nothing to me.

is there any hack or any other way to make it work in xhtml? It's an urgent requirement.

Not really. It's a _HTML5_ media player. The elements only exist in _HTML5_ therefore it won't work with XHTML.

There is a "hack". Change your doctype to <!DOCTYPE html> and you'd be using HTML5. XHTML has been dead for almost 10 years now so it's about time.

^ This.

Still not working.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

osamay picture osamay  Â·  4Comments

Antonio-Laguna picture Antonio-Laguna  Â·  3Comments

Lycanthrope picture Lycanthrope  Â·  4Comments

Skwai picture Skwai  Â·  4Comments

MTyson picture MTyson  Â·  3Comments