Skip to content

ARIA properties do not exist #291

@midnightveil

Description

@midnightveil

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

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions