for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
namespace Groundskeeper\Tokens\Elements;
use Groundskeeper\Tokens\Attribute;
use Groundskeeper\Tokens\ElementTypes\ClosedElement;
use Groundskeeper\Tokens\ElementTypes\EmbeddedContent;
use Groundskeeper\Tokens\ElementTypes\FlowContent;
use Groundskeeper\Tokens\ElementTypes\InteractiveContent;
use Groundskeeper\Tokens\ElementTypes\PhrasingContent;
/**
* "embed" element
*
* https://html.spec.whatwg.org/multipage/semantics.html#the-embed-element
*/
class Embed extends ClosedElement implements FlowContent, PhrasingContent, EmbeddedContent, InteractiveContent
{
protected function getAllowedAttributes()
$embedAllowedAttributes = array(
'/^src$/i' => Attribute::URI,
'/^type$/i' => Attribute::CS_STRING,
'/^name$/i' => Attribute::CS_STRING,
'/^[a-z_-]$/i' => Attribute::CS_STRING
);
return array_merge(
$embedAllowedAttributes,
parent::getAllowedAttributes()
}
public function isInteractiveContent()
return true;