[whatwg] Polynomial DOM growth with active formatting elements

Henri Sivonen hsivonen at iki.fi
Wed Nov 25 01:23:05 PST 2009

On Nov 10, 2009, at 20:55, Kartikaya Gupta wrote:

> .. and so on. In general the number of font elements in the DOM grows polynomially, with the result that pages like [1] and [2] end up with hundreds of thousands of font elements. I haven't even been able to successfully parse [3] with either our own HTML5 parser or the one at validator.nu, it just gobbles up all available memory and asks for more.
> Is this behavior expected, or is it a bug in the spec? Obviously shipping browsers don't demonstrate this behavior (nor does Firefox's HTML5 parser - see bugzilla 525960) so I'm wondering if the spec could be modified to not have this polynomial-growth behavior.

It seems that the AAA has changed after the latest Java release of the Validator.nu parser. The Gecko builds have a newer version of the AAA.

(I'm now trying to figure out if they have the current spec version.)

Henri Sivonen
hsivonen at iki.fi

More information about the whatwg mailing list