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:
thiemowmde 2024-05-13 13:15:27 +02:00
parent ecf3268789
commit 32bee4950f
2 changed files with 2 additions and 3 deletions

View file

@ -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;' ]
);
}

View file

@ -336,7 +336,7 @@ class AbuseFilterViewExamine extends AbuseFilterView {
[
'id' => 'mw-abusefilter-syntaxresult',
'style' => 'display: none;'
], ' '
]
)
);
}