@@ 208-214 (lines=7) @@ | ||
205 | ||
206 | $tmpDomOuterTextString = $this->normalizeStringForComparision($newDocument); |
|
207 | $tmpStr = $this->normalizeStringForComparision($string); |
|
208 | if ($tmpDomOuterTextString !== $tmpStr) { |
|
209 | throw new \RuntimeException( |
|
210 | 'Not valid HTML fragment!' . "\n" |
|
211 | . $tmpDomOuterTextString . "\n" . |
|
212 | $tmpStr |
|
213 | ); |
|
214 | } |
|
215 | ||
216 | $newDocument = $this->cleanHtmlWrapper($newDocument, true); |
|
217 | $ownerDocument = $this->node->ownerDocument; |
@@ 195-201 (lines=7) @@ | ||
192 | ||
193 | $tmpDomOuterTextString = $this->normalizeStringForComparision($newDocument); |
|
194 | $tmpStr = $this->normalizeStringForComparision($string); |
|
195 | if ($tmpDomOuterTextString !== $tmpStr) { |
|
196 | throw new \RuntimeException( |
|
197 | 'Not valid HTML fragment!' . "\n" |
|
198 | . $tmpDomOuterTextString . "\n" . |
|
199 | $tmpStr |
|
200 | ); |
|
201 | } |
|
202 | ||
203 | $ownerDocument = $this->node->ownerDocument; |
|
204 | if ( |