Skip to content

add "observedAttributes" to domprops list#1652

Merged
fabiosantoscode merged 1 commit into
terser:masterfrom
qeleb:master
Jan 15, 2026
Merged

add "observedAttributes" to domprops list#1652
fabiosantoscode merged 1 commit into
terser:masterfrom
qeleb:master

Conversation

@qeleb

@qeleb qeleb commented Dec 17, 2025

Copy link
Copy Markdown
Contributor

Now

Among other custom element-related DOM properties, like connectedCallback, disconnectedCallback, adoptedCallback, attributeChangedCallback, etc. there's also a static property called observedAttributes.

I realized this property is missing when mangling a Lit web component app. I added it to save anyone doing the same thing some trouble.

Additional

There are some other missing properties. Some of these released in stable Chrome on Feb 4, 2025, so it may be time to add them here as well.

  1. moveBefore (Chrome 133, Firefox 144, Safari soon?)
  2. connectedMoveCallback (Chrome 133, Firefox 144, Safari soon?)
  3. Temporal (Chrome 144, Firefox 139, Safari soon?)
  4. Temporal.Duration (Chrome 144, Firefox 139, Safari soon?)
  5. Temporal.Instant (Chrome 144, Firefox 139, Safari soon?)
  6. Temporal.Now (Chrome 144, Firefox 139, Safari soon?)
  7. Temporal.PlainDate (Chrome 144, Firefox 139, Safari soon?)
  8. Temporal.PlainDateTime (Chrome 144, Firefox 139, Safari soon?)
  9. Temporal.PlainMonthDay (Chrome 144, Firefox 139, Safari soon?)
  10. Temporal.PlainTime (Chrome 144, Firefox 139, Safari soon?)
  11. Temporal.PlainYearMonth (Chrome 144, Firefox 139, Safari soon?)
  12. Temporal.ZonedDateTime (Chrome 144, Firefox 139, Safari soon?)

@qeleb

qeleb commented Jan 15, 2026

Copy link
Copy Markdown
Contributor Author

@fabiosantoscode Can this be merged soon? It’s so simple that it won’t require much review.

@fabiosantoscode

Copy link
Copy Markdown
Collaborator

Hey! I saw this but I put it off because of the other APIs you mention (Temporal, etc). But it's true, it's a small PR.

@fabiosantoscode fabiosantoscode merged commit 3df472f into terser:master Jan 15, 2026
12 checks passed
fabiosantoscode added a commit that referenced this pull request Jan 15, 2026
fabiosantoscode added a commit that referenced this pull request Jan 15, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants