Ticket #267 (closed defect: fixed)

Opened 1 year ago

Last modified 1 year ago

isArrayLike returns true on CDATA Nodes

Reported by: karl.norby [at] gmail.com Assigned to: somebody
Priority: normal Milestone: MochiKit 1.5
Component: component1 Version:
Severity: normal Keywords:
Cc:

Description

CDATA nodes have a .length property and typeof returns "object," so isArrayLike returns true. It looks like they need the same fix as text nodes (add o.nodeType==4 to the large boolean expression in the function).

Change History

08/28/07 01:52:42 changed by therve@gmail.com

  • status changed from new to closed.
  • resolution set to fixed.

Thanks, done in [1313].