| @@ 233-239 (lines=7) @@ | ||
| 230 | ||
| 231 | $tmpDomOuterTextString = $this->normalizeStringForComparision($newDocument); |
|
| 232 | $tmpStr = $this->normalizeStringForComparision($string); |
|
| 233 | if ($tmpDomOuterTextString !== $tmpStr) { |
|
| 234 | throw new \RuntimeException( |
|
| 235 | 'Not valid HTML fragment!' . "\n" |
|
| 236 | . $tmpDomOuterTextString . "\n" . |
|
| 237 | $tmpStr |
|
| 238 | ); |
|
| 239 | } |
|
| 240 | ||
| 241 | $newDocument = $this->cleanHtmlWrapper($newDocument, true); |
|
| 242 | $ownerDocument = $this->node->ownerDocument; |
|
| @@ 220-226 (lines=7) @@ | ||
| 217 | ||
| 218 | $tmpDomOuterTextString = $this->normalizeStringForComparision($newDocument); |
|
| 219 | $tmpStr = $this->normalizeStringForComparision($string); |
|
| 220 | if ($tmpDomOuterTextString !== $tmpStr) { |
|
| 221 | throw new \RuntimeException( |
|
| 222 | 'Not valid HTML fragment!' . "\n" |
|
| 223 | . $tmpDomOuterTextString . "\n" . |
|
| 224 | $tmpStr |
|
| 225 | ); |
|
| 226 | } |
|
| 227 | ||
| 228 | $ownerDocument = $this->node->ownerDocument; |
|
| 229 | if ( |
|