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

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.5 - (show annotations) (download)
Sun Jul 8 13:04:36 2007 UTC (17 years, 4 months ago) by wakaba
Branch: MAIN
CVS Tags: manakai-release-0-4-0, HEAD
Changes since 1.4: +13 -51 lines
++ manakai/t/ChangeLog	8 Jul 2007 13:03:58 -0000
	* DOM-Element.t: Tests for |attributes| are added.

	* DOM-Entity.t: Tests for |is_externally_declared|
	and |input_encoding| are added.

	* DOM-Node.t: Test data for |tag_name| and
	|get_feature| are added.

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

++ manakai/lib/Message/DOM/ChangeLog	8 Jul 2007 13:02:01 -0000
	* Attr.pm (value, node_value): Now it is defined
	as |text_content| itself.

	* AttributeDefinition.pm, ElementTypeDefinition.pm,
	Node.pm (AUTOLOAD): Unused block is removed.

	* CDATASection.pm, DocumentFragment.pm (AUTOLOAD): Removed.  Unused.

	* DocumentType.pm (internal_subset): Implemented.

	* Entity.pm (is_externally_declared, input_encoding,
	xml_version): Implemented.

	* ProcessingInstruction.pm (target, data): Implemented.

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

1 package Message::DOM::DocumentFragment;
2 use strict;
3 our $VERSION=do{my @r=(q$Revision: 1.4 $=~/\d+/g);sprintf "%d."."%02d" x $#r,@r};
4 push our @ISA, 'Message::DOM::Node', 'Message::IF::DocumentFragment';
5 require Message::DOM::Node;
6
7 sub ____new ($$) {
8 my $self = shift->SUPER::____new (shift);
9 $$self->{child_nodes} = [];
10 return $self;
11 } # ____new
12
13 ## |Node| attributes
14
15 sub node_name () { '#document-fragment' }
16
17 sub node_type () { 11 } # DOCUMENT_FRAGMENT_NODE
18
19 package Message::IF::DocumentFragment;
20
21 package Message::DOM::Document;
22
23 sub create_document_fragment ($) {
24 return Message::DOM::DocumentFragment->____new ($_[0]);
25 } # create_document_fragment
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/06/17 13:37:40 $

admin@suikawiki.org
ViewVC Help
Powered by ViewVC 1.1.24