xemlock / htmlpurifier-html5

HTML5 support for HTMLPurifier
https://packagist.org/packages/xemlock/htmlpurifier-html5
MIT License
101 stars 12 forks source link

Fix content category of <audio> and <video> #18

Closed xemlock closed 6 years ago

xemlock commented 6 years ago

Related to #17.

<audio> and <video> are phrasing content elements. And as such, according to https://www.w3.org/TR/html5-diff/#content-model, should behave both like inline and flow elements.

Phrasing content, e.g. span, img, text. This is roughly like HTML4's "inline". Elements that are phrasing content are also flow content.