Ticket #836 (closed bug: invalid)
load
| Reported by: | Vladik | Owned by: | |
|---|---|---|---|
| Priority: | minor | Milestone: | 1.1 |
| Component: | core | Version: | 1.1 |
| Keywords: | load | Cc: | |
| Blocking: | Blocked by: |
Description
Make
<p>what</p>
And code in (document.ready(...)):
$("p").load (function () {alert("Hello!");});
But, when I look in my inspector (FireFox): I don't see: <p onload="alert(Hello!)">what</p> ;-( hothing change ;-(
Change History
comment:2 Changed 6 years ago by joern
- Status changed from new to closed
- Resolution set to invalid
The examples for the various bind() shortcuts are somewhat misleading. While the event is attached to the element, there is no explicit HTML written, therefore you never get the output of <p onload="alert(Hello!)">what</p>.
The mentioned warnings are misleading, too: Firefox warns about code that eventually could pose a problem, but currently it simply doesn't.
Please follow the bug reporting guidlines and use jsFiddle when providing test cases and demonstrations instead of pasting the code in the ticket.

Also in jquery 1.0.4 I don't see anyone warning in bugfire... But in 1.1 I see: 3!
test for equality (==) mistyped as assignment (=)? jquery.js (line 1) eateElement("tbody"));jQuery.each(a,function(){fn.apply(obj,[clone?this.cloneNode(true):this])})})}};jQuery.extend=jQuery.fn.extend=function(){var target=arguments[0],a=1;if(arguments.length==1){target=this;a=0}var prop;while(prop=arguments[a++])for(var i anonymous function does not always return a value jquery.js (line 1) Name)});if(m[1]=="#"&&ret.length==1){var tmp=r;r=[];jQuery.each(tmp,function(){if(this.getAttribute("id")==m[2]){r=[this];return false}})}ret=r}t=t.replace(re2,"")}}if(t){var val=jQuery.filter(t,r);ret=r=val.r;t=jQuery.trim(val.t)}}if(ret&&ret[0]==context
anonymous function does not always return a value jquery.js (line 1)
anonymous function does not always return a value jquery.js (line 1)