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

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.3 - (hide annotations) (download)
Sat Jun 16 15:27:45 2007 UTC (17 years, 5 months ago) by wakaba
Branch: MAIN
Changes since 1.2: +5 -2 lines
++ manakai/t/ChangeLog	16 Jun 2007 15:27:38 -0000
	* DOM-Node.t: Tests for |prefix| and |text_content| are added.

2007-06-16  Wakaba  <wakaba@suika.fam.cx>

++ manakai/lib/Message/DOM/ChangeLog	16 Jun 2007 15:27:12 -0000
	* DOMConfiguration.pm: New module.

	* Attr.pm (trivial accessor for read-write attributes): Throw
	an exception if the node is read-only.  Delete the property
	if undef is specified.
	(prefix): Implemented.

	* DOMElement.pm (trivial accessor for read-write attributes): Throw
        an exception if the node is read-only.  Delete the property
        if undef is specified.
        (prefix): Implemented.
	(text_content, manakai_append_text): Old implementations are removed.

	* DOMCharacterData.pm (text_content): Implemented.

	* DOMDocument.pm (____new): Initialize the strict-document-children
	parameter by true.
	(text_content): Reimplemented.
	(dom_config): New.

	* DOMException.pm (READ_ONLY_NODE_ERR): New subtype.

	* DocumentType.pm (text_content): Implemented.

	* ElementTypeDefinition.pm (text_content): Implemented.

	* Node.pm (___report_error): New method.
	(text_content): Implemented.
	(manakai_append_text): Copied from |DOMElement.pm|.

	* Notation.pm (text_content): Implemented.

	* ProcessingInstruction.pm (text_content): Implemented.

	* Text.pm (is_element_content_whitespace): Alpha version.

2007-06-16  Wakaba  <wakaba@suika.fam.cx>

1 wakaba 1.1 package Message::DOM::DOMException;
2     use strict;
3 wakaba 1.3 our $VERSION=do{my @r=(q$Revision: 1.2 $=~/\d+/g);sprintf "%d."."%02d" x $#r,@r};
4 wakaba 1.1 push our @ISA, 'Message::Util::Error', 'Message::IF::DOMException';
5     require Message::Util::Error;
6    
7     sub ___error_def () {+{
8     NO_MODIFICATION_ALLOWED_ERR => {
9     -code => 7,
10     -subtype => {
11 wakaba 1.3 READ_ONLY_NODE_ERR => {
12     -description => q(Can't modify read-only node),
13     },
14 wakaba 1.1 READ_ONLY_NODE_LIST_ERR => {
15     -description => q(Can't modify read-only node list),
16     },
17     },
18     },
19     }} # ___error_def
20    
21     package Message::IF::DOMException;
22 wakaba 1.2 push our @ISA, 'Message::Util::Error';
23 wakaba 1.1
24     ## DOM1
25     sub INDEX_SIZE_ERR () { 1 }
26     sub DOMSTRING_SIZE_ERR () { 2 }
27     sub HIERARCHY_REQUEST_ERR () { 3 }
28     sub WRONG_DOCUMENT_ERR () { 4 }
29     sub INVALID_CHARACTER_ERR () { 5 }
30     sub NO_DATA_ALLOWED_ERR () { 6 }
31     sub NO_MODIFICATION_ALLOWED_ERR () { 7 }
32     sub NOT_FOUND_ERR () { 8 }
33     sub NOT_SUPPORTED_ERR () { 9 }
34     sub INUSE_ATTRIBUTE_ERR () { 10 }
35     ## DOM2
36     sub INVALID_STATE_ERR () { 11 }
37     sub SYNTAX_ERR () { 12 }
38     sub INVALID_MODIFICATION_ERR () { 13 }
39     sub NAMESPACE_ERR () { 14 }
40     sub INVALID_ACCESS_ERR () { 15 }
41     ## DOM3
42     sub VALIDATION_ERR () { 16 }
43     sub TYPE_MISMATCH_ERR () { 17 }
44    
45     =head1 LICENSE
46    
47     Copyright 2007 Wakaba <w@suika.fam.cx>
48    
49     This program is free software; you can redistribute it and/or
50     modify it under the same terms as Perl itself.
51    
52     =cut
53    
54     1;
55 wakaba 1.3 ## $Date: 2007/06/16 08:49:00 $

admin@suikawiki.org
ViewVC Help
Powered by ViewVC 1.1.24