drab 6.2.2 → 6.4.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -10,6 +10,8 @@
10
10
  * [avoid duplicate regions](https://www.sarasoueidan.com/blog/accessible-notifications-with-aria-live-regions-part-2/#limit-the-number-of-live-regions-on-the-page)
11
11
  * (see below).
12
12
  *
13
+ * ### Attributes
14
+ *
13
15
  * `aria-live`
14
16
  *
15
17
  * By default, the announcer is created with the
@@ -11,6 +11,8 @@ import { define } from "../util/define.js";
11
11
  * [avoid duplicate regions](https://www.sarasoueidan.com/blog/accessible-notifications-with-aria-live-regions-part-2/#limit-the-number-of-live-regions-on-the-page)
12
12
  * (see below).
13
13
  *
14
+ * ### Attributes
15
+ *
14
16
  * `aria-live`
15
17
  *
16
18
  * By default, the announcer is created with the
@@ -68,8 +70,8 @@ export class Announcer extends HTMLElement {
68
70
  * @returns the created or existing `Announcer` element
69
71
  */
70
72
  static init() {
71
- define("drab-announcer", this);
72
73
  const name = "drab-announcer";
74
+ define(name, this);
73
75
  let announcer = document.querySelector(name);
74
76
  if (!announcer) {
75
77
  announcer = document.createElement(name);