I have found solusion for this bug. I just thought it may be helpful to record it here for others' reference :)
Chrome version: 113.0.5672.93
Bug: There is no responce when usernames are clicked in the chatroom. The console reports Uncaught TypeError: Cannot read properties of null (reading 'TextContent')
Solusion: It seems that the browser support of event.toElement is not as good as event.target (https://stackoverflow.com/questions/8600174/). Therefore, in chatroom.html, at line 230, changing spanSendTo.text(e.toElement.textContent) to spanSendTo.text(e.target.textContent) solves the problem.
I have found solusion for this bug. I just thought it may be helpful to record it here for others' reference :)
Chrome version: 113.0.5672.93
Bug: There is no responce when usernames are clicked in the chatroom. The console reports
Uncaught TypeError: Cannot read properties of null (reading 'TextContent')
Solusion: It seems that the browser support of
event.toElement
is not as good asevent.target
(https://stackoverflow.com/questions/8600174/). Therefore, inchatroom.html
, at line 230, changingspanSendTo.text(e.toElement.textContent)
tospanSendTo.text(e.target.textContent)
solves the problem.