mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/AbuseFilter.git
synced 2024-11-23 21:53:35 +00:00
Remove bogus non-breaking spaces
This issue exists ever since this code was added in 2009. Note how this element is invisible anyway. The non-breaking space is never seen. The purpose of this element is to act as a container for a debug result that will be put into this container via JavaScript. I confirmed this still works fine without the placeholder character being there. The problem here is that this HTML entity is double escaped because of the element() function. That would need to be a rawElement() call or we can just remove it. Change-Id: Id560f392be4cc2106a7ac224309c8b605bec3f6c
This commit is contained in:
parent
ecf3268789
commit
32bee4950f
|
@ -99,8 +99,7 @@ abstract class EditBoxBuilder {
|
|||
if ( $addResultDiv ) {
|
||||
$output .= Html::element(
|
||||
'div',
|
||||
[ 'id' => 'mw-abusefilter-syntaxresult', 'style' => 'display: none;' ],
|
||||
' '
|
||||
[ 'id' => 'mw-abusefilter-syntaxresult', 'style' => 'display: none;' ]
|
||||
);
|
||||
}
|
||||
|
||||
|
|
|
@ -336,7 +336,7 @@ class AbuseFilterViewExamine extends AbuseFilterView {
|
|||
[
|
||||
'id' => 'mw-abusefilter-syntaxresult',
|
||||
'style' => 'display: none;'
|
||||
], ' '
|
||||
]
|
||||
)
|
||||
);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue