function attributesToString(attributes) {
  var str = '';
  for (var name in attributes) {
    var value = attributes[name];
    if (name === 'innerHTML') continue;
    if ((0, _element.isValidAttribute)(value)) str += ' ' + name + '="' + attributes[name] + '"';
  }
  return str;
}
Turn an object of key/value pairs into a HTML attribute string. This
function is responsible for what attributes are allowed to be rendered and
should handle any other special cases specific to deku.