On Thu, May 29, 2014 at 12:09 PM, George Chung <notifications@github.com>wrote:

> because $.contains do not include that parent & node are same element,
> which should be included in this issue(when <script> is appended directly
> into <html> tag).
>

Let's use $.contains and pretend that nobody will ever append a SCRIPT tag
directly into HTML.

DOM contains is not guaranteed to exist in older browsers.