This is an archived snapshot of W3C's public bugzilla bug tracker, decommissioned in April 2019. Please see the home page for more details.

Bug 18893 - <track> Don't set default="" to hidden when there's a user pref
Summary: <track> Don't set default="" to hidden when there's a user pref
Status: RESOLVED FIXED
Alias: None
Product: WHATWG
Classification: Unclassified
Component: HTML (show other bugs)
Version: unspecified
Hardware: Other other
: P3 normal
Target Milestone: Unsorted
Assignee: Ian 'Hixie' Hickson
QA Contact: contributor
URL: http://www.whatwg.org/specs/web-apps/...
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-09-17 08:58 UTC by contributor
Modified: 2012-12-01 21:58 UTC (History)
4 users (show)

See Also:


Attachments

Description contributor 2012-09-17 08:58:09 UTC
Specification: http://www.whatwg.org/specs/web-apps/current-work/multipage/the-video-element.html
Multipage: http://www.whatwg.org/C#honor-user-preferences-for-automatic-text-track-selection
Complete: http://www.whatwg.org/c#honor-user-preferences-for-automatic-text-track-selection

Comment:
<track> Don't set default="" to hidden when there's a user pref

Posted from: 88.131.66.80 by simonp@opera.com
User agent: Opera/9.80 (Macintosh; Intel Mac OS X 10.7.4; U; en) Presto/2.10.289 Version/12.02
Comment 1 Simon Pieters 2012-09-17 09:42:16 UTC
[[
and if there are any text tracks in candidates that correspond to track elements with a default attribute set whose text track mode is set to disabled, then additionally set the text track mode of the first such track to hidden.
]]

I think this should be removed.

This will cause more resources to be downloaded. Authors who are performance-savvy will avoid this attribute and implement the same functionality with a data-* attribute to avoid two tracks of the same kind group to be downloaded when they only want one.

You said the reason for having this is to pre-emptively not break scripts that assume that default tracks are enabled. I'm not convinced that it is likely to be the case such that it makes sense to pre-emptively fix it. I could equally imagine scripts to assume that only one track per kind group is enabled by default. Or that all enabled tracks are showing.
Comment 2 Ian 'Hixie' Hickson 2012-09-19 22:27:07 UTC
I guess this _could_ go either way...
Comment 3 contributor 2012-12-01 21:58:55 UTC
Checked in as WHATWG revision r7556.
Check-in comment: Don't make default='' tracks hidden if the user has configured the browser to automatically select another.
http://html5.org/tools/web-apps-tracker?from=7555&to=7556