Bug 147084 - outerHTML closes video/track element, unlike video/source element
Summary: outerHTML closes video/track element, unlike video/source element
Status: NEW
Alias: None
Product: WebKit
Classification: Unclassified
Component: DOM (show other bugs)
Version: 528+ (Nightly build)
Hardware: Mac OS X 10.10
: P2 Normal
Assignee: Nobody
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2015-07-18 23:00 PDT by oliver
Modified: 2015-07-19 07:22 PDT (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description oliver 2015-07-18 23:00:18 PDT
Getting the outerHTML property of a track element returns a close tag:
  jQuery("<track>").get(0).outerHTML; // "<track></track>" in WebKit, "<track>" in Firefox

This is not the same as for the source element, which returns no closing tag:
  jQuery("<video><source><track></video>").get(0).outerHTML // "<video><source><track></track></video>" in WebKit