mootools/mootools-core — Issue #2147: Element.contains is always false
Author: abimelex
Created: 2011-12-01 11:13:19+00:00
State: open

http://mootools.net/docs/core/Element/Element#Element:contains

it fires always false, although the example given in Mootools docu:

HTML

JavaScript

$('Darth_Vader').contains('Luke');

//tested in Chromium on Linux