{"id":19034793,"date":"2026-10-02T10:50:04","date_gmt":"2026-10-02T10:50:04","guid":{"rendered":"https:\/\/wordpress.org\/support\/topic\/onerror-not-working\/"},"modified":"2026-10-02T10:50:04","modified_gmt":"2026-10-02T10:50:04","slug":"onerror-not-working","status":"publish","type":"topic","link":"https:\/\/wordpress.org\/support\/topic\/onerror-not-working\/","title":{"rendered":"onerror not working"},"content":{"rendered":"\n<p class=\"wp-block-paragraph\">&#8220;onerror&#8221; is no longer working. In V2.0.8 it was ok.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">It is probably related to the new &#8220;HTML code&#8221; filter-option. I also tried the &#8220;Allow additional HTML tags (advanced)&#8221; option with the tag &#8220;onerror&#8221;, but without success.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">This is the code:<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">img src=&#8221;{DATA.IMAGE_URL}&#8221; width=&#8221;200px&#8221; alt=&#8221;{DATA.TITEL}&#8221; onerror=&#8221;this.src=&#8217;https:\/domain.com\/wp-content\/uploads\/2026\/01\/error.png&#8217;;&#8221;<\/p>\n","protected":false},"template":"","class_list":["post-19034793","topic","type-topic","status-publish","hentry"],"jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/topic\/19034793","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/topic"}],"about":[{"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/types\/topic"}],"version-history":[{"count":0,"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/topic\/19034793\/revisions"}],"wp:attachment":[{"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/media?parent=19034793"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}