New issue
Advanced search Search tips
Note: Color blocks (like or ) mean that a user may not be available. Tooltip shows the reason.

Issue 658284 link

Starred by 6 users

Issue metadata

Status: Duplicate
Merged: issue 660759
Owner: ----
Closed: May 2018
Cc:
Components:
EstimatedDays: ----
NextAction: ----
OS: All
Pri: 3
Type: Bug

Blocked on:
issue 648828

Blocking:
issue 660759



Sign in to add a comment

document.registerElement should have deprecation warning in console

Project Member Reported by ericbidelman@chromium.org, Oct 21 2016

Issue description

Version: 54
OS: all

Now that CE v1 is in stable, we should be logging a deprecation warning in the console for document.registerElement() usage and point people to the V1 API.
 

Comment 1 by hayato@chromium.org, Oct 24 2016

Components: -Blink>WebComponents Blink>HTML>CustomElements
Owner: dominicc@chromium.org
Status: Assigned (was: Untriaged)
Here's the game plan:

- Launch customized built-in elements,  Issue 652579 
- Make document.register print a deprecation message
- When this use counter is low enough, remove document.register <https://www.chromestatus.com/metrics/feature/timeline/popularity/457>

We can't add a deprecation message yet because there's no path forward for people using "is" but there should be soon. Some people have expressed discomfort with deprecation messages if we're not on a clear path to removal. This is fuzzier but I think document.register use has peaked and will only decline further now that customElements.define has reached stable.
Sounds like a plan to me! I also think once Polymer 2 is solidified and in
the wild, devs will quickly be brought over to using CE v1.
Blockedon: 652579
Blocking: 660759
Owner: ----
Status: Available (was: Assigned)
Bulk disowning per sshruthi's email about bug triage best practices.

Comment 7 by tkent@chromium.org, Jan 24 2018

Blockedon: -652579 648828

Comment 8 by kochi@chromium.org, May 31 2018

Mergedinto: 660759
Status: Duplicate (was: Available)
Let me merge this to deprecating CEv0.

As is often pointed out by API owners, unless the usage is quite low,
devs will learn *ignoring* deprecation message.

Sign in to add a comment