cksource / ckeditor4-plugin-a11ychecker

Accessibility checker for CKEditor 4
Other
19 stars 12 forks source link

Error message: t(...).closest is not a function #255

Closed ghost closed 6 years ago

ghost commented 6 years ago

[RESOLVED]

**It transpired that a variable referenced in one of the many included JavaScript files, was undefined. This has apparently gone unnoticed for years. I only found it because I was updating JQuery using the jQuery Migrate plugin, and it wrote a message to the console telling me that a variable was undefined.

As soon as this was rectified, the Accessibility Checker sprang to life.

Please accept my sincere apologies for reporting this issue here.**

Hi,

I get this error message when I click on the Check Accessibility icon on the CKEditor toolbar: Error message: "t(...).closest is not a function. I see this message when I use the Firefox debugger.

The version of A11ychecker I am using was last updated, 30 Mar 2018.

This error occurs on line 3119 of plugin.js, which reads: expected: t(this).closest(".quail-test").data("expected").

I have tested this issue using the following versions of CKEditor: 4.5.10 and 4.9.2.

For me, the issue occurs every time the Check Accessibility button is clicked AND an accessibility issue exists. If no accessibility issues exist, Firefox does not display an error. It may be worth noting that the message box which is displayed always shows the message The document does not contain any accessibility issues, even when issues exist.

The code is running on Windows Server 2012 R2. The JQuery version being used is: v1.2.6.

This is the first issue I have posted and I was unable to view the Contributing Guideline documentation (the area appears to be inoperative), so please accept my apologies if I am not providing this information in the correct format.

Regards, Ken.