On Mon, Sep 11, 2017 at 3:08 PM, Henri Sivonen <hsivo...@hsivonen.fi> wrote:
>> Per comments in
>> https://bugzilla.mozilla.org/show_bug.cgi?id=485941 at least in their XML
>> parser they do have a depth limit of about 5000, but that was apparently
>> removed and then readded recently.  Of course they may have different
>> behavior for XML and HTML.
>
> Maybe they have a limit that preserves text node visibility (as our
> HTML parser does when the workaround works as designed).
>
> I guess I should add some JS that computes the DOM depth.

I wrote a test for this years ago; I've thrown it up at
<http://stuff.gsnedders.com/html-depth.html>.

Chrome limits the DOM at 513 deep (where the root element is one
deep), Safari likewise but doesn't paint anything. Edge appears to
have no limit, so that TC simply hangs in an infinite loop (presumably
it will eventually go OOM and crash, though I wonder if its
performance isn't linear?).

/g
_______________________________________________
dev-platform mailing list
dev-platform@lists.mozilla.org
https://lists.mozilla.org/listinfo/dev-platform

Reply via email to