Part of Shadow DOM v0 API has been removed

Published: | Categories: DOM

Description

Firefox 67 has removed the getElementsByTagName, getElementsByTagNameNS and getElementsByClassName methods from the ShadowRoot interface, which were part of the deprecated Shadow DOM v0 API accidentally exposed when Shadow DOM v1 was shipped with Firefox 63.

Since ShadowRoot inherits DocumentFragment, the querySelector, querySelectorAll and getElementById methods can be used instead.

References