Bug Tracker

Changes between Initial Version and Version 1 of Ticket #11540, comment 1


Ignore:
Timestamp:
Mar 31, 2012, 9:02:32 AM (11 years ago)
Author:
dmethvin
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #11540, comment 1

    initial v1  
    11So are you asking for text-node test cases to be added to our unit tests? That seems like a lot of work for an edge case. I'd prefer to just add a more explicit note to `.contents()` Something like this:
    2 > Warning: many jQuery methods do not expect collections that contain text nodes, and may not behave predictably with them. The `.filter()` method always removes text nodes in a collection. [[List of specifically allowed operations]].
     2> Warning: many jQuery methods do not expect collections that contain text nodes, and may not behave predictably with them. The `.filter()` method always removes text nodes in a collection. [(List of specifically allowed operations?)].