WikiTextStructure: Exclude <style> tags
They aren't part of the article content, so they shouldn't be indexed for search. Bug: T189528 Change-Id: I3203f1f415eb821975098057d75c0e535b1fc76c
This commit is contained in:
parent
ad7db3c9b5
commit
c556bba09a
1 changed files with 2 additions and 0 deletions
|
|
@ -29,6 +29,8 @@ class WikiTextStructure {
|
||||||
private $excludedElementSelectors = [
|
private $excludedElementSelectors = [
|
||||||
// "it looks like you don't have javascript enabled..." – do not need to index
|
// "it looks like you don't have javascript enabled..." – do not need to index
|
||||||
'audio', 'video',
|
'audio', 'video',
|
||||||
|
// CSS stylesheets aren't content
|
||||||
|
'style',
|
||||||
// The [1] for references
|
// The [1] for references
|
||||||
'sup.reference',
|
'sup.reference',
|
||||||
// The ↑ next to references in the references section
|
// The ↑ next to references in the references section
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue