https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=42150

--- Comment #20 from Arthur Suzuki <[email protected]> ---
Created attachment 196141
  -->
https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=196141&action=edit
Bug 42150: (follow-up) Validate custom element names

Reject names that do not conform to the web component spec
(lowercase, must contain a hyphen, must start with a letter).
This catches typos early with a clear console warning rather
than letting them fail silently or throw at customElements.define().

To test:
1. Call registerIsland("InvalidName", { ... }) and verify
   a warning is logged and registration is rejected.
2. Call registerIsland("no-problem", { ... }) and verify
   it succeeds.
3. Call registerIsland("123-bad", { ... }) and verify it
   is rejected (starts with digit).

Signed-off-by: Arthur Suzuki <[email protected]>

-- 
You are receiving this mail because:
You are the assignee for the bug.
You are watching all bug changes.
_______________________________________________
Koha-bugs mailing list
[email protected]
https://lists.koha-community.org/cgi-bin/mailman/listinfo/koha-bugs
website : http://www.koha-community.org/
git : http://git.koha-community.org/
bugs : http://bugs.koha-community.org/

Reply via email to