Changeset 9671
- Timestamp:
- 06/19/08 15:30:33 (2 months ago)
- Files:
-
- branches/1.0/lib/util/sfBrowser.class.php (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
branches/1.0/lib/util/sfBrowser.class.php
r9668 r9671 201 201 202 202 // for HTML/XML content, create a DOM and sfDomCssSelector objects for the response content 203 $content = $response->getContentType(); 204 if (preg_match('/(x|ht)ml/i', $content, $matches)) 203 if (preg_match('/(x|ht)ml/i', $response->getContentType(), $matches)) 205 204 { 206 205 $this->dom = new DomDocument('1.0', sfConfig::get('sf_charset')); … … 208 207 if ('x' == $matches[1]) 209 208 { 210 $this->dom->loadXML($ content);209 $this->dom->loadXML($response->getContent()); 211 210 } 212 211 else 213 212 { 214 $this->dom->loadHTML($ content);213 $this->dom->loadHTML($response->getContent()); 215 214 } 216 215 $this->domCssSelector = new sfDomCssSelector($this->dom);