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