I was using the nightly

here's some HTML u can copy and paste to reproduce

<script src='http://code.jquery.com/nightlies/jquery-nightly.js'></
script>
<div id=x></div>
<p>This should log: 1,1,undefined, 40</p>
<div id=output></div>
<script>
$().ready(function(){
  console.log($("#x").attr("size"))
  $("#x").attr("size", 40)
  console.log($("#x").attr("size"))

  console.log($("#x").attr("zize"))
  $("#x").attr("zize", 40)
  console.log($("#x").attr("zize"))
})
</script>



On 21 Dec, 16:45, John Resig <jere...@gmail.com> wrote:
> What version of jQuery 1.4? This sounds like an issue that was fixed in 1.4a2.
>
> --John
>
>
>
> On Mon, Dec 21, 2009 at 5:29 AM, weepy <jonah...@gmail.com> wrote:
> > Worked with 1.3.2
>
> > now .attr("size") returns 1 whether it's been set or not
>
> > $("x").attr("size") => 1
>
> > $("x").attr("size", 40)
>
> > $("x").attr("size") => 1
>
> > and no attribute seems to appear on the element.
>
> > --
>
> > You received this message because you are subscribed to the Google Groups 
> > "jQuery Development" group.
> > To post to this group, send email to jquery-...@googlegroups.com.
> > To unsubscribe from this group, send email to 
> > jquery-dev+unsubscr...@googlegroups.com.
> > For more options, visit this group 
> > athttp://groups.google.com/group/jquery-dev?hl=en.

--

You received this message because you are subscribed to the Google Groups 
"jQuery Development" group.
To post to this group, send email to jquery-...@googlegroups.com.
To unsubscribe from this group, send email to 
jquery-dev+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/jquery-dev?hl=en.


Reply via email to