madrobby/zepto — Issue #322: Zepto does not handle multiple self-closing tags the same as jQuery
Author: pamelafox
Created: 2011-11-19 22:37:48+00:00
State: open

The jQuery tools dateinput plugin uses this line to create some DOM:
root = $('

').hide().css({position: 'absolute'}).attr("id", css.root);

The DOM produced by Zepto is not the same as the DOM produced by jQuery. To workaround it, I created start and end tags for each of the self-closing tags in the string, and it came out correctly.

You can compare the DOM produced here:
http://pastebin.com/5heWjZg9

Zepto seems generally to be able to handle self closing tag syntax, but perhaps not when it's mixed in a long string like that.