lib/Caxy/HtmlDiff/Table/AbstractTableElement.php 1 location
|
@@ 46-52 (lines=7) @@
|
43 |
|
return $this->domNode->getAttribute($name); |
44 |
|
} |
45 |
|
|
46 |
|
public static function htmlFromNode($node) |
47 |
|
{ |
48 |
|
$domDocument = new \DOMDocument(); |
49 |
|
$newNode = $domDocument->importNode($node, true); |
50 |
|
$domDocument->appendChild($newNode); |
51 |
|
return trim($domDocument->saveHTML()); |
52 |
|
} |
53 |
|
} |
54 |
|
|
lib/Caxy/HtmlDiff/Table/TableDiff.php 1 location
|
@@ 543-550 (lines=8) @@
|
540 |
|
return $innerHtml; |
541 |
|
} |
542 |
|
|
543 |
|
protected function htmlFromNode($node) |
544 |
|
{ |
545 |
|
$domDocument = new \DOMDocument(); |
546 |
|
$newNode = $domDocument->importNode($node, true); |
547 |
|
$domDocument->appendChild($newNode); |
548 |
|
|
549 |
|
return trim($domDocument->saveHTML()); |
550 |
|
} |
551 |
|
|
552 |
|
protected function setInnerHtml($node, $html) |
553 |
|
{ |