Balancer: remove unnecessary extra argument
authorC. Scott Ananian <cscott@cscott.net>
Wed, 12 Oct 2016 23:56:51 +0000 (16:56 -0700)
committerC. Scott Ananian <cscott@cscott.net>
Wed, 12 Oct 2016 23:56:51 +0000 (16:56 -0700)
commit4ae30c95164b5e47174cbc1ee73393987fc06a08
treef44814fa42bdfb08e7cdf9b931d42a0526014d96
parent0a6f97bf407959b2dc06a39aab4b351d75e27b98
Balancer: remove unnecessary extra argument

The full HTML5 spec clones element attributes when they are added to
the ActiveFormattingElements list, so that when an element on that
list is later cloned and reinserted the attributes are the *original*
attributes, not reflecting any changes which embedded JavaScript
in an inline <script> block may have made to them since the element
was pushed.

However, the PHP implementation doesn't run any JavaScript so there's
no way the attributes could change during balancing and there is
thus no reason to keep extra copies of the attributes around.

Change-Id: I89647aeb90c64701d77e862ea9e3d22b19bbdedc
includes/tidy/Balancer.php