yui/yui3 — pull request #1203 by ezequiel (2013-09-19 04:46:32+00:00)
Title: Y.DOM.contains unit test fix, resolves #1109

The issue is being discussed in #1109.

Basically, WinJS strips comment nodes when setting innerHTML.

node.innerHTML = "

bar

";

becomes

node.innerHTML; //

bar

A workaround is creating the comment node manually, and then appending it.