src/Tokens/Elements/A.php 1 location
|
@@ 42-50 (lines=9) @@
|
39 |
|
); |
40 |
|
} |
41 |
|
|
42 |
|
protected function fixSelf(LoggerInterface $logger) |
43 |
|
{ |
44 |
|
// If the "itemprop" attribute is specified on an "a" element, then |
45 |
|
// the "href" attribute must also be specified. |
46 |
|
if ($this->hasAttribute('itemprop') && !$this->hasAttribute('href')) { |
47 |
|
$logger->debug($this . ' with "itemprop" attribute requires the "href" attribute also. Adding empty "href" attribute.'); |
48 |
|
$this->addAttribute('href', ''); |
49 |
|
} |
50 |
|
} |
51 |
|
|
52 |
|
protected function removeInvalidChildren(LoggerInterface $logger) |
53 |
|
{ |
src/Tokens/Elements/Menu.php 1 location
|
@@ 32-38 (lines=7) @@
|
29 |
|
); |
30 |
|
} |
31 |
|
|
32 |
|
protected function fixSelf(LoggerInterface $logger) |
33 |
|
{ |
34 |
|
if (!$this->hasAttribute('type')) { |
35 |
|
$logger->debug('Modifying ' . $this . '. Adding the default "type" attribute for the "menu" element.'); |
36 |
|
$this->addAttribute('type', 'context'); |
37 |
|
} |
38 |
|
} |
39 |
|
|
40 |
|
protected function removeInvalidChildren(LoggerInterface $logger) |
41 |
|
{ |
src/Tokens/Elements/Meta.php 1 location
|
@@ 29-36 (lines=8) @@
|
26 |
|
); |
27 |
|
} |
28 |
|
|
29 |
|
protected function fixSelf(LoggerInterface $logger) |
30 |
|
{ |
31 |
|
// "name" attribute requires "content" attribute. |
32 |
|
if ($this->hasAttribute('name') && !$this->hasAttribute('content')) { |
33 |
|
$logger->debug('Modifying ' . $this . '. A "meta" element with a "name" attribute requires a "content" attribute. Adding empty "content" attribute.'); |
34 |
|
$this->addAttribute('content', ''); |
35 |
|
} |
36 |
|
} |
37 |
|
|
38 |
|
protected function removeInvalidSelf(LoggerInterface $logger) |
39 |
|
{ |