Skip to content

Trim input helper aria-describedby whitespace#104

Open
jasperan wants to merge 2 commits intooracle:masterfrom
jasperan:issue-59-describedby-trim
Open

Trim input helper aria-describedby whitespace#104
jasperan wants to merge 2 commits intooracle:masterfrom
jasperan:issue-59-describedby-trim

Conversation

@jasperan
Copy link
Member

@jasperan jasperan commented Mar 15, 2026

Summary

Fixes #59 by trimming the aria-describedby value after appending input helper ids.

Problem

ojinputtext could leave leading or trailing whitespace in aria-describedby while appending helper ids. The issue report tied that malformed attribute value to jQuery validation failures after repeated date interactions.

Reproduction

Trigger the _AppendInputHelper() path on ojInputText and inspect the resulting aria-describedby value.

On the unfixed build, the helper path could produce " helper-id" instead of "helper-id".

Changes

  • trim the concatenated aria-describedby string before writing it back
  • apply the change in the debug, debug_esm, and minified bundles

Verification

  • reproduced the helper path in a jsdom-backed local check and confirmed the resulting attribute is now helper-id
  • confirmed package smoke still passes with npm pack --dry-run

Scope / Caveats

  • this patch normalizes helper-id whitespace only
  • it does not attempt to deduplicate repeated helper ids

@oracle-contributor-agreement oracle-contributor-agreement bot added the OCA Verified All contributors have signed the Oracle Contributor Agreement. label Mar 15, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

OCA Verified All contributors have signed the Oracle Contributor Agreement.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

ojinputtext.js and ojinputtext.min.js having extrea space in html input tag causing error and jquery validation to fail.

1 participant