domManip script evaluation doesn't tolerate ajax implementations with alternate signatures
|Reported by:||gibson042||Owned by:||gibson042|
As identified at https://github.com/jquery/jquery/pull/864/files#r2012889
.domManip assumes that if jQuery.ajax exists, it will behave identically to our ajax method with respect to parameters like async, global, and throws. However, this is not a safe assumption now that ajax is an optional module and users are free to drop in completely variant implementations.
.domManip should instead call a method—or throw an exception if it doesn't exist—specifically intended to synchronously fetch and execute script in the global context, which can share the internals of jQuery.ajax but should not call it directly.
Change History (13)
comment:1 Changed 4 years ago by gibson042
- Component changed from unfiled to ajax
- Milestone changed from None to 1.9
- Priority changed from undecided to low
- Status changed from new to open
comment:11 Changed 3 years ago by gibson042
- Owner set to gibson042
- Status changed from open to assigned