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