atom-community / atom-community/atom-script

HTMLDocument.registerElement is deprecated.

Open
#2,724 1 comment 0 reactions 0 assignees View on GitHub
Dominant language
JavaScript
Stars
730
Forks
264
PR merge metrics
No merged PRs in 30d

Description

Use `customElements.define` instead of `document.registerElement` see https://javascript.info/custom-elements
```
HTMLDocument.registerElement (file:///Users/user/Desktop/Atom.app/Contents/Resources/app.asar/static/index.js:160:12)
f (/Users/user/.atom/packages/script/node_modules/atom-space-pen-views-plus/lib/main.js:26:87233)
e.openTag (/Users/user/.atom/packages/script/node_modules/atom-space-pen-views-plus/lib/main.js:26:91114)
e.tag (/Users/user/.atom/packages/script/node_modules/atom-space-pen-views-plus/lib/main.js:26:90760)
Function.div (/Users/user/.atom/packages/script/node_modules/atom-space-pen-views-plus/lib/main.js:26:88521)
Function.content (/Users/user/.atom/packages/script/lib/header-view.js:48:19)
```

Contributor guide

Open the contributing guide

Research direction

Start by tracing the call from lib/header-view.js:48 into atom-space-pen-views-plus/lib/main.js and the deprecated document.registerElement shown in the stack trace. Determine where the replacement belongs and verify that the warning no longer occurs when the header view is opened.

Written by the indexing model from the issue text.

Assessment

Tech stack
javascript
Domain
frontend
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
38/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.