diff Lib/IMPL/DOM/Document.pm @ 148:e6447ad85cb4

DOM objects now have a schema and schemaSource properties RegExp now can launder data Improved post to DOM transformation (multiple values a now supported) Added new axes to navigation queries: ancestor and descendant minor changes and bug fixes
author wizard
date Mon, 16 Aug 2010 08:26:44 +0400
parents 196bf443b5e1
children 1e7f03414b65
line wrap: on
line diff
--- a/Lib/IMPL/DOM/Document.pm	Mon Aug 09 08:45:36 2010 +0400
+++ b/Lib/IMPL/DOM/Document.pm	Mon Aug 16 08:26:44 2010 +0400
@@ -13,6 +13,12 @@
 sub Create {
     my ($this,$nodeName,$class,$refProps) = @_;
     
+    if ( ref $class eq 'HASH' ) {
+    	$refProps = $class;
+    	$class = undef;
+    }
+    
+    $class ||= typeof IMPL::DOM::Node;
     $refProps ||= {};
     
     delete $refProps->{nodeName};