[wp-trac] [WordPress Trac] #22842: Object Within Video?
WordPress Trac
noreply at wordpress.org
Mon Dec 10 03:18:03 UTC 2012
#22842: Object Within Video?
-----------------------------+--------------------------
Reporter: miqrogroove | Type: defect (bug)
Status: new | Priority: normal
Milestone: Awaiting Review | Component: TinyMCE
Version: trunk | Severity: normal
Keywords: |
-----------------------------+--------------------------
Following up to #22790,
By looking in the TinyMCE Media plugin, I just wanted to wonder out loud
if there is a concern about elements other than embed.
From the plugin source we have:
{{{
ed.schema.addValidElements('object[id|style|width|height|classid|codebase|*],param[name|value],embed[id|style|width|height|type|src|*],video[*],audio[*],source[*]');
}}}
So are the HTML 5 audio, video, source, etc. elements working? I did a
quick comparison to the included schema file then tested what looked like
a potential problem area.
For example, code found at http://www.w3schools.com/html/html_videos.asp
{{{
<video width="320" height="240" controls="controls">
<source src="movie.mp4" type="video/mp4">
<source src="movie.ogg" type="video/ogg">
<source src="movie.webm" type="video/webm">
<object data="movie.mp4" width="320" height="240">
<embed src="movie.swf" width="320" height="240">
</object>
</video>
}}}
When pasted into the Text tab in 3.5 and switched to Visual and back, the
code looks quite different afterward.
Does object need to be a valid child of video? And so on?
--
Ticket URL: <http://core.trac.wordpress.org/ticket/22842>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list