Lines Matching refs:element
252 * Set element/attribute key/value pairs of HTML attributes
412 foreach ($this->replace_url_attributes as $element => $attributes) {
413 $this->replace_urls($document, $element, $attributes);
505 foreach ($elements as $element) {
507 if ($element->hasAttribute($attribute)) {
508 $value = $this->registry->call(Misc::class, 'absolutize_url', [$element->getAttribute($attribute), $this->base]);
511 $element->setAttribute($attribute, $value);
540 foreach ($elements as $element) {
546 if ($element->hasAttributes()) {
548 foreach ($element->attributes as $name => $attr) {
570 $number = $element->childNodes->length;
572 $child = $element->childNodes->item(0);
580 $element->parentNode->replaceChild($fragment, $element);
585 foreach ($elements as $element) {
586 $element->parentNode->removeChild($element);
591 foreach ($elements as $element) {
593 $number = $element->childNodes->length;
595 $child = $element->childNodes->item(0);
599 $element->parentNode->replaceChild($fragment, $element);
608 foreach ($elements as $element) {
609 $element->removeAttribute($attrib);
617 foreach ($elements as $element) {
618 $element->setAttribute('data-sanitized-' . $attrib, $element->getAttribute($attrib));
619 $element->removeAttribute($attrib);
626 foreach ($elements as $element) {
628 $element->setAttribute($attrib, $value);