<?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>21668</bug_id>
          
          <creation_ts>2013-04-11 18:50:36 +0000</creation_ts>
          <short_desc>.src needs TreatNullAs=EmptyString. Gecko tried without and got at least one breakage report on nightly and everyone does EmptyString today.</short_desc>
          <delta_ts>2013-10-25 15:15:35 +0000</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>1</classification_id>
          <classification>Unclassified</classification>
          <product>WHATWG</product>
          <component>HTML</component>
          <version>unspecified</version>
          <rep_platform>Other</rep_platform>
          <op_sys>other</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>WONTFIX</resolution>
          
          
          <bug_file_loc>http://www.whatwg.org/specs/web-apps/current-work/#htmlimageelement</bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>P3</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>Unsorted</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter>contributor</reporter>
          <assigned_to name="Ian &apos;Hixie&apos; Hickson">ian</assigned_to>
          <cc>annevk</cc>
    
    <cc>bzbarsky</cc>
    
    <cc>ian</cc>
    
    <cc>kennyluck</cc>
    
    <cc>mike</cc>
    
    <cc>zcorpan</cc>
          
          <qa_contact>contributor</qa_contact>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>85956</commentid>
    <comment_count>0</comment_count>
    <who name="">contributor</who>
    <bug_when>2013-04-11 18:50:36 +0000</bug_when>
    <thetext>Specification: http://www.whatwg.org/specs/web-apps/current-work/multipage/embedded-content-1.html
Multipage: http://www.whatwg.org/C#htmlimageelement
Complete: http://www.whatwg.org/c#htmlimageelement

Comment:
.src needs TreatNullAs=EmptyString. Gecko tried without and got at least one
breakage report on nightly and everyone does EmptyString today.

Posted from: 207.218.72.65 by annevk@annevk.nl
User agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.8; rv:23.0) Gecko/20130402 Firefox/23.0</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>85957</commentid>
    <comment_count>1</comment_count>
    <who name="Boris Zbarsky">bzbarsky</who>
    <bug_when>2013-04-11 18:52:37 +0000</bug_when>
    <thetext>It&apos;s not everyone, fwiw.  IE doesn&apos;t.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>85958</commentid>
    <comment_count>2</comment_count>
    <who name="Ian &apos;Hixie&apos; Hickson">ian</who>
    <bug_when>2013-04-11 19:30:21 +0000</bug_when>
    <thetext>Do you have the Mozilla bug #?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>85960</commentid>
    <comment_count>3</comment_count>
    <who name="Anne">annevk</who>
    <bug_when>2013-04-11 19:46:58 +0000</bug_when>
    <thetext>https://bugzilla.mozilla.org/show_bug.cgi?id=859640#c21</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>85961</commentid>
    <comment_count>4</comment_count>
    <who name="Simon Pieters">zcorpan</who>
    <bug_when>2013-04-11 20:34:07 +0000</bug_when>
    <thetext>http://software.hixie.ch/utilities/js/live-dom-viewer/saved/2208

Presto sets the value to &quot;null&quot;.

WebKit removes the content attribute altogether.

I have previously proposed to adopt WebKit&apos;s behavior for reflecting IDL attributes.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>85962</commentid>
    <comment_count>5</comment_count>
    <who name="Boris Zbarsky">bzbarsky</who>
    <bug_when>2013-04-11 20:36:43 +0000</bug_when>
    <thetext>&gt; Presto sets the value to &quot;null&quot;.

That&apos;s not what I see in Opera &quot;12.50 internal&quot;....

For what it&apos;s worth, I think WebKit&apos;s behavior here is what authors tend to expect in my experience...</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>85968</commentid>
    <comment_count>6</comment_count>
    <who name="Simon Pieters">zcorpan</who>
    <bug_when>2013-04-11 21:45:45 +0000</bug_when>
    <thetext>(In reply to comment #5)
&gt; That&apos;s not what I see in Opera &quot;12.50 internal&quot;....

That&apos;s an old build. &quot;12.50&quot; was renamed to 12.10. I tested the currently shipping version, 12.15.

&gt; For what it&apos;s worth, I think WebKit&apos;s behavior here is what authors tend to
&gt; expect in my experience...

I agree.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>86143</commentid>
    <comment_count>7</comment_count>
    <who name="Ian &apos;Hixie&apos; Hickson">ian</who>
    <bug_when>2013-04-13 17:37:58 +0000</bug_when>
    <thetext>That&apos;s bug 17283.

Note that removing the attribute in Gecko makes the &lt;img&gt; stop rendering, whereas in WebKit, removing the attribute or setting it to &quot;&quot; doesn&apos;t do anything. (Gecko is per spec here, WebKit is way not.)

I&apos;d be curious to know for these tests what IE does, (a) in the DOM, and (b) in the rendering:

   http://software.hixie.ch/utilities/js/live-dom-viewer/?saved=2208
   http://software.hixie.ch/utilities/js/live-dom-viewer/?saved=2210
   http://software.hixie.ch/utilities/js/live-dom-viewer/?saved=2211
   http://software.hixie.ch/utilities/js/live-dom-viewer/?saved=2212
   http://software.hixie.ch/utilities/js/live-dom-viewer/?saved=2213</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>88590</commentid>
    <comment_count>8</comment_count>
    <who name="Ian &apos;Hixie&apos; Hickson">ian</who>
    <bug_when>2013-06-03 23:11:02 +0000</bug_when>
    <thetext>IE matches Gecko on all those tests.

As far as I can tell, the spec is correct here, and matches Gecko and IE.

Note, in particular, the difference between these two, which gets to the core of what this bug is about. As far as I can tell, only WebKit-derived browsers act different than the spec:

   http://software.hixie.ch/utilities/js/live-dom-viewer/saved/2208
   http://software.hixie.ch/utilities/js/live-dom-viewer/saved/2273

So I don&apos;t see why this is a bug.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>88601</commentid>
    <comment_count>9</comment_count>
    <who name="Boris Zbarsky">bzbarsky</who>
    <bug_when>2013-06-04 01:54:54 +0000</bug_when>
    <thetext>&gt; As far as I can tell, the spec is correct here, and matches Gecko and IE.

It doesn&apos;t match Gecko up through Gecko 19.  Again, we recently changed the behavior here, as part of conversion to WebIDL, and had reports of web compat regressions.  We are strongly considering switching back to the old behavior as a result.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>89425</commentid>
    <comment_count>10</comment_count>
    <who name="Ian &apos;Hixie&apos; Hickson">ian</who>
    <bug_when>2013-06-17 22:32:47 +0000</bug_when>
    <thetext>Do you have any links to examples of breakage other than this one?:

   https://bugzilla.mozilla.org/show_bug.cgi?id=859640#c21

If that&apos;s the only one, it doesn&apos;t seem very compelling — it looks like &quot;just&quot; a performance regression, caused presumably by the page waiting for the &apos;null&apos; URL to load, something which is trivially fixed in the markup (remove the call to set the &apos;src&apos; attribute), something which might easily happen since the person who reported it appears to be the site maintainer. The change requested here is unusual (it makes this attribute act like few others).

To recap:
 - no actual breakage, just slower
 - site owner is aware of problem
 - author-side fix is easy
 - no other known regressions
 - spec behaviour is more consistent than old behaviour
 - no broad agreement amongst browsers

I&apos;m not &quot;being unresponsive&quot;; I looked at the data provided, and I couldn&apos;t find any compelling reason to do what was suggested. There doesn&apos;t seem to be a strong compatibility case one way or the other here. If you want a spec change that doesn&apos;t match all the browsers, you need to give me a strong reason, especially if your desired behaviour is an unusual one.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>89441</commentid>
    <comment_count>11</comment_count>
    <who name="Boris Zbarsky">bzbarsky</who>
    <bug_when>2013-06-18 02:08:45 +0000</bug_when>
    <thetext>I honestly no longer have the energy to worry about either the Gecko or spec end of this.  If we run into more breakage, we&apos;ll point it out, but I expect this will simply remain non-interoperable between WebKit/Blink and now Gecko/IE...</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>90141</commentid>
    <comment_count>12</comment_count>
    <who name="Ian &apos;Hixie&apos; Hickson">ian</who>
    <bug_when>2013-07-02 21:14:48 +0000</bug_when>
    <thetext>Closing per comment 10. If you do find breakage (I wouldn&apos;t say &quot;more&quot; breakage since the only known breakage is just a performance regression), or if you find any other compelling reason to change this to the less logical behaviour, please do reopen the bug.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>