Mercurial > pub > Impl
comparison Lib/IMPL/DOM/Node.pm @ 34:a8086f85a571
Dom Builder
| author | Sergey |
|---|---|
| date | Mon, 16 Nov 2009 18:39:25 +0300 |
| parents | dd4d72600c69 |
| children | 1828103371d0 |
comparison
equal
deleted
inserted
replaced
| 33:0004faa276dc | 34:a8086f85a571 |
|---|---|
| 22 } | 22 } |
| 23 | 23 |
| 24 sub CTOR { | 24 sub CTOR { |
| 25 my ($this,%args) = @_; | 25 my ($this,%args) = @_; |
| 26 | 26 |
| 27 $this->nodeName($args{nodeName}) or die new IMPL::InvalidArgumentException("A name is required"); | 27 $this->nodeName(delete $args{nodeName}) or die new IMPL::InvalidArgumentException("A name is required"); |
| 28 $this->nodeValue($args{nodeValue}); | 28 $this->nodeValue(delete $args{nodeValue}); |
| 29 | |
| 30 $this->{$_propertyMap} = \%args; | |
| 29 } | 31 } |
| 30 | 32 |
| 31 sub insertNode { | 33 sub insertNode { |
| 32 my ($this,$node,$pos) = @_; | 34 my ($this,$node,$pos) = @_; |
| 33 | 35 |
