I want to make the pages that show video using the ADD LINK feature
valid XHTML. The <embed> tag needs to be stripped and the <param>
needs to be a closed tag. Can someone tell me how best to do this and
perhaps in the future fix this in new versions?
In the meantime, I have spent some time figuring out how to add
embedded video into Plone pages in a valid XHTML way. After changing
the HTML filtering Control Panel page: take out the <object> and
<param> from the "nasty" and "stripped", but make sure despite other
documentation, leave the <embed> and never add it to the "custom
tag." (perhaps there will be a HTML5 set of templates that will need
an HTML5 specific filtering and templates).
Then, go into the ZMI to make the <param> tag closed only (i.e. change
the number one to zero). This is vital to keep the peculiar
interaction between Kupu and the final templated result from having
problems.
For every embedding of externally hosted video (e.g. YouTube), clean
up the HTML by:
* stripping the <embed> info
* stripping any style info and if necessary converting to height and
width attributes
* making all param tags into closed tags (i.e. <param />
* testing the page after posted with the XHTML button or going to
http://validator.w3.org
This seems to work for me. See
http://ecitizenproject.org/elearning-and-media
for an example of embedded video that is valid XHTML and works in most
up to date browsers such as Firefox, Chrome and IE.
Daniel