This page demonstrates VLC 2.9 Foundation's XHTML5 (aka VLCXHTML5) features: strict XML syntax, new media types, elt(), and document.q/document.qs. The source code is valid VLCXHTML5. Purpose: readability and flexibility for humans and machines. For more info, checkout the XHTML5 Standards Document.
Self-closing audio (polyfill makes it work):
Standard container:
Self-closing video (polyfill applies):
<video controls="controls" alt="Sorry, video could not be found" src="https://www.example.com/video.mp4" />
Container video (standard syntax example):
<video controls="controls">
<source src="https://www.example.com/video.mp4" type="video/mp4" />
<onerror>
Your browser cannot play this video.
</onerror>
</video>
Also, this can be done with <embed> elements as well.
XHTML5 supports:
Proposal: allow <img> and <embed>/<object> to support <source> and <onerror> too.
@media glass AR/transparent overlays@media xr VR/XR headsets@media round Circular displaysXHTML5 will evolve with full polyfill coverage, more media types, and enhanced XML semantics. Self-closing audio/video makes it as easy as <img />, with <onerror> for fallback rendering on non-self-closing ones. In addition, more elements could get self-closed versions, such as <canvas />.
Polyfill used: xhtml5.js