Message from discussion
IE9 adds width and height attribute to new Element('img')
Received: by 10.52.30.195 with SMTP id u3mr8700972vdh.3.1321679409033;
Fri, 18 Nov 2011 21:10:09 -0800 (PST)
X-BeenThere: mootools-users@googlegroups.com
Received: by 10.220.152.75 with SMTP id f11ls695681vcw.3.gmail; Fri, 18 Nov
2011 21:10:05 -0800 (PST)
Received: by 10.52.30.195 with SMTP id u3mr8700820vdh.3.1321679405790;
Fri, 18 Nov 2011 21:10:05 -0800 (PST)
Received: by 10.52.30.195 with SMTP id u3mr8700819vdh.3.1321679405776;
Fri, 18 Nov 2011 21:10:05 -0800 (PST)
Return-Path: <olmo.maldon...@gmail.com>
Received: from mail-vx0-f172.google.com (mail-vx0-f172.google.com [209.85.220.172])
by gmr-mx.google.com with ESMTPS id b8si1453102vdu.2.2011.11.18.21.10.05
(version=TLSv1/SSLv3 cipher=OTHER);
Fri, 18 Nov 2011 21:10:05 -0800 (PST)
Received-SPF: pass (google.com: domain of olmo.maldon...@gmail.com designates 209.85.220.172 as permitted sender) client-ip=209.85.220.172;
Authentication-Results: gmr-mx.google.com; spf=pass (google.com: domain of olmo.maldon...@gmail.com designates 209.85.220.172 as permitted sender) smtp.mail=olmo.maldon...@gmail.com; dkim=pass (test mode) header...@gmail.com
Received: by vcbfy13 with SMTP id fy13so898675vcb.3
for <mootools-users@googlegroups.com>; Fri, 18 Nov 2011 21:10:05 -0800 (PST)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
d=gmail.com; s=gamma;
h=mime-version:in-reply-to:references:from:date:message-id:subject:to
:content-type;
bh=wPt48X0v+ehdyWtAKKge4n/CY5EWmmjGgrb3iyTc8uE=;
b=KPLzn0e9xcs2X9LLCTaPYoZlSzgZfU/hcjr2fT+eNlhQCRBuNg5TywEzp99Pz3g7w0
PXx2bK2b2xcS/aeSPoXg12iuZ5MhDuKeqhSUZd0bkU0JF75neQUethgvRpbjYlLIHiv0
j64iAp+2xHjVGvoYsxlsrlzbdhShC460/oU3w=
Received: by 10.52.24.65 with SMTP id s1mr6467181vdf.106.1321679405093; Fri,
18 Nov 2011 21:10:05 -0800 (PST)
MIME-Version: 1.0
Received: by 10.52.183.170 with HTTP; Fri, 18 Nov 2011 21:09:34 -0800 (PST)
In-Reply-To: <536271919.20111118221034@figureone.com>
References: <a19009b9-5b58-4d5b-a2ef-8a4eea483ef9@h30g2000pro.googlegroups.com>
<7d349ecd-ef25-475a-ad09-18824d4bb...@h30g2000pro.googlegroups.com>
<CABo60Pm3G8wRPmsm6+vrTdS+nskfE4kg_jQkZBnTCy2OqHa...@mail.gmail.com>
<226116428.20111118123...@figureone.com> <CABo60Pmd2h1s6FfQbJAjKpMKHNbN+fMTPWxLoSzW9N3OJJM...@mail.gmail.com>
<124816451.20111118125...@figureone.com> <CABo60P=KtO3fagwnVXTzpPv1Q7pnsP5iG94TYh10z3vj_QP...@mail.gmail.com>
<536271919.20111118221...@figureone.com>
From: Olmo Maldonado <olmo.maldon...@gmail.com>
Date: Fri, 18 Nov 2011 23:09:34 -0600
Message-ID: <CABo60Pn8mPmBLzhrSoqEbwRXJHgjin3NDKiBQ+-CUEr8QQ4...@mail.gmail.com>
Subject: Re: [Moo] Re: IE9 adds width and height attribute to new Element('img')
To: mootools-users@googlegroups.com
Content-Type: multipart/alternative; boundary=20cf307c9b3072940d04b20f77fa
--20cf307c9b3072940d04b20f77fa
Content-Type: text/plain; charset=UTF-8
Yeah I'm 32 bit as well.
Try this: http://jsfiddle.net/7mKrs/
Looks like IE8, 9 and probably earlier versions have the same behavior. All
other browsers correctly resize to the new image size.
On Fri, Nov 18, 2011 at 9:10 PM, Sanford Whiteman <sa...@figureone.com>wrote:
> > Possibly, we'd have to play with it. Since I haven't reproduced, though,
> > it'll be hard to spec against the first case and also the case that the
> > source changes.
>
> I can repro it every time in IE 9.0.8112.16421 x64, but not in the IE
> 9.0.8112.16421 Win32 nor in v9.02 Win32. So 64-bit thing?
>
> Create the el with a given src, set the src to something smaller,
> inject it, keeps the dims of the original src. I haven't looked at it
> much more than that.
>
> -- S.
>
>
--20cf307c9b3072940d04b20f77fa
Content-Type: text/html; charset=UTF-8
Content-Transfer-Encoding: quoted-printable
Yeah I'm 32 bit as well.=C2=A0<div><br></div><div>Try this:=C2=A0<a hre=
f=3D"http://jsfiddle.net/7mKrs/">http://jsfiddle.net/7mKrs/</a></div><div><=
br></div><div>Looks like IE8, 9 and probably earlier versions have the same=
behavior. All other browsers correctly resize to the new image size.=C2=A0=
</div>
<div><br></div><div><br><div><br><div class=3D"gmail_quote">On Fri, Nov 18,=
2011 at 9:10 PM, Sanford Whiteman <span dir=3D"ltr"><<a href=3D"mailto:=
sa...@figureone.com">sa...@figureone.com</a>></span> wrote:<br><blockquo=
te class=3D"gmail_quote" style=3D"margin:0 0 0 .8ex;border-left:1px #ccc so=
lid;padding-left:1ex;">
<div class=3D"im">> Possibly, we'd have to play with it. Since I hav=
en't reproduced, though,<br>
> it'll be hard to spec against the first case and also the case tha=
t the<br>
> source changes.<br>
<br>
</div>I =C2=A0can repro it every time in IE 9.0.8112.16421 x64, but not in =
the IE<br>
9.0.8112.16421 Win32 nor in v9.02 Win32. So 64-bit thing?<br>
<br>
Create =C2=A0the =C2=A0el =C2=A0with =C2=A0a =C2=A0given src, set the src t=
o something smaller,<br>
inject =C2=A0it, keeps the dims of the original src. I haven't looked a=
t it<br>
much more than that.<br>
<span class=3D"HOEnZb"><font color=3D"#888888"><br>
-- S.<br>
<br>
</font></span></blockquote></div><br></div></div>
--20cf307c9b3072940d04b20f77fa--