Skip to content
This repository was archived by the owner on Jan 31, 2020. It is now read-only.

Commit 0a36aea

Browse files
committed
Merge pull request #5 from FabianKoestring/FabianKoestring-zend-view-itemprop
Added itemprop to allowed attributes
2 parents 14319a0 + 22c2df9 commit 0a36aea

File tree

2 files changed

+8
-1
lines changed

2 files changed

+8
-1
lines changed

src/Helper/HeadLink.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,8 @@ class HeadLink extends Placeholder\Container\AbstractStandalone
4646
'sizes',
4747
'type',
4848
'title',
49-
'extras'
49+
'extras',
50+
'itemprop'
5051
];
5152

5253
/**

test/Helper/HeadLinkTest.php

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -445,4 +445,10 @@ public function testSizesAttributeIsSupported()
445445
$this->helper->appendStylesheet(['rel' => 'icon', 'href' => '/bar/baz', 'sizes' => '123x456']);
446446
$this->assertContains('sizes="123x456"', $this->helper->toString());
447447
}
448+
449+
public function testItempropAttributeIsSupported()
450+
{
451+
$this->helper->prependAlternate(['itemprop' => 'url', 'href' => '/bar/baz', 'rel' => 'canonical']);
452+
$this->assertContains('itemprop="url"', $this->helper->toString());
453+
}
448454
}

0 commit comments

Comments
 (0)