I was on my way to the bookstore and was waiting the green light at a crossing when a girl of about ten was knocked on by a passing car, it drove off quickly.

此句说是要把it改为which,由于是非限定定语从句,可是假如把when引导的从句看成时间状语从句,而it drove off quickly.为时间状语从句的主句 it为主句主语又有哪些不对吗?

这句子哪个写的,其它错误一并纠正

I was on my way to the bookstore and was waiting for the green light at a crossing when a girl of about ten was knocked down by a passing car, which drove off quickly.

when在这里表示忽然,句子表示的是女生忽然被车撞了。

假如你用it,你要表达的是汽车忽然跑了,即便这样也要把“汽车忽然跑”放在when之后,所以一定是错的。