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

Diff of /messaging/manakai/lib/Message/DOM/Entity.pm

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1.7 by wakaba, Thu Jul 12 13:54:46 2007 UTC revision 1.8 by wakaba, Sat Jul 14 09:19:11 2007 UTC
# Line 250  package Message::IF::Entity; Line 250  package Message::IF::Entity;
250  package Message::DOM::Document;  package Message::DOM::Document;
251    
252  sub create_general_entity ($$) {  sub create_general_entity ($$) {
253      if (${$_[0]}->{strict_error_checking}) {
254        my $xv = $_[0]->xml_version;
255        if (defined $xv) {
256          if ($xv eq '1.0' and
257              $_[1] =~ /\A\p{InXML_NameStartChar10}\p{InXMLNameChar10}*\z/) {
258            #
259          } elsif ($xv eq '1.1' and
260                   $_[1] =~ /\A\p{InXMLNameStartChar11}\p{InXMLNameChar11}*\z/) {
261            #
262          } else {
263            report Message::DOM::DOMException
264                -object => $_[0],
265                -type => 'INVALID_CHARACTER_ERR',
266                -subtype => 'MALFORMED_NAME_ERR';
267          }
268        }
269      }
270    
271    return Message::DOM::Entity->____new (@_[0, 1]);    return Message::DOM::Entity->____new (@_[0, 1]);
272  } # create_general_entity  } # create_general_entity
273    

Legend:
Removed from v.1.7  
changed lines
  Added in v.1.8

admin@suikawiki.org
ViewVC Help
Powered by ViewVC 1.1.24