atom-community / atom-community/atom-script

HTMLDocument.registerElement is deprecated.

Open
#2,727 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:///C:/Users/HP/AppData/Local/atom/app-1.63.0/resources/app.asar/static/index.js:160:12)
f (C:\Users\HP\.atom\packages\script\node_modules\atom-space-pen-views-plus\lib\main.js:26:87233)
e.openTag (C:\Users\HP\.atom\packages\script\node_modules\atom-space-pen-views-plus\lib\main.js:26:91114)
e.tag (C:\Users\HP\.atom\packages\script\node_modules\atom-space-pen-views-plus\lib\main.js:26:90760)
Function.div (C:\Users\HP\.atom\packages\script\node_modules\atom-space-pen-views-plus\lib\main.js:26:88521)
Function.content (C:\Users\HP\.atom\packages\script\lib\header-view.js:48:19)
```

Contributor guide

Open the contributing guide

Research direction

Start at lib/header-view.js:48, then trace the HTMLDocument.registerElement call through atom-space-pen-views-plus/lib/main.js shown in the stack trace. Confirm the deprecation warning and determine whether the affected call is owned by this package or its dependency; done means the warning no longer occurs and customElements.define is used where applicable.

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
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.