comparison 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
comparison
equal deleted inserted replaced
147:c2aa10fbb396 148:e6447ad85cb4
11 } 11 }
12 12
13 sub Create { 13 sub Create {
14 my ($this,$nodeName,$class,$refProps) = @_; 14 my ($this,$nodeName,$class,$refProps) = @_;
15 15
16 if ( ref $class eq 'HASH' ) {
17 $refProps = $class;
18 $class = undef;
19 }
20
21 $class ||= typeof IMPL::DOM::Node;
16 $refProps ||= {}; 22 $refProps ||= {};
17 23
18 delete $refProps->{nodeName}; 24 delete $refProps->{nodeName};
19 25
20 die new IMPL::Exception("class is not specified") unless $class; 26 die new IMPL::Exception("class is not specified") unless $class;