/*
 * 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 CLASS="class";module.exports=function(ruleCtx,attr,attrVal){var attribs,attrib,ret=false;if(attr&&(attribs=ruleCtx.tagNode.attribs)){if(attrib=attribs[attr]){if(arguments.length===2){return true}if(attr===CLASS){let clsName,i;let a=attrib.split(" ");for(i=0;i<a.length;i++){if(clsName=a[i]){if(clsName===attrVal){ret=true;break}}}}else if(attrib===attrVal){ret=true}}}return ret};