<?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>25304</bug_id>
          
          <creation_ts>2014-04-10 08:24:13 +0000</creation_ts>
          <short_desc>&quot;addListener&quot; use an event instead</short_desc>
          <delta_ts>2014-06-09 10:01:24 +0000</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>1</classification_id>
          <classification>Unclassified</classification>
          <product>CSS</product>
          <component>CSSOM View</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></status_whiteboard>
          <keywords></keywords>
          <priority>P1</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Simon Pieters">zcorpan</reporter>
          <assigned_to name="Simon Pieters">zcorpan</assigned_to>
          <cc>annevk</cc>
          
          <qa_contact>public-css-bugzilla</qa_contact>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>103657</commentid>
    <comment_count>0</comment_count>
    <who name="Simon Pieters">zcorpan</who>
    <bug_when>2014-04-10 08:24:13 +0000</bug_when>
    <thetext>http://dev.w3.org/csswg/cssom-view/#dom-mediaquerylist-addlistener

[[
addListener
]]

&lt;http://www.w3.org/mid/CAPJYB1ia4pj3AaCZVzQx91L=7JPHej-4JrgG8UpE2SEzK-kf2g@mail.gmail.com&gt;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>106315</commentid>
    <comment_count>1</comment_count>
    <who name="Simon Pieters">zcorpan</who>
    <bug_when>2014-05-19 08:25:53 +0000</bug_when>
    <thetext>RESOLVED:Make MQ lists and event target for the change event and alias the existing listener to addeventlistener and removeeventlistener

http://krijnhoetmer.nl/irc-logs/css/20140519#l-2053</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>107432</commentid>
    <comment_count>2</comment_count>
    <who name="Simon Pieters">zcorpan</who>
    <bug_when>2014-06-06 10:36:40 +0000</bug_when>
    <thetext>https://dvcs.w3.org/hg/csswg/rev/ce11bd9d0293</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>107433</commentid>
    <comment_count>3</comment_count>
    <who name="Anne">annevk</who>
    <bug_when>2014-06-06 11:25:39 +0000</bug_when>
    <thetext>Can you please not rely on &quot;When a method or an attribute is said to call another method or attribute, the user agent must invoke its internal API for that attribute or method so that e.g. the author can&apos;t change the behavior by overriding attributes or methods with custom properties or functions in ECMAScript.&quot;

Or at least inline by saying that the UA should use the initial value of those properties.

This is a really icky way of writing requirements.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>107434</commentid>
    <comment_count>4</comment_count>
    <who name="Anne">annevk</who>
    <bug_when>2014-06-06 11:27:04 +0000</bug_when>
    <thetext>Also, the event is exposed on workers, but is the API itself?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>107504</commentid>
    <comment_count>5</comment_count>
    <who name="Simon Pieters">zcorpan</who>
    <bug_when>2014-06-09 08:07:53 +0000</bug_when>
    <thetext>Which properties do you mean? .media and .matched are set to concept-MediaQueryList-media and concept-MediaQueryList-matched.

The API isn&apos;t exposed to workers currently, but there&apos;s a bug asking for that. I guess I can hide the event from workers until then to not confuse feature detection.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>107505</commentid>
    <comment_count>6</comment_count>
    <who name="Anne">annevk</who>
    <bug_when>2014-06-09 08:16:32 +0000</bug_when>
    <thetext>The methods are defined as directly invoking addEventListener().

(Also, the rationale for changing this API seems rather sketchy. Making the semantics equivalent to events seems reasonable, but exposing this as events, not so much.)</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>107513</commentid>
    <comment_count>7</comment_count>
    <who name="Simon Pieters">zcorpan</who>
    <bug_when>2014-06-09 10:01:24 +0000</bug_when>
    <thetext>Thanks

https://dvcs.w3.org/hg/csswg/rev/d9c86e52f02a

Please reopen or send email to www-style if you care about not exposing the event.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>