403Webshell
Server IP : 3.93.235.159  /  Your IP : 216.73.216.140
Web Server : Apache
System : Linux ip-172-26-0-169 5.10.0-46-cloud-amd64 #1 SMP Debian 5.10.262-1 (2026-07-31) x86_64
User : bitnami ( 1000)
PHP Version : 8.2.9
Disable Function : NONE
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : OFF  |  Sudo : ON  |  Pkexec : OFF
Directory :  /bitnami/wordpress/wp-content/plugins/pojo-accessibility/modules/scanner/assets/js/rules/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /bitnami/wordpress/wp-content/plugins/pojo-accessibility/modules/scanner/assets/js/rules/index.js
import headingHierarchyCheck from './heading-hierarchy-check';
import missingH1Check from './missing-h1-check';
import singleH1Check from './single-h1-check';

export const EA11Y_RULES = Object.freeze({
	MISSING_H1_TAG: 'missing_h1_check',
	REDUNDANT_H1_TAGS: 'single_h1_check',
	INCORRECT_HEADING_HIERARCHY: 'heading_hierarchy_check',
});

export const ea11yRuleSet = Object.freeze([
	singleH1Check,
	missingH1Check,
	headingHierarchyCheck,
]);

/**
 * Run all registered custom rules against the document.
 *
 * @param {Document} document - The document to scan
 * @return {Array} Array of rule results (violations, recommendations, passes)
 */
export const runAllEa11yRules = (document) => {
	const results = [];

	const context = {
		dom: {
			node: document,
		},
	};

	Object.values(ea11yRuleSet).forEach((rule) => {
		try {
			const result = rule.run(context);

			if (result) {
				results.push(result);
			}
		} catch (error) {
			console.error(`Error running custom rule ${rule.id}:`, error);
		}
	});

	return results;
};

Youez - 2016 - github.com/yon3zu
LinuXploit