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
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
|Component:||unfiled → ajax|
|Milestone:||None → 1.9|
|Priority:||undecided → low|
|Status:||new → open|