We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents a158148 + 45e1b10 commit f7bf9f6Copy full SHA for f7bf9f6
src/Rule/NoHeadings.php
@@ -31,7 +31,12 @@ public function check()
31
&& !$this->getAllElements('h4')
32
&& !$this->getAllElements('h5')
33
&& !$this->getAllElements('h6')) {
34
- $this->setIssue($this->dom->documentElement);
+ /*
35
+ Since this rule sets the document element as the issue
36
+ we set this flag here so we can process it accordingly in UDOIT.
37
+ */
38
+ $metadata = array('isDocumentElement' => true);
39
+ $this->setIssue($this->dom->documentElement, null, json_encode($metadata));
40
}
41
42
$this->totalTests++;
0 commit comments