Skip to main content
Journey Uncommon Logo
JourneyUncommon
hardHTMLobservedAttributesSingle-choice MCQ

An author returns observedAttributes dynamically and expects newly-added names to start being tracked at runtime. When is observedAttributes actually read by the engine?

class X extends HTMLElement { static get observedAttributes() { return this._list; } static _list = ['title']; } customElements.define('x-el', X); X._list.push('lang'); // added after define