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, ...
一些您可能无法访问的结果已被隐去。
显示无法访问的结果一些您可能无法访问的结果已被隐去。
显示无法访问的结果