/[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.2 - (show annotations) (download)
Sat Jul 7 09:11:05 2007 UTC (17 years, 4 months ago) by wakaba
Branch: MAIN
CVS Tags: manakai-release-0-4-0, HEAD
Changes since 1.1: +1 -3 lines
++ manakai/t/ChangeLog	7 Jul 2007 09:10:55 -0000
	* DOM-Document.t: New test for ARRAY qualified name
	is added.  Set |strict_error_checking| to false
	for a test not to be raised by |create_attribute_ns|.

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

++ manakai/lib/Message/DOM/ChangeLog	7 Jul 2007 09:09:46 -0000
	* Attr.pm (create_attribute, create_attribute_ns): Implemented.

	* DOMDocument.pm: Load character classes from |Char::Class::XML|.
	(compat_mode): Check |defined| not to be warned as "uninitialized"
	when |{manakai_compat_mode}| is |undef|.

	* DOMException.pm (INVALID_CHARACTER_ERR, NAMESPACE_ERR): Added.

	* DOMImplementationRegistry.pm, DOMImplementationSource.pm:
	Statements to set |$Error::Depth| are removed since they
	are result in "uninitialized" warnings unless
	the |Message::DOM::DOMException| module is loaded earlier.
	Usually methods invoked in these methods does not
	raise any exception so that it makes no difference.

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 for my $class (keys %$Message::DOM::DOMImplementationRegistry::SourceClass) {
13 my $r = $class->get_dom_implementation ($_[1]);
14 return $r if defined $r;
15 }
16 } # get_dom_implementation
17
18 sub get_dom_implementation_list ($$) {
19 require Message::DOM::DOMImplementationList;
20 my $list = bless [], 'Message::DOM::DOMImplementationList';
21 for my $class (keys %$Message::DOM::DOMImplementationRegistry::SourceClass) {
22 push @$list, @{$class->get_dom_implementation_list ($_[1])};
23 }
24 return $list;
25 } # get_dom_implementation_list
26
27 =head1 LICENSE
28
29 Copyright 2007 Wakaba <w@suika.fam.cx>
30
31 This program is free software; you can redistribute it and/or
32 modify it under the same terms as Perl itself.
33
34 =cut
35
36 1;
37 ## $Date: 2007/07/07 05:58:11 $

admin@suikawiki.org
ViewVC Help
Powered by ViewVC 1.1.24