-
Notifications
You must be signed in to change notification settings - Fork 95
Closed
Description
From linkedom:
import { parseHTML, HTMLClasses } from "linkedom";
const { document } = parseHTML("");
const a = document.createElement("a");
a.ariaCurrent = "page";
a.className = "test";
console.log(a.toString());
// Prints: <a class="test"></a>
In a browser console (with the adjustment for printing)
const a = document.createElement("a");
a.ariaCurrent = "page";
a.className = "test";
console.log(a);
// Prints <a class="test" aria-current="page">
https://developer.mozilla.org/en-US/docs/Web/API/Element/ariaCurrent
Is there a way to monkey patch these in somehow?
Metadata
Metadata
Assignees
Labels
No labels