mediawiki-extensions-Cite/tests/phpunit
Thiemo Kreuz 65c8967c32 Fix internal presentation of the dir="…" attribute
This fixes a whole bunch of inconsistencies:

* The dir attribute is now trimmed, as most others already are. This is
an actual user-facing change.

* The internal representation is now false in case the value was invalid,
not an empty string any more.

* Null means the attribute was not present. This is now always used,
even in the return values that are meant to represent an error state. No
existing behavior changes.

* The internal representation does not contain an HTML snippet any more,
but the raw value "ltr" or "rtl", or null. Note this might influence the
API, because the API actually exposes the internal representation.
However, we are pretty sure the API is not used anywhere. Even if,
exposing HTML code was most certainly an unwanted and unexpected effect
of the patch that introduced the dir attribute. This does make this a
bugfix, I would argue.

Change-Id: Ic385d9ab36fa0545c374d3d63063028ae4e449d4
2019-11-21 12:52:47 +01:00
..
unit Fix internal presentation of the dir="…" attribute 2019-11-21 12:52:47 +01:00
CiteCSSFileModuleTest.php Move all code to PSR-4 compatible namespaces 2019-11-20 17:00:13 +01:00
CiteErrorReporterTest.php Move all code to PSR-4 compatible namespaces 2019-11-20 17:00:13 +01:00
CiteHooksTest.php Move all code to PSR-4 compatible namespaces 2019-11-20 17:00:13 +01:00
CiteTest.php Move all code to PSR-4 compatible namespaces 2019-11-20 17:00:13 +01:00