ParsoidParser: pass render reason to Parsoid; fix case of 'sampleStats'
commitaf49d2f323793d357f342ebb8fab233899c8d004
authorC. Scott Ananian <cscott@cscott.net>
Sat, 28 Sep 2024 13:14:48 +0000 (28 09:14 -0400)
committerC. Scott Ananian <cscott@cscott.net>
Sat, 28 Sep 2024 13:19:15 +0000 (28 09:19 -0400)
tree1bcf9137421cf77dcc62ed68f165902b0cfd08a2
parent0b58fa96021b833e172fd44016751819c09e9588
ParsoidParser: pass render reason to Parsoid; fix case of 'sampleStats'

Every other option passed to parsoid (except `body_only`) is in
camelCase, so make 'sampleStats' into a camel as well.

Pass the render reason to Parsoid so that parsoid-specific parse stats
can be correlated with stats coming from the ParserOutputAccess.

Used in I88ba26fefd9d69ad3e2354d1e235b1e42d1914a0 but does not depend
on that patch.

Change-Id: I2e5c897c55e41224567ed94bbf903c8fff96e841
includes/parser/Parsoid/ParsoidParser.php