Skip to main content

Bug Tracker

Side navigation

#6488 closed bug (fixed)

Opened April 27, 2010 08:53AM UTC

Closed October 16, 2010 05:13PM UTC

isPlainObject fails on IXSLTProcessor in IE

Reported by: tswaters Owned by:
Priority: undecided Milestone: 1.4.3
Component: core Version: 1.4.2
Keywords: isPlainObject, ie, XSLTemplate Cc:
Blocked by: Blocking:

I noticed this receiving an "object doesn't support this action" error when using $.ajax. It turns out, the underlying cause was an ActiveX objected nested deep within the context parameter. I'm not sure if any other ActiveX objects would cause this error... I found the problem with a progid of "Msxml2.XSLTemplate"

The problem can be isolated with the following:

var clsID = "Msxml2.XSLTemplate";

var oTest = new ActiveXObject(clsId);

try{ $.isPlainObject(oTest); }

catch(e) { /*object doesn't support this action*/ }

Actually, I did a search and the changes under Ticket #5669 fix the problem.

Attachments (0)
Change History (2)

Changed April 30, 2010 12:02AM UTC by dmethvin comment:1

How does a non-Javascript object make it into isPlainObject()? Can you provide a complete example?

I think a host ActiveX object reports typeof(x)=="unknown" and it might be possible to check for that.

Changed October 16, 2010 05:13PM UTC by addyosmani comment:2

priority: → undecided
resolution: → fixed
status: newclosed

The changes referred to in Ticket #5669 (which addresses this issue) have since been marked as fixed and reference this ticket (#6488) as another source of where problems were also addressed. As this contained information which wouldn't classify it as a 100% duplicate I am marking this ticket as fixed.