Closed extrakun closed 10 years ago
I'm not sure why you have the white space there. That will create an empty text node. A text node does not support querySelector or querySelectorAll. This will work without problem. $('<p class="test">hello world</p><p>hi!</p>').find(".test").find('.test')
This has been resolved with commit c0ad390624 The $.make method will not strip out any empty white space from nodes. However, it will leave text nodes with content.
If I try the following line in console:
I will get:
What's the best way to fix this issue?