Open Bug 1630217 Opened 5 years ago Updated 5 years ago

Consider adding "uncustomized" custom element state

Categories

(Core :: DOM: Core & HTML, enhancement)

enhancement

Tracking

()

People

(Reporter: edgar, Unassigned)

References

(Blocks 1 open bug)

Details

Right now if there is no CustomElementData means the element is in "uncustomized" state, see https://searchfox.org/mozilla-central/rev/72e3388f74458d369af4f6cdbaeaacb719523b8c/dom/base/CustomElementRegistry.h#86-89.

We could consider,

  1. Add eUncustomized in CustomElementData::State.
  2. Add an utility function, GetCustomElementState(), in Element which bascially returns the state in CustomElementData, but additionally returns eUncustomized if there is no CustomElementData.
You need to log in before you can comment on or make changes to this bug.