Skip to content

Commit f299274

Browse files
author
Farzad Hayatbakhsh
committed
DOC-2592: Replace [object] with actual values in getReport() example
1 parent 5e56cad commit f299274

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

modules/ROOT/pages/a11ychecker.adoc

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -401,20 +401,20 @@ const issues = tinymce.activeEditor.plugins.a11ychecker.getReport();
401401
402402
console.log(issues);
403403
404-
// example result
404+
// Example result
405405
[
406406
{
407407
"contentID": "<div id=\"accessibility-issue__contentID\"><span>Text:&nbsp;</span><span>\"H5\"</span></div>",
408408
"description": "Headings must be applied in sequential order. For example: Heading 1 should be followed by Heading 2, not Heading 3.",
409-
"element": [object], // The element value contains the DOM element (such as <h4>).
409+
"element": h5, // reference to the DOM element where the issue was found
410410
"id": "D2",
411411
"severity": "error",
412412
"url": "https://www.w3.org/WAI/WCAG21/Techniques/general/G141.html",
413413
},
414414
{
415415
"contentID": "<div id=\"accessibility-issue__contentID\"><span>Table:&nbsp;</span><span>\"2x2\"</span></div>",
416416
"description": "Tables must have captions",
417-
"element": [object], // The element value contains the DOM element (such as <table>).
417+
"element": table, // reference to the DOM element where the issue was found
418418
"id": "T1",
419419
"severity": "error",
420420
"url": "https://www.w3.org/WAI/WCAG21/Techniques/html/H39.html",

0 commit comments

Comments
 (0)