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
|
@@ 551-558 (lines=8) @@
|
548 |
|
return $innerHtml; |
549 |
|
} |
550 |
|
|
551 |
|
protected function htmlFromNode($node) |
552 |
|
{ |
553 |
|
$domDocument = new \DOMDocument(); |
554 |
|
$newNode = $domDocument->importNode($node, true); |
555 |
|
$domDocument->appendChild($newNode); |
556 |
|
|
557 |
|
return trim($domDocument->saveHTML()); |
558 |
|
} |
559 |
|
|
560 |
|
protected function setInnerHtml($node, $html) |
561 |
|
{ |