﻿id	summary	reporter	owner	description	type	status	priority	milestone	component	version	severity	resolution	keywords	cc
23681	jQuery 1.9 doesn't like leading whitespace from wp_ajax_add_menu_item	csixty4		"jquery-migrate logs this message to the console when adding a new menu item:

{{{
JQMIGRATE: $(html) HTML strings must start with '<' character
}}}

Walker_Nav_Menu_Edit returns a <li> indented with two tabs because there's inline HTML in that class and it's indented. jQuery 1.9 rejects HTML strings with leading whitespace [http://blog.jquery.com/2013/01/31/jquery-migrate-1-1-0-released/ for security reasons].

(Note: this is probably why jquery-migrate is calling parseHTML instead of using a regex in #23055)

This patch uses $.parseHTML on the HTML fragment instead of passing it directly to $(). As it's written, $.parseHTML will strip out any scripts in the fragment for security reasons. If you think a plugin might include a script for some reason, the call should be changed to $.parseHTML(menuMarkup, document, true)."	defect (bug)	new	normal	3.6	Menus	trunk	normal		has-patch	
