Hacktoberfest 2026: the issues maintainers tagged for October, open and beginner-friendly. Browse Hacktoberfest issues

embed: defineTurboSignForm('my-tag') throws NotSupportedError (class already registered as turbosign-form)

Open Beginner friendly
#94 0 comments 0 reactions 0 assignees View on GitHub

Maintainers usually reply within 6 days

Nobody has claimed this yet.

Assessment

Difficulty
2/5
Estimated time
1-3 hours
Newbie friendliness
82/100
Issue type
Bug
Clarity
Clearly specified
Activity status
Active
Domain
web-dev

Research direction

Start in the @turbodocx/embed package source: find where TurboSignFormElement is auto-registered as turbosign-form on import and where defineTurboSignForm() calls customElements.define. Choose one of the two documented fixes (fresh subclass per tag, or drop auto-registration), add a test that imports the package and registers a second tag such as my-tag without a NotSupportedError, then run the embed package's test suite and update the README section describing defineTurboSignForm('my-tag').

Written by the indexing model from the issue text.

Description

bug

Importing @turbodocx/embed auto-registers TurboSignFormElement as turbosign-form. Calling defineTurboSignForm('my-tag') then runs customElements.define('my-tag', TurboSignFormElement) with the same constructor, which browsers reject with NotSupportedError. The README documents this call as the way to use a different tag name.

Fix: register a fresh subclass per tag (class extends TurboSignFormElement {}), or stop auto-registering on import. Add a test that registers a second tag after import. Update the README.

Found in the Docs #200 review (the docs note was removed there).

Dominant language
PHP
Stars
1
Forks
0
Avg merge
4d 9h
Merged PRs (30d)
28

Getting set up

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from TurboDocx/SDK

All issues in TurboDocx/SDK

Similar issues

More PHP issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.