/*
 * Copyright (c) 2018, 2026, Oracle and/or its affiliates.
 * Licensed under The Universal Permissive License (UPL), Version 1.0
 * as shown at https://oss.oracle.com/licenses/upl/
 */
const RULE_NAME="oj-acc-aria-prop";const DESCRIPTION="Attributes beginning with <i>'aria-'</i> must be valid WAI-ARIA definitions.";const ARIA="aria-";function getName(){return RULE_NAME};function getShortDescription(){return DESCRIPTION};function getDescription(){return DESCRIPTION};function register(){return{"attr-aria":_onAriaAttrib}};function _onAriaAttrib(ruleCtx,attrName){if(!this._DomUtils){this._DomUtils=ruleCtx.utils.DomUtils}if(!this._DomUtils.isAriaAttr(attrName)){let issue=new ruleCtx.Issue("<"+ruleCtx.tagNode.name+"> '"+attrName+"' is not a valid WAI-ARIA definition");let attrPos=this._DomUtils.getAttribPosition(ruleCtx.data,ruleCtx.tagNode,attrName);issue.setPosition(attrPos.row,attrPos.col,attrPos.start,attrPos.end);ruleCtx.reporter.addIssue(issue,ruleCtx)}};module.exports={getName,getDescription,getShortDescription,register};