wolferhua / phpquery

Automatically exported from code.google.com/p/phpquery
0 stars 0 forks source link

DOMDocumentWrapper #60

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
DOMDocumentWrapper combines all DOMDocument functionality in one reusable
class. Consider it's integration with rest of the code as an alpha quality.
Here are the benefits:
   * fixed inserts
   * added XML/XHTML compatibility
   * contentType support
And now what's need are bugs, all of them.

All new methods:
 * phpQuery
  ::newDocument($markup, $contentType = null)  // new document from markup,
type autodetected)
  ::newDocumentHTML($html)  // new document, type HTML
  ::newDocumentXML($xml)  // new document, type XML
  ::newDocumentXHTML($xml)  // new document, type XHTML
  ::newDocumentFile($file)
  ::newDocumentFileHTML($file)
  ::newDocumentFileXML($file)
  ::newDocumentFileXHTML($file)
 * $pq
  ->isXML()
  ->isXHTML()
  ->isHTML()
  ->html()
  ->xml()
  ->htmlOuter()
  ->xmlOuter()

Original issue reported on code.google.com by tobiasz....@gmail.com on 16 Oct 2008 at 12:06

GoogleCodeExporter commented 9 years ago
Avaible in svn branches/dev since r202

Original comment by tobiasz....@gmail.com on 16 Oct 2008 at 12:07