Last modified: 2014-01-16 02:45:00 UTC
Compare the first two cells in row 1 of the table at https://en.wikipedia.org/w/index.php?title=User:Thryduulf/sandbox&oldid=566470353#Table where the Wikicode |- |bgcolor=""| row 1, cell 1 |bgcolor| row 1, cell 2 produces: <tr> <td bgcolor="">row 1, cell 1</td> <td bgcolor="bgcolor">row 1, cell 2</td> Row 1 cell 1 is rendered with the light grey background colour defined in the wikitable class. Row 1 cell 2 is rendered with a dark red background colour (#b00000) The desired behaviour is that both should produce the html <td bgcolor="">
From Sanitizer::getTagAttributeCallback: # In XHTML, attributes must have a value. # For 'reduced' form, return explicitly the attribute name here. Works as aspected, but it the aspected right?
That behaviour might be what is expected from the code specification, but the output it isn't what the end user expects.
This is causing a difference vs. Parsoid, so it would be good to fix this in PHP. See also bug 51954.