• Resolved valeriass

    (@valeriass)


    Hello, Simple TOC is great, but…

    I found an accessibility issue in SimpleTOC. The plugin generates aria-labelledby=”simpletoc-title” on the details element, but no element with id=”simpletoc-title” exists in the DOM. This causes an HTML validation error.
    The Nu HTML Checker reports: “The aria-labelledby attribute references simpletoc-title, which is not the ID of any element in this document.”
    Fix suggestion: either add id=”simpletoc-title” to the summary element, or remove the aria-labelledby attribute.

    Also, when the “scroll-behavior: smooth” option is enabled, the plugin injects a <style> tag directly inside the <details> element content. This is invalid HTML — <style> is not allowed as a child of <details>. It should be enqueued properly via wp_enqueue_style() or wp_add_inline_style() so it renders in <head> instead.

    Thank you!

    • This topic was modified 1 month, 2 weeks ago by valeriass.
Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)

You must be logged in to reply to this topic.