We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents c60fe06 + 69ea565 commit 7ace4ceCopy full SHA for 7ace4ce
src/core/dom.js
@@ -532,7 +532,7 @@ const escape_css_id = (id) => {
532
};
533
534
/**
535
- * Get a universally unique id (uuid) for a DOM element.
+ * Set and get a universally unique id (uuid) for a DOM element.
536
*
537
* This method returns a uuid for the given element. On the first call it will
538
* generate a uuid and store it on the element.
src/core/uuid.test.js
@@ -19,4 +19,8 @@ describe("uuid", function () {
19
20
window.crypto.randomUUID = orig_randomUUID;
21
});
22
+
23
+ it("the uuid is unique", function () {
24
+ expect(create_uuid()).not.toBe(create_uuid());
25
+ });
26
0 commit comments