Error: Failed to set the 'innerHTML' property on 'Element'

Support
  • I am building a tool to scan news articles on various news websites and check if they contain keywords that I specify. However, I often encounter the following error message: [3240 - TypeError: Failed to set the 'innerHTML' property on 'Element': This document requires 'TrustedHTML' assignment.] in the JavaScript task responsible for checking whether the article content contains the specified keywords. Could you please guide me on how to fix this error?

  • @ptt-bds
    Could you provide more details please. Which sites is the problem with and what action? Perhaps you could attach a test project so I can replicate your problem?

  • 0 Votes
    4 Posts
    611 Views
  • 0 Votes
    7 Posts
    1336 Views
  • You Are Not Script Error ?

    Support
    0 Votes
    3 Posts
    760 Views
  • 0 Votes
    5 Posts
    2357 Views
  • 0 Votes
    2 Posts
    1447 Views