Add missing cache invalidation for innerHTML (#16652) * Add test with wrong output * Add missing cache invalidation for innerHTML