Component evidence

ARIA Reflection Polyfill (src/index.ts)

lwc · packages/@lwc/aria-reflection/src/index.ts · typescript · MIT
crmuilang:typescripttag:polyfilltag:aria

A minimal polyfill for ARIA string reflection designed for maximum backwards compatibility in web components.

Source preview first 800 characters · full source over MCP
// Source: https://github.com/salesforce/lwc | License: MIT | Copyright 2026, Salesforce, Inc
// Provided via justclaw.it.com; keep this notice with the code.
/*
 * Copyright (c) 2023, salesforce.com, inc.
 * All rights reserved.
 * SPDX-License-Identifier: MIT
 * For full license text, see the LICENSE file in the repo root or https://opensource.org/licenses/MIT
 */

// Minimal polyfill of ARIA string reflection, plus some non-standard ARIA props
// Taken from https://github.com/salesforce/lwc/blob/44a01ef/packages/%40lwc/shared/src/aria.ts#L22-L70
// This is designed for maximum backwards compatibility on LEX - it should never change.
// We deliberately don't import from @lwc/shared because that would make this code less portable.
const ARIA_PROPERTIES = [
    'ariaActiveDescendant',
    

... (truncated -- full source via MCP)