If attributes are scoped to classes, then presumably document.createAttribute would not be able to create a custom attribute. While this might be totally fine, it's a difference from custom elements, ...