outerHTML ã«ã¤ã㦠outerHTML ã¨ã¯ Mozilla ç³»ã®ãã©ã¦ã¶ä»¥å¤ã®ãã¹ã¦ã®ãã©ã¦ã¶ã§ä½¿ããè¦ç´ ã® HTML ãæååã¨ãã¦åå¾ã§ããããããã£ã§ãã alert(document.body.outerHTML); // => body ã® HTML ããã¹ã¦è¦ããï¼ä¾ï¼<body><h1>It works!</h1></body>ï¼ ã¨ãããã㧠以ä¸ã®ã³ã¼ããæ¸ãã¦ã¿ã¾ããã if (!('outerHTML' in document.createElement('div'))) { HTMLElement.prototype.__defineGetter__('outerHTML', function() { return this.ownerDocument.createElement('div').appendChild(this.cloneNode(tru
{{#tags}}- {{label}}
{{/tags}}