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