RemexCompatMunger: Don't split p-wrapping on style/link tags
authorBrad Jorsch <bjorsch@wikimedia.org>
Sun, 27 Jan 2019 22:13:10 +0000 (14:13 -0800)
committerBrad Jorsch <bjorsch@wikimedia.org>
Wed, 30 Jan 2019 17:10:24 +0000 (09:10 -0800)
commit4597559d84635dd68e88dff274125d248a4bf5a2
treed9f95c0cc9979ce8a8a38c2d2eeafbb14e6124d3
parent9a95b226d07333dcb242c57fb4652129a03773f5
RemexCompatMunger: Don't split p-wrapping on style/link tags

<style> and <link> tags are metadata tags, they shouldn't split the <p>
tag when p-wrapping content.

Bug: T208901
Change-Id: I2ef5da68c9ccde4477d8295dfe4abf8497c5d26e
includes/tidy/RemexCompatMunger.php
tests/phpunit/includes/tidy/RemexDriverTest.php