protected function copyLinkAttributes(DOMElement $embed)
    {
        $link = $embed->parentNode;

        if ($link->hasAttribute('object_id')) {
            $embed->setAttribute(static::TEMP_PREFIX . 'object_id', $link->getAttribute('object_id'));
        }

        if ($link->hasAttribute('node_id')) {
            $embed->setAttribute(static::TEMP_PREFIX . 'node_id', $link->getAttribute('node_id'));
        }

        if ($link->hasAttribute('anchor_name')) {
            $embed->setAttribute(static::TEMP_PREFIX . 'anchor_name', $link->getAttribute('anchor_name'));
        }

        if ($link->hasAttribute('target')) {
            $embed->setAttribute(static::TEMP_PREFIX . 'target', $link->getAttribute('target'));
        }

        if ($link->hasAttribute('xhtml:title')) {
            $embed->setAttribute(static::TEMP_PREFIX . 'title', $link->getAttribute('xhtml:title'));
        }

        if ($link->hasAttribute('xhtml:id')) {
            $embed->setAttribute(static::TEMP_PREFIX . 'id', $link->getAttribute('xhtml:id'));
        }

        if ($link->hasAttribute('class')) {
            $embed->setAttribute(static::TEMP_PREFIX . 'class', $link->getAttribute('class'));
        }

        if ($link->hasAttribute('url')) {
            $embed->setAttribute(static::TEMP_PREFIX . 'url', $link->getAttribute('url'));
        }

        if ($link->hasAttribute('url_id')) {
            $embed->setAttribute(static::TEMP_PREFIX . 'url_id', $link->getAttribute('url_id'));
        }
    }