id,summary,reporter,owner,description,type,status,priority,milestone,component,version,severity,resolution,keywords,cc,focuses 25829,wp.html.attrs( string ) JS method has issue with attributes with dashes,seamusleahy,,"Before I start, the HTML Javascript helpers are marked as experimental. In `wp-includes/js/shortcode.js`, the `wp.html.attrs` method mis-parses attributes containing dashes. Instead the name, equal, and value all end up as the key. `wp.html.attrs( 'src=""hi.jpg"" selected data-foo=""bar""' );` Results in: {{{ { ""src"": ""hi.jpg"", ""selected"": """", ""data-foo=\""bar\"""": """" } }}}",defect (bug),closed,normal,,Shortcodes,,minor,invalid,has-patch,,