/[suikacvs]/messaging/manakai/lib/Message/DOM/DOMImplementationRegistry.pm
Suika

Contents of /messaging/manakai/lib/Message/DOM/DOMImplementationRegistry.pm

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.1 - (show annotations) (download)
Sat Jul 7 05:58:11 2007 UTC (17 years, 4 months ago) by wakaba
Branch: MAIN
++ manakai/t/ChangeLog	7 Jul 2007 05:55:43 -0000
	* DOM-DOMImplementation.t: New tests for features are added.

	* DOM-DOMImplementationSource.t: New test script.

2007-07-07  Wakaba  <wakaba@suika.fam.cx>

++ manakai/lib/Message/DOM/ChangeLog	7 Jul 2007 05:58:02 -0000
	* DOMImplementation.pm (new): New method name for |____new|.
	It will be defined in the DOM Perl Binding specification
	as part of |DOMImplementation| interface.
	($HasFeature): Defined for features support.
	(has_feature, get_feature): Implemented.

	* DOMStringList.pm: Don't load the |Message::DOM::DOMException|
	module unless necessary.
	(___report_error): Removed since it is not used in fact.

	* DOMImplementationList.pm, DOMImplementationSource.pm,
	DOMImplementationRegistry.pm: New modules.

2007-07-07  Wakaba  <wakaba@suika.fam.cx>

1 package Message::DOM::DOMImplementationRegistry;
2 use strict;
3 our $VERSION=do{my @r=(q$Revision: 1.1 $=~/\d+/g);sprintf "%d."."%02d" x $#r,@r};
4 push our @ISA, 'Message::IF::DOMImplementationSource';
5 require Message::DOM::DOMImplementationSource;
6
7 $Message::DOM::DOMImplementationRegistry = __PACKAGE__;
8
9 ## |DOMImplementationRegistry| methods
10
11 sub get_dom_implementation ($$) {
12 local $Error::Depth = $Error::Depth + 1;
13 for my $class (keys %$Message::DOM::DOMImplementationRegistry::SourceClass) {
14 my $r = $class->get_dom_implementation ($_[1]);
15 return $r if defined $r;
16 }
17 } # get_dom_implementation
18
19 sub get_dom_implementation_list ($$) {
20 local $Error::Depth = $Error::Depth + 1;
21 require Message::DOM::DOMImplementationList;
22 my $list = bless [], 'Message::DOM::DOMImplementationList';
23 for my $class (keys %$Message::DOM::DOMImplementationRegistry::SourceClass) {
24 push @$list, @{$class->get_dom_implementation_list ($_[1])};
25 }
26 return $list;
27 } # get_dom_implementation_list
28
29 =head1 LICENSE
30
31 Copyright 2007 Wakaba <w@suika.fam.cx>
32
33 This program is free software; you can redistribute it and/or
34 modify it under the same terms as Perl itself.
35
36 =cut
37
38 1;
39 ## $Date: 2007/07/07 04:47:29 $

admin@suikawiki.org
ViewVC Help
Powered by ViewVC 1.1.24