1 |
|
2006-02-13 Wakaba <wakaba@suika.fam.cx> |
2 |
|
|
3 |
|
* XMLParser.dis: Set |cfg:clone-entity-reference-subtree| |
4 |
|
configuration parameter |true| during tree construction |
5 |
|
to ensure default attribute value is cloned as is |
6 |
|
including entity reference subtree. |
7 |
|
|
8 |
|
* Tree.dis (cfg:clone-entity-reference-subtree): New configuration |
9 |
|
parameter. |
10 |
|
(Node.cloneNode): The |cfg:clone-entity-reference-subtree| |
11 |
|
configuration parameter support is added. |
12 |
|
|
13 |
|
2006-02-12 Wakaba <wakaba@suika.fam.cx> |
14 |
|
|
15 |
|
* XMLParser.dis (parseString): General |Entity| replacement |
16 |
|
tree is not constructed because of a typo. Clears |EntityReference| |
17 |
|
content before constructing |Entity| replacement tree. |
18 |
|
The |xp:wf-entity-declared| well-formedness constraint |
19 |
|
for entity references in attribute value literal is implemented. |
20 |
|
|
21 |
|
2006-02-11 Wakaba <wakaba@suika.fam.cx> |
22 |
|
|
23 |
|
* XMLParser.dis: |xp:wf-entity-declared| well-formedness |
24 |
|
constaraint for entity references that appear in |
25 |
|
content of elements is implemented. Set |EntityReference.isExpanded| |
26 |
|
attribute. |
27 |
|
(getEmptyEntityState): New code. |
28 |
|
|
29 |
|
* XDoctype.dis (DocumentTypeDefinition.nodeType): Duplicate |
30 |
|
definition is removed. |
31 |
|
|
32 |
|
* DOMXML.dis (Entity.isExternallyDeclared): New attribute. |
33 |
|
(EntityReference.isExpanded): Setter is added. |
34 |
|
|
35 |
|
2006-02-11 Wakaba <wakaba@suika.fam.cx> |
36 |
|
|
37 |
|
* XMLParser.dis: |xp:wf-no-lt-in-attribute-values| |
38 |
|
and |xp:wf-no-external-entity-references| well-formedness |
39 |
|
constraints are implemented. |
40 |
|
|
41 |
|
2006-02-11 Wakaba <wakaba@suika.fam.cx> |
42 |
|
|
43 |
|
* XMLParser.dis ($self->{has_error}): Removed. |
44 |
|
(parseString): Don't throw |DOMLS:PARSE_ERR| if all fatal |
45 |
|
errors (including well-formedness constraint errors) are |
46 |
|
traped by the error handler. |
47 |
|
(PubidLiteral, SystemLiteral): Set |publicId| or |systemId| |
48 |
|
attribute of the node. Reports an error if |publidLiteral| |
49 |
|
contains a non-|pubidChar|. |
50 |
|
|
51 |
|
* XDoctype.dis (d:DeclFeature30): New feature (|fe:XDoctypeDeclaration| |
52 |
|
version |3.0|). |
53 |
|
(ManakaiDOMDocumentTypeDefinition): The class no longer |
54 |
|
inherits |x:ManakaiDOMDocumentType| class. Instead, |
55 |
|
it inherits |d:ManakaiDOMDocumentTypeDeclaration| |
56 |
|
and |t:ManakaiDOMNOde| classes. It still implements |x:DocumentType| |
57 |
|
interface (except unimplemented |notations| and |internalSubset| |
58 |
|
attributes). |
59 |
|
(ManakaiDOMDocumentTypeDefinition.entities): New attribute |
60 |
|
for compatibility with |x:DocumentType| interface. |
61 |
|
(ManakaiDOMDocumentTypeDefinition.lookupPrefix): New method. |
62 |
|
(ManakaiDOMDocumentTypeDefinition.getFeature): New method. |
63 |
|
(ManakaiDOMDocumentTypeDefinition.nodeType, |
64 |
|
ManakaiDOMDocumentTypeDefinition.textContent): New attributes. |
65 |
|
(DocumentTypeDeclaration): New interface. |
66 |
|
|
67 |
|
* Tree.dis (Node/@f:implements): Typos fixed. |
68 |
|
(Node.MUErrorHandler): Missing |last A| statement is added. |
69 |
|
(createDocumentType): Throws an exception if |qualifiedName| |
70 |
|
is illegal. Calls |DocumentTypeDefinition.newObject| |
71 |
|
instead of obsolete |DocumentType.newObject|. |
72 |
|
|
73 |
|
* DOMXML.dis (DocumentType.name, DocumentType.entities, |
74 |
|
DocumentType.publicId, DocumentType.systemId, |
75 |
|
DocumentType.lookupPrefix, DocumentType.getFeature): Now they are defined |
76 |
|
as clones of similar attributes or methods |
77 |
|
in |MDOM:XDoctype| module. |
78 |
|
(DocumentType.newObject): Removed (use |DocumentTypeDefinition.newObject| |
79 |
|
instead). |
80 |
|
(DocumentType.childNodes): Removed (|Node.childNodes| definition |
81 |
|
is used). |
82 |
|
|
83 |
|
2006-02-10 Wakaba <wakaba@suika.fam.cx> |
84 |
|
|
85 |
|
* XMLParser.dis (xp:fatal-xml11-end-of-line-in-xml-declaration): New |
86 |
|
fatal error. |
87 |
|
|
88 |
|
2006-02-09 Wakaba <wakaba@suika.fam.cx> |
89 |
|
|
90 |
|
* XMLParser.dis (CommentDeclaration): |STRING| is now |
91 |
|
defined as a |?default-token|. |
92 |
|
(XMLTests): Tests for |Char - RestrictedChar| matchness, |
93 |
|
comment declarations, cdata sections, and |MSE| in |content| |
94 |
|
added. |
95 |
|
(XMLTests/PerlDef): Bug fixed: |pop| -> |shift|. |
96 |
|
(get-location-from-token): |$token->{location_d}| |
97 |
|
for |?default-token| column counting support added. |
98 |
|
|
99 |
|
* DOMCore.dis (c:erred): It is now a |DISCore:OrderedList| property. |
100 |
|
|
101 |
|
2006-02-08 Wakaba <wakaba@suika.fam.cx> |
102 |
|
|
103 |
|
* Tree.dis (createProcessingInstruction): Don't |
104 |
|
throw |MDOMX:MDOM_BAD_NAME| exception if |Document.strictErrorChecking| |
105 |
|
is |false|. |
106 |
|
|
107 |
|
* XMLParser.dis (parseString): Initializes |$self->{location}|. |
108 |
|
It enables improved error position report. |
109 |
|
(XDO): It now includes |S+| following target name |xml| as |
110 |
|
part of the token. (PI with target starting with |xml| |
111 |
|
was unable to be placed at the beginning of the document entity.) |
112 |
|
(_ProcessingInstruction, _ProcessingInstructionDTD): Creates |
113 |
|
a processing instruction node with |#INVALID| node name |
114 |
|
if target name is not given and recovered from the error. |
115 |
|
(S): Variable |$s| added. |
116 |
|
(XMLTests): Tests for XML declarations and processing |
117 |
|
instructions are added. Prints error type name if unexpected |
118 |
|
error with severity of error or fatal error has been reported. |
119 |
|
Catch unexpected exceptions thrown in parser (different |
120 |
|
from |LSException|), prints its message, and invoke |$test->not_ok| |
121 |
|
for the ease of testing. |
122 |
|
(xp:get-location-from-token): Location values now take |$self->{char}| |
123 |
|
stack into acount. |
124 |
|
|
125 |
2006-02-08 Wakaba <wakaba@suika.fam.cx> |
2006-02-08 Wakaba <wakaba@suika.fam.cx> |
126 |
|
|
127 |
* XMLParser.dis (shiftChar): Line and column number counting |
* XMLParser.dis (shiftChar): Line and column number counting |