woothemes/woocommerce — pull request #4993 by drwelby (2014-02-28 15:22:51+00:00)
Title: Trim whitespace so parseHTML only contains HTML

If the server response has leading whitespace, jQuery's .parseHTML will return an object with text nodes which when converted back to html using .html() results in *undefined*. Easy solution is to .trim() any whitespace before parsing the response.

http://jsfiddle.net/7XfYQ/