{"id":3801,"date":"2014-12-29T09:00:42","date_gmt":"2014-12-29T08:00:42","guid":{"rendered":"https:\/\/blogs.ua.es\/pi\/?p=3801"},"modified":"2014-11-30T17:19:31","modified_gmt":"2014-11-30T16:19:31","slug":"el-famoso-innerhtml","status":"publish","type":"post","link":"https:\/\/blogs.ua.es\/pi\/2014\/12\/29\/el-famoso-innerhtml\/","title":{"rendered":"El famoso innerHTML"},"content":{"rendered":"<p>Para desgracia y sorpresa de muchos, innerHTML, eso que se usa tanta veces para modificar el contenido de una p\u00e1gina web de forma din\u00e1mica, nunca ha sido una propiedad est\u00e1ndar.<\/p>\n<p>Hace unos a\u00f1os se intent\u00f3 a\u00f1adir a HTML5, pero finalmente se retir\u00f3.<\/p>\n<p>Ahora se est\u00e1 estandarizando pero como una caracter\u00edstica separada del DOM:\u00a0<a href=\"http:\/\/www.w3.org\/TR\/DOM-Parsing\/\">DOM Parsing and Serialization<\/a>.<\/p>\n<p>En este documento se define innerHTML como:<\/p>\n<blockquote><p>The innerHTML IDL attribute represents the markup of the Element&#8217;s contents.<\/p><\/blockquote>\n<p>En ese documento tambi\u00e9n se define otra propiedad, outerHTML (The outerHTML IDL attribute represents the markup of the Element and its contents) y el m\u00e9todo\u00a0insertAdjacentHTML().<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Para desgracia y sorpresa de muchos, innerHTML, eso que se usa tanta veces para modificar el &hellip;<\/p>\n<p class=\"read-more\"> <a class=\"more-link\" href=\"https:\/\/blogs.ua.es\/pi\/2014\/12\/29\/el-famoso-innerhtml\/\"> <span class=\"screen-reader-text\">El famoso innerHTML<\/span> Read more \u2192<\/a><\/p>\n","protected":false},"author":40,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[5788],"class_list":["post-3801","post","type-post","status-publish","format-standard","hentry","category-general","tag-dom"],"_links":{"self":[{"href":"https:\/\/blogs.ua.es\/pi\/wp-json\/wp\/v2\/posts\/3801","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/blogs.ua.es\/pi\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/blogs.ua.es\/pi\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/blogs.ua.es\/pi\/wp-json\/wp\/v2\/users\/40"}],"replies":[{"embeddable":true,"href":"https:\/\/blogs.ua.es\/pi\/wp-json\/wp\/v2\/comments?post=3801"}],"version-history":[{"count":1,"href":"https:\/\/blogs.ua.es\/pi\/wp-json\/wp\/v2\/posts\/3801\/revisions"}],"predecessor-version":[{"id":3802,"href":"https:\/\/blogs.ua.es\/pi\/wp-json\/wp\/v2\/posts\/3801\/revisions\/3802"}],"wp:attachment":[{"href":"https:\/\/blogs.ua.es\/pi\/wp-json\/wp\/v2\/media?parent=3801"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/blogs.ua.es\/pi\/wp-json\/wp\/v2\/categories?post=3801"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/blogs.ua.es\/pi\/wp-json\/wp\/v2\/tags?post=3801"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}