Fix for inheritance.
Make all text nodes before "extends" tag empty.