Skip to content

ID Target Observing

keishi edited this page Jul 6, 2012 · 3 revisions

ID Target Observing

For attributes like list and form, we need to be notified when the element that the id is referring to changes.

Mozilla's case

nsIDocument::IDTargetObserver is a callback function. nsIDocument::AddIDTargetObserver registers the callback to be called whenever the id target element content changes.

As of 07/06/2012 the callback is not called when the id target element itself has changed.

Clone this wiki locally