Match html5 unquoted attribute parsing
authorArlo Breault <abreault@wikimedia.org>
Wed, 5 Aug 2015 18:40:02 +0000 (11:40 -0700)
committerTim Starling <tstarling@wikimedia.org>
Mon, 22 Feb 2016 00:50:06 +0000 (00:50 +0000)
commit87f43fd8031a0123d2cc17245cbabefa17c250a0
treedc599d1997baab1bfd8884705afa2370cb8324e9
parent556b6369d5a8bf670befd832b3f0ba19366c8678
Match html5 unquoted attribute parsing

 * Brings us closer to the html5 attribute parsing algorithm described
   in http://www.w3.org/TR/html5/syntax.html#before-attribute-value-state

 * There's a similar patch for the Parsoid in,
   I2160a23b2a3c914eb369347bbf5d58328440041d

 * The spec says <div class=  style="123">hi</div> should parse as
   <div class="style=\"123\"">hi</div>, which it now does, whereas it
   used to yield <div class="" style="123">hi</div>.

 * Merge with caution. This is going to break pages like,
   frwikisource/La_Mirlitantouille_(Lenotre)?oldid=4669681

Bug: T108134
Change-Id: Ic2fc1b573a55a847e6c05707678b58c1189ecc52
includes/Sanitizer.php
tests/parser/parserTests.txt