Skip to content

MTCap library defaults to <div class='mtcaptcha'> container #1

@cindymabe01-alt

Description

@cindymabe01-alt

Summary

The MTCap Java library, by default, searches for a <div> element with class mtcaptcha on the page to embed the captcha widget. This may be unexpected for developers integrating the library into custom layouts, especially if the target container uses a different class or ID.

Default container:

<div class='mtcaptcha'></div>

Expected Behavior

  • The library should allow customizing the container selector or clearly document this requirement.
  • Developers should be aware that a <div class='mtcaptcha'> is required unless specified otherwise.

Steps to Reproduce

  1. Integrate the mtcaptcha-java-server-sdk in your Java web application.
  2. Do not add a <div class='mtcaptcha'></div> in your HTML or use a different class name.
  3. Observe that the MTCap widget does not appear or initialize as expected.

Additional Notes

  • Improving documentation or allowing container customization would help developers avoid integration issues.

This issue is based on the default behavior in the README and code. @

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions