@@ 236-242 (lines=7) @@ | ||
233 | ||
234 | $tmpDomOuterTextString = $this->normalizeStringForComparision($newDocument); |
|
235 | $tmpStr = $this->normalizeStringForComparision($string); |
|
236 | if ($tmpDomOuterTextString !== $tmpStr) { |
|
237 | throw new \RuntimeException( |
|
238 | 'Not valid HTML fragment!' . "\n" |
|
239 | . $tmpDomOuterTextString . "\n" . |
|
240 | $tmpStr |
|
241 | ); |
|
242 | } |
|
243 | ||
244 | $newDocument = $this->cleanHtmlWrapper($newDocument, true); |
|
245 | $ownerDocument = $this->node->ownerDocument; |
@@ 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 ( |