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

<bugzilla version="5.0.4.1"
          urlbase="https://bugs.webkit.org/"
          
          maintainer="admin@webkit.org"
>

    <bug>
          <bug_id>103423</bug_id>
          
          <creation_ts>2012-11-27 08:44:44 -0800</creation_ts>
          <short_desc>Calling document.createEvent(&quot;TrackEvent&quot;) should throw a NOT_SUPPORTED_ERR error.</short_desc>
          <delta_ts>2023-12-19 06:50:11 -0800</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>1</classification_id>
          <classification>Unclassified</classification>
          <product>WebKit</product>
          <component>DOM</component>
          <version>Safari 9</version>
          <rep_platform>All</rep_platform>
          <op_sys>All</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>DUPLICATE</resolution>
          <dup_id>151931</dup_id>
          
          <bug_file_loc>http://w3c-test.org/dom/nodes/Document-createEvent.html</bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords>InRadar, WPTImpact</keywords>
          <priority>P2</priority>
          <bug_severity>Normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Antoine Quint">graouts</reporter>
          <assigned_to name="Nobody">webkit-unassigned</assigned_to>
          <cc>abarth</cc>
    
    <cc>ahmad.saleem792</cc>
    
    <cc>annevk</cc>
    
    <cc>eric.carlson</cc>
    
    <cc>graouts</cc>
    
    <cc>ian</cc>
    
    <cc>webkit-bug-importer</cc>
    
    <cc>webkit</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>776801</commentid>
    <comment_count>0</comment_count>
    <who name="Antoine Quint">graouts</who>
    <bug_when>2012-11-27 08:44:44 -0800</bug_when>
    <thetext>We&apos;re failing the Opera-submitted test at http://w3c-test.org/html/tests/submission/Opera/media/interfaces/TrackEvent/createEvent.html.

We fail to throw the NOT_SUPPORTED_ERR error when calling document.createEvent(&apos;TrackEvent&apos;). I believe this is a broader WebCore issue that we don&apos;t follow the latest DOM spec that this method should only be used for legacy events. See http://dom.spec.whatwg.org/#dom-document-createevent.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>776803</commentid>
    <comment_count>1</comment_count>
    <who name="Radar WebKit Bug Importer">webkit-bug-importer</who>
    <bug_when>2012-11-27 08:45:02 -0800</bug_when>
    <thetext>&lt;rdar://problem/12758230&gt;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>777028</commentid>
    <comment_count>2</comment_count>
    <who name="Adam Barth">abarth</who>
    <bug_when>2012-11-27 11:32:13 -0800</bug_when>
    <thetext>http://dom.spec.whatwg.org/#dom-document-createevent says that we should be able to create any sort of supported event via this API.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>777064</commentid>
    <comment_count>3</comment_count>
    <who name="Ian &apos;Hixie&apos; Hickson">ian</who>
    <bug_when>2012-11-27 11:58:56 -0800</bug_when>
    <thetext>Adam, I think you&apos;re misreading the algorithm. (Though I don&apos;t really understand why it&apos;s specced that way.)</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>777126</commentid>
    <comment_count>4</comment_count>
    <who name="Adam Barth">abarth</who>
    <bug_when>2012-11-27 12:40:25 -0800</bug_when>
    <thetext>Ah, yes.  Thanks.  That&apos;s quite different from the behavior we have currently.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1168153</commentid>
    <comment_count>5</comment_count>
    <who name="Chris Rebert">webkit</who>
    <bug_when>2016-02-25 11:26:31 -0800</bug_when>
    <thetext>Still not spec compliant.
Relevant, more general DOM testcase: http://w3c-test.org/dom/nodes/Document-createEvent.html</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1168201</commentid>
    <comment_count>6</comment_count>
    <who name="Chris Rebert">webkit</who>
    <bug_when>2016-02-25 13:41:08 -0800</bug_when>
    <thetext>Corresponding Chrome bug: https://bugs.chromium.org/p/chromium/issues/detail?id=569690</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1503231</commentid>
    <comment_count>7</comment_count>
    <who name="Lucas Forschler">lforschler</who>
    <bug_when>2019-02-06 09:18:43 -0800</bug_when>
    <thetext>Mass move bugs into the DOM component.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1983505</commentid>
    <comment_count>8</comment_count>
    <who name="Ahmad Saleem">ahmad.saleem792</who>
    <bug_when>2023-10-07 15:47:56 -0700</bug_when>
    <thetext>If I go by TextTrack - https://wpt.fyi/results/html/semantics/embedded-content/media-elements/interfaces/TrackEvent/createEvent.html?label=master&amp;label=experimental&amp;aligned=&amp;q=createevent

^ Safari Technology Preview 180 is passing above.

If I go by &apos;DOM&apos;, we have following now on WPT:

https://wpt.fyi/results/dom?label=master&amp;label=experimental&amp;aligned=&amp;q=createevent

^ In above, Safari / WebKit is still failing few test cases.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2000701</commentid>
    <comment_count>9</comment_count>
    <who name="Anne van Kesteren">annevk</who>
    <bug_when>2023-12-19 06:50:11 -0800</bug_when>
    <thetext>This particular instance was fixed at the end of 2015 by Darin.

*** This bug has been marked as a duplicate of bug 151931 ***</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>