Handle custom element types in newly-loaded files.

Change-Id: Ib8acead4605063742c30a7cd72d1ce8337790f8b
Merge topic 'custom-elements' into master

39557386 Handle custom element types in newly-loaded files.