News for hackers. Stuff that matters.
Re:All style tags after the first 30 style tags are not appl... by pwmanagerdied on Monday January 04, 2010 @03:50PM (#1031202)
Huh. A five bit range would give a max of 31, and if we assume that the default/built-in stylesheet knocks another off, that's 30.

I agree with you, though I think I'd prefer this to hint at the reason over it being an entirely arbitrary descision. Making such a choice for a bad reason is still preferable to making it for no reason.

Re:All style tags after the first 30 style tags are not appl... by wheels on Tuesday January 05, 2010 @12:41AM (#1031932)
It may be a sanity check; often when writing parsers for "in the wild" data you have to pick a cutoff for where "doesn't make sense" is so that you can tell if you're looking at junk data and stop trying to make sense of it (and the RAM / CPU entailed in such).
Re:All style tags after the first 30 style tags are not appl... by kingkilr on Monday January 04, 2010 @04:10PM (#1031252)
Yeah, I'm hoping it's that. Purely arbitrary would just be... stupid.
Re:All style tags after the first 30 style tags are not appl... by Periodic on Monday January 04, 2010 @06:02PM (#1031418)

    struct Element {
        // Update: apparently 16 wasn't enough.  Raised to 30 to pass test #452
        StyleData styles[30]; // No one uses more than 16 style parameters anyway.
    }