lite-html
lite-html copied to clipboard
Refactor NodePart constructor
With each TemplateInstance now tracking a parent and before- and after- siblings, there's some duplication going on between the TemplateInstance constructor and the NodePart constructor. The logic for determining the correct parent and context should be handled in one of these instead of both.