Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
Zepto does not handle multiple self-closing tags the same as jQuery #322
The jQuery tools dateinput plugin uses this line to create some DOM:
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:
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.
Webkit parses this HTML as:
This is the way HTML5 is supposed to be parsed.
In HTML 5,