<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "https://www.w3.org/Bugs/Public/page.cgi?id=bugzilla.dtd">

<bugzilla version="5.0.4"
          urlbase="https://www.w3.org/Bugs/Public/"
          
          maintainer="sysbot+bugzilla@w3.org"
>

    <bug>
          <bug_id>28470</bug_id>
          
          <creation_ts>2015-04-12 11:10:01 +0000</creation_ts>
          <short_desc>[WebVTT] CSS selectors are written on top of the DOM, so should match how HTML works</short_desc>
          <delta_ts>2016-03-02 13:30:20 +0000</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>1</classification_id>
          <classification>Unclassified</classification>
          <product>TextTracks CG</product>
          <component>WebVTT</component>
          <version>unspecified</version>
          <rep_platform>PC</rep_platform>
          <op_sys>All</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>FIXED</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard>widereview</status_whiteboard>
          <keywords></keywords>
          <priority>P2</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Silvia Pfeiffer">silviapfeiffer1</reporter>
          <assigned_to name="This bug has no owner yet - up for the taking">dave.null</assigned_to>
          <cc>nigel.megitt</cc>
    
    <cc>philipj</cc>
    
    <cc>silviapfeiffer1</cc>
    
    <cc>singer</cc>
    
    <cc>zcorpan</cc>
          
          <qa_contact name="Web Media Text Tracks CG">public-texttracks</qa_contact>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>119445</commentid>
    <comment_count>0</comment_count>
    <who name="Silvia Pfeiffer">silviapfeiffer1</who>
    <bug_when>2015-04-12 11:10:01 +0000</bug_when>
    <thetext>Feedback by the CSS WG, see http://lists.w3.org/Archives/Public/public-tt/2015Apr/0007.html

The list in section 5.5 (http://dev.w3.org/html5/webvtt/#webvtt-cue-text-dom-construction-rules) doesn&apos;t match with the description of how Selectors work; in particularly, Class, Voice, and Lang objects are all &quot;span&quot; elements here, but are &quot;c&quot;, &quot;v&quot;, and &quot;lang&quot; elements in Selectors.
Selectors is written on top of the DOM, though, so these should match. (But we hear this difference is intentional?)</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>119448</commentid>
    <comment_count>1</comment_count>
    <who name="Silvia Pfeiffer">silviapfeiffer1</who>
    <bug_when>2015-04-12 11:17:56 +0000</bug_when>
    <thetext>Further feedback by CSS WG: You can remove the entire section about how to evaluate the selector once section 5.5 defines an accurate DOM mapping; just specify that it matches over the equivalent DOM defined in 5.5. Or are there (intentional) differences between selecting against a WebVTT DOM and the mapped HTML DOM?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>119524</commentid>
    <comment_count>2</comment_count>
    <who name="Philip Jägenstedt">philipj</who>
    <bug_when>2015-04-15 09:17:49 +0000</bug_when>
    <thetext>Section 5.5 is only used for VTTCue.getCueAsHTML(), for the purposes of rendering there are no HTML elements involved. However, as actually implemented some equivalent DOM is created. In Blink there&apos;s VTTElement and I&apos;m sure other engines have some kind of internal representation.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>119719</commentid>
    <comment_count>3</comment_count>
    <who name="Simon Pieters">zcorpan</who>
    <bug_when>2015-04-21 10:41:46 +0000</bug_when>
    <thetext>We could define a WebVTT DOM but that is strictly speaking an editorial issue, the black-box behavior should be the same. In either case, it can be implemented with DOM or with some other representation.

We could add some non-normative text to the DOM construction section saying that the rules are for getCueAsHTML(), not for rendering.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>120775</commentid>
    <comment_count>4</comment_count>
    <who name="Silvia Pfeiffer">silviapfeiffer1</who>
    <bug_when>2015-06-07 07:30:57 +0000</bug_when>
    <thetext>(In reply to Simon Pieters from comment #3)
&gt; We could define a WebVTT DOM but that is strictly speaking an editorial
&gt; issue, the black-box behavior should be the same. In either case, it can be
&gt; implemented with DOM or with some other representation.

I&apos;d prefer we leave it as generic as possible. That way, non-browser video players might find it useful, too.

&gt; We could add some non-normative text to the DOM construction section saying
&gt; that the rules are for getCueAsHTML(), not for rendering.

I&apos;ll prepare a PR for this.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>120776</commentid>
    <comment_count>5</comment_count>
    <who name="Silvia Pfeiffer">silviapfeiffer1</who>
    <bug_when>2015-06-07 07:45:46 +0000</bug_when>
    <thetext>https://github.com/w3c/webvtt/pull/193</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>120806</commentid>
    <comment_count>6</comment_count>
    <who name="Philip Jägenstedt">philipj</who>
    <bug_when>2015-06-08 11:56:33 +0000</bug_when>
    <thetext>https://github.com/w3c/webvtt/pull/193 is merged, is that all we need to do for this bug?</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>