trusted HTML Element

Steps to reproduce:
1]As soon as i open the google chrome search engine ,and open a new tab and then open console to type document.body.innerHTML = 'hEY' it gives me an error stating This document requires 'TrustedHTML' assignment.
2]But then the same process when i open the new tab and in the URL I type google.com and open the console and type document.body.innerHTML = 'hEY' there is no such error .
Could anyone have any idea about this.
Was this page helpful?