Re: outerHTML/insertAdjecentHTML in XML mode

Travis Leithead wrote:
> Wow. I thought that insertAdjecentHTML was ready for deprecation.
> 
>>> There's also the argument that if outerHTML/insertAdjecentHTML is
>>> popular enough that we're adding them to HTML [...]
> 
> Is this purely conjecture, or is there any data to back this up?

Grepping for "insertAdjacentHTML" in 130K text/html pages (i.e. only 
looking at inline scripts) finds 146 pages: 
http://philip.html5.org/data/insertAdjacentHTML.txt

"outerHTML" is on 152: http://philip.html5.org/data/outerHTML.txt

So they're both used on about 0.1% of these pages.

(For comparison, "innerHTML" is on 5711 pages.)

-- 
Philip Taylor
pjt47@cam.ac.uk

Received on Thursday, 29 January 2009 11:14:41 UTC