Merge "WikiTextStructure: Exclude <style> tags"
authorjenkins-bot <jenkins-bot@gerrit.wikimedia.org>
Wed, 14 Mar 2018 16:17:41 +0000 (16:17 +0000)
committerGerrit Code Review <gerrit@wikimedia.org>
Wed, 14 Mar 2018 16:17:41 +0000 (16:17 +0000)
includes/content/WikiTextStructure.php

index 0eadc3c..1128d7b 100644 (file)
@@ -29,6 +29,8 @@ class WikiTextStructure {
        private $excludedElementSelectors = [
                // "it looks like you don't have javascript enabled..." – do not need to index
                'audio', 'video',
+               // CSS stylesheets aren't content
+               'style',
                // The [1] for references
                'sup.reference',
                // The ↑ next to references in the references section