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