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
$.parseHTML( "" ) should not return null #1997
This behaviour has been there since the version version (e2497c6) but I'd like to propose changing that.
The method is documented as taking a string (of HTML) and returning an Array. Having it return null for non-string input is fair, but for empty strings it should probably return an empty array (or maybe array with empty text node).