{"id":73,"date":"2002-11-25T16:40:50","date_gmt":"2002-11-25T21:40:50","guid":{"rendered":"http:\/\/sovogo.com\/2002\/11\/25\/dom-vs-innerhtml\/"},"modified":"2002-11-25T16:40:50","modified_gmt":"2002-11-25T21:40:50","slug":"dom-vs-innerhtml","status":"publish","type":"post","link":"https:\/\/dylanschiemann.com\/?p=73","title":{"rendered":"dom vs. innerHTML"},"content":{"rendered":"<p>A good summary and debate of using <a href=\"http:\/\/www.developer-x.com\/content\/innerhtml\/\">dom standards vs. innerHTML<\/a> by Tim Scarfe and Alex Russell.  In my coding practices, I use dom compliant methods.  I do tend to use innerHTML for debugging purposes.  For example, if I want to see what a method is doing to a dom structure, I&#8217;ll often do a quick alert(&#8216;document.body.innerHTML&#8217;); .  I seem to see innerHTML as good enough for a quick test, but not for production.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>A good summary and debate of using dom standards vs. innerHTML by Tim Scarfe and Alex Russell. In my coding practices, I use dom compliant methods. I do tend to use innerHTML for debugging purposes. For example, if I want to see what a method is doing to a dom structure, I&#8217;ll often do a [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[6,1],"tags":[],"_links":{"self":[{"href":"https:\/\/dylanschiemann.com\/index.php?rest_route=\/wp\/v2\/posts\/73"}],"collection":[{"href":"https:\/\/dylanschiemann.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/dylanschiemann.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/dylanschiemann.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/dylanschiemann.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=73"}],"version-history":[{"count":0,"href":"https:\/\/dylanschiemann.com\/index.php?rest_route=\/wp\/v2\/posts\/73\/revisions"}],"wp:attachment":[{"href":"https:\/\/dylanschiemann.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=73"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/dylanschiemann.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=73"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/dylanschiemann.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=73"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}