minified URLs in parameters, like <a href="http://www.example.com/"> need to keept their quotes because <a href=http://www.example.com/> is interpreted as an URL without trailing slash
function canRemoveAttributeQuotes(value) {
// http://mathiasbynens.be/notes/unquoted-attribute-values
- return (/^[^\x20\t\n\f\r"'`=<>]+$/).test(value);
+ return (/^[^\x20\t\n\f\r"'`=<>]+$/).test(value) && !(/\/$/ ).test(value);
}
function attributesInclude(attributes, attribute) {