1 |
|
2006-02-15 Wakaba <wakaba@suika.fam.cx> |
2 |
|
|
3 |
|
* XMLParser.dis: Issues |xp:error-internal-predefined-entity| error |
4 |
|
if a predefined entity declaration references an external entity. |
5 |
|
Issues |xp:error-malformed-predefined-entity| error if |
6 |
|
a predefined entity declaration defines different thing than |
7 |
|
one as in XML specification. |
8 |
|
Issies |xp:warning-entity-declaration-ignored| warning if |
9 |
|
more than one entity declarations for an entity is found. |
10 |
|
(WFErrDef): Now all well-formedness errors are marked |
11 |
|
as |SEVERITY_FATAL_ERROR|. |
12 |
|
|
13 |
|
* XDoctype.dis (DocumentXDoctype.createDocumentTypeDefinition): Creates |
14 |
|
predefined entity declarations. |
15 |
|
(DocumentXDoctype.createNotation): New method. |
16 |
|
(DocumentTypeDefinition.notations): New attribute. |
17 |
|
(DocumentTypeDefinition.getNotationNode): New method. |
18 |
|
(DocumentTypeDefinition.setNotationNode): New method. |
19 |
|
(newNotationForTest): New code fragment. |
20 |
|
|
21 |
|
* Tree.dis (ManakaiDOMXML:ManakaiDOMNotations): Removed. |
22 |
|
(c:ManakaiDOMNotationMap): New class. |
23 |
|
(c:ManakaiDOMNotationMapArray): New class. |
24 |
|
(Document.allDeclarationsProcessed): New attribute. |
25 |
|
|
26 |
|
* DOMXML.dis (DocumentType.notations): Implemented. |
27 |
|
(Notation): Revised. |
28 |
|
(Notation.ownerDocumentTypeDefinition): New attribute. |
29 |
|
|
30 |
|
2006-02-14 Wakaba <wakaba@suika.fam.cx> |
31 |
|
|
32 |
|
* XMLParser.dis: The |xp:wf-parsed-entity| and the |xp:wf-no-recursion| |
33 |
|
WFC errors are implemented. Reports a |xp:wf-syntax-error| |
34 |
|
if a parameter entity declaration contains |NDATA| keyword. |
35 |
|
(setEmptyEntityState): Set |name| attribute. |
36 |
|
|
37 |
|
* Tree.dis (createEntityReference): Don't enter into inifinite |
38 |
|
loop even if entity replacement tree contains recursive |
39 |
|
reference directly or indirectly. |
40 |
|
|
41 |
|
2006-02-13 Wakaba <wakaba@suika.fam.cx> |
42 |
|
|
43 |
|
* XMLParser.dis (_GeneralEntityReferenceAE): The |xp:wf-entity-declared| |
44 |
|
WFC error is implemented. |
45 |
|
|
46 |
|
2006-02-13 Wakaba <wakaba@suika.fam.cx> |
47 |
|
|
48 |
|
* XMLParser.dis: Set |cfg:clone-entity-reference-subtree| |
49 |
|
configuration parameter |true| during tree construction |
50 |
|
to ensure default attribute value is cloned as is |
51 |
|
including entity reference subtree. |
52 |
|
|
53 |
|
* Tree.dis (cfg:clone-entity-reference-subtree): New configuration |
54 |
|
parameter. |
55 |
|
(Node.cloneNode): The |cfg:clone-entity-reference-subtree| |
56 |
|
configuration parameter support is added. |
57 |
|
|
58 |
|
2006-02-12 Wakaba <wakaba@suika.fam.cx> |
59 |
|
|
60 |
|
* XMLParser.dis (parseString): General |Entity| replacement |
61 |
|
tree is not constructed because of a typo. Clears |EntityReference| |
62 |
|
content before constructing |Entity| replacement tree. |
63 |
|
The |xp:wf-entity-declared| well-formedness constraint |
64 |
|
for entity references in attribute value literal is implemented. |
65 |
|
|
66 |
|
2006-02-11 Wakaba <wakaba@suika.fam.cx> |
67 |
|
|
68 |
|
* XMLParser.dis: |xp:wf-entity-declared| well-formedness |
69 |
|
constaraint for entity references that appear in |
70 |
|
content of elements is implemented. Set |EntityReference.isExpanded| |
71 |
|
attribute. |
72 |
|
(getEmptyEntityState): New code. |
73 |
|
|
74 |
|
* XDoctype.dis (DocumentTypeDefinition.nodeType): Duplicate |
75 |
|
definition is removed. |
76 |
|
|
77 |
|
* DOMXML.dis (Entity.isExternallyDeclared): New attribute. |
78 |
|
(EntityReference.isExpanded): Setter is added. |
79 |
|
|
80 |
|
2006-02-11 Wakaba <wakaba@suika.fam.cx> |
81 |
|
|
82 |
|
* XMLParser.dis: |xp:wf-no-lt-in-attribute-values| |
83 |
|
and |xp:wf-no-external-entity-references| well-formedness |
84 |
|
constraints are implemented. |
85 |
|
|
86 |
|
2006-02-11 Wakaba <wakaba@suika.fam.cx> |
87 |
|
|
88 |
|
* XMLParser.dis ($self->{has_error}): Removed. |
89 |
|
(parseString): Don't throw |DOMLS:PARSE_ERR| if all fatal |
90 |
|
errors (including well-formedness constraint errors) are |
91 |
|
traped by the error handler. |
92 |
|
(PubidLiteral, SystemLiteral): Set |publicId| or |systemId| |
93 |
|
attribute of the node. Reports an error if |publidLiteral| |
94 |
|
contains a non-|pubidChar|. |
95 |
|
|
96 |
|
* XDoctype.dis (d:DeclFeature30): New feature (|fe:XDoctypeDeclaration| |
97 |
|
version |3.0|). |
98 |
|
(ManakaiDOMDocumentTypeDefinition): The class no longer |
99 |
|
inherits |x:ManakaiDOMDocumentType| class. Instead, |
100 |
|
it inherits |d:ManakaiDOMDocumentTypeDeclaration| |
101 |
|
and |t:ManakaiDOMNOde| classes. It still implements |x:DocumentType| |
102 |
|
interface (except unimplemented |notations| and |internalSubset| |
103 |
|
attributes). |
104 |
|
(ManakaiDOMDocumentTypeDefinition.entities): New attribute |
105 |
|
for compatibility with |x:DocumentType| interface. |
106 |
|
(ManakaiDOMDocumentTypeDefinition.lookupPrefix): New method. |
107 |
|
(ManakaiDOMDocumentTypeDefinition.getFeature): New method. |
108 |
|
(ManakaiDOMDocumentTypeDefinition.nodeType, |
109 |
|
ManakaiDOMDocumentTypeDefinition.textContent): New attributes. |
110 |
|
(DocumentTypeDeclaration): New interface. |
111 |
|
|
112 |
|
* Tree.dis (Node/@f:implements): Typos fixed. |
113 |
|
(Node.MUErrorHandler): Missing |last A| statement is added. |
114 |
|
(createDocumentType): Throws an exception if |qualifiedName| |
115 |
|
is illegal. Calls |DocumentTypeDefinition.newObject| |
116 |
|
instead of obsolete |DocumentType.newObject|. |
117 |
|
|
118 |
|
* DOMXML.dis (DocumentType.name, DocumentType.entities, |
119 |
|
DocumentType.publicId, DocumentType.systemId, |
120 |
|
DocumentType.lookupPrefix, DocumentType.getFeature): Now they are defined |
121 |
|
as clones of similar attributes or methods |
122 |
|
in |MDOM:XDoctype| module. |
123 |
|
(DocumentType.newObject): Removed (use |DocumentTypeDefinition.newObject| |
124 |
|
instead). |
125 |
|
(DocumentType.childNodes): Removed (|Node.childNodes| definition |
126 |
|
is used). |
127 |
|
|
128 |
|
2006-02-10 Wakaba <wakaba@suika.fam.cx> |
129 |
|
|
130 |
|
* XMLParser.dis (xp:fatal-xml11-end-of-line-in-xml-declaration): New |
131 |
|
fatal error. |
132 |
|
|
133 |
|
2006-02-09 Wakaba <wakaba@suika.fam.cx> |
134 |
|
|
135 |
|
* XMLParser.dis (CommentDeclaration): |STRING| is now |
136 |
|
defined as a |?default-token|. |
137 |
|
(XMLTests): Tests for |Char - RestrictedChar| matchness, |
138 |
|
comment declarations, cdata sections, and |MSE| in |content| |
139 |
|
added. |
140 |
|
(XMLTests/PerlDef): Bug fixed: |pop| -> |shift|. |
141 |
|
(get-location-from-token): |$token->{location_d}| |
142 |
|
for |?default-token| column counting support added. |
143 |
|
|
144 |
|
* DOMCore.dis (c:erred): It is now a |DISCore:OrderedList| property. |
145 |
|
|
146 |
|
2006-02-08 Wakaba <wakaba@suika.fam.cx> |
147 |
|
|
148 |
|
* Tree.dis (createProcessingInstruction): Don't |
149 |
|
throw |MDOMX:MDOM_BAD_NAME| exception if |Document.strictErrorChecking| |
150 |
|
is |false|. |
151 |
|
|
152 |
|
* XMLParser.dis (parseString): Initializes |$self->{location}|. |
153 |
|
It enables improved error position report. |
154 |
|
(XDO): It now includes |S+| following target name |xml| as |
155 |
|
part of the token. (PI with target starting with |xml| |
156 |
|
was unable to be placed at the beginning of the document entity.) |
157 |
|
(_ProcessingInstruction, _ProcessingInstructionDTD): Creates |
158 |
|
a processing instruction node with |#INVALID| node name |
159 |
|
if target name is not given and recovered from the error. |
160 |
|
(S): Variable |$s| added. |
161 |
|
(XMLTests): Tests for XML declarations and processing |
162 |
|
instructions are added. Prints error type name if unexpected |
163 |
|
error with severity of error or fatal error has been reported. |
164 |
|
Catch unexpected exceptions thrown in parser (different |
165 |
|
from |LSException|), prints its message, and invoke |$test->not_ok| |
166 |
|
for the ease of testing. |
167 |
|
(xp:get-location-from-token): Location values now take |$self->{char}| |
168 |
|
stack into acount. |
169 |
|
|
170 |
|
2006-02-08 Wakaba <wakaba@suika.fam.cx> |
171 |
|
|
172 |
|
* XMLParser.dis (shiftChar): Line and column number counting |
173 |
|
is fixed. Although the DOM Level 3 Core specification |
174 |
|
is unclear about whether the first number is zero or one, |
175 |
|
in most programs the first line is "one" and |
176 |
|
the first column is "one", manakai follows the practice. |
177 |
|
(_XMLDeclaration): Don't set |xmlStandalone| value |
178 |
|
if |standalone| pseudo-attribute value is |no|. XML declaration |
179 |
|
tests (successful cases) added. |
180 |
|
(xp:get-location-from-token): Sets |lineNumber| and |columnNumber| |
181 |
|
properties. |
182 |
|
|
183 |
|
2006-02-08 Wakaba <wakaba@suika.fam.cx> |
184 |
|
|
185 |
|
* XMLParser.dis (XMLTests): Tests for |c:erred| is supported. |
186 |
|
|
187 |
|
2006-02-06 Wakaba <wakaba@suika.fam.cx> |
188 |
|
|
189 |
|
* DOMCore.dis (c:erred): New property. |
190 |
|
(c:DOMErrorType): It should have been a subset |
191 |
|
of |ecore:AnyErrorCode|. |
192 |
|
|
193 |
|
* XMLParser.dis (XMLTests): Empty input tests added. |
194 |
|
|
195 |
|
2006-01-30 Wakaba <wakaba@suika.fam.cx> |
196 |
|
|
197 |
|
* XDoctype.dis (d:Feature): New canonical feature |
198 |
|
name |fe:XDoctype| is added. |
199 |
|
|
200 |
|
* XMLParser.dis: Predefined general entity references |
201 |
|
are implemented. Creates |Entity| nodes from general entities |
202 |
|
declared in internal subset. |Entity| nodes created from internal |
203 |
|
general parsed entities now have replacement tree. |
204 |
|
Sets |cfg:entity-reference-read-only| flag off during |
205 |
|
the tree generation. Some parsing rules use |$self->{doc}| |
206 |
|
rather than |$doc| parameter. Similarly, |$self->{docx}| (document |
207 |
|
node with |fe:XDoctype| feature) and |$self->{dtdef}| are |
208 |
|
introduced. General entity references in attribute value literal |
209 |
|
are supported. |
210 |
|
|
211 |
|
2006-01-29 Wakaba <wakaba@suika.fam.cx> |
212 |
|
|
213 |
|
* Tree.dis (ManakaiDOM:entity-reference-read-only): Configuration |
214 |
|
parameter name changed to |cfg:entity-reference-read-only|. |
215 |
|
(createEntityReference): Set |c:read-only| flag of |
216 |
|
the created entity reference, too. |
217 |
|
|
218 |
|
* DOMLS.dis (min): New canonical feature name |fe:Min| added. |
219 |
|
|
220 |
|
* GenericLS.dis: Don't refer |DOMMain:DOMString|; use |f:MIString| |
221 |
|
from |DOMFeature| module instead. Use |idl:Object| |
222 |
|
instead of |DOMMain:DOMObject| as well. |
223 |
|
(Generic): New canonical feature name |fe:GenericLS| added. |
224 |
|
(DOMLS:ParserRole, DOMLS:SerializerRole): Their |
225 |
|
canonical name changed to |gls:ParserRole| and |gls:SerializerRole| |
226 |
|
respectively. |
227 |
|
|
228 |
|
* DOMXML.dis (entities, notations): Perl code removed. |
229 |
|
It will be reimplemented using |DocumentTypeDefinition| |
230 |
|
class from |XDoctype| module. |
231 |
|
|
232 |
|
* DOMFeature.dis, DOMCore.dis, DOMMain.dis, DOMXML.dis, |
233 |
|
Tree.dis, DOMLS.dis, GenericLS.dis, ManakaiDOMLS2003.dis, |
234 |
|
SimpleLS.dis: Cleaned up unused definitions. |
235 |
|
|
236 |
|
* DOMCore.dis, DOMLS.dis (CParam): Definitions |
237 |
|
for LS module moved from |DOMCore| module to |DOMLS| module. |
238 |
|
This change makes |DOMCore| to |DOMLS| dependency removed. |
239 |
|
|
240 |
|
* .cvsignore (.html.pm, .ls.pm): Removed. |
241 |
|
|
242 |
|
* Makefile (.html.pm, .ls.pm): Removed. |
243 |
|
(feature.dae): Include |GenericLS| module. |
244 |
|
(core.dae): Don't include |DOMLS| and |GenericLS| module. |
245 |
|
(ls.dae): Include |DOMLS| module. |
246 |
|
|
247 |
|
2006-01-29 Wakaba <wakaba@suika.fam.cx> |
248 |
|
|
249 |
|
* XMLParser.dis: Tests on default attributes and their |specified| |
250 |
|
attribute are added. |
251 |
|
|
252 |
|
* XDoctype.dis (createGeneralEntity): New method. |
253 |
|
(generalEntities): New attribute. |
254 |
|
(getGeneralEntityNode, setGeneralEntityNode): New methods. |
255 |
|
|
256 |
|
* Tree.dis (ManakaiDOMEntities): Removed. |
257 |
|
(ManakaiDOMEntityMap): New class. |
258 |
|
(ManakaiDOM:entity-reference-read-only): New configuration parameter. |
259 |
|
(createEntityReference): If there is a corresponding |Entity| |
260 |
|
node in the document type definition, then copies its |
261 |
|
subtree. |
262 |
|
|
263 |
|
* DOMXML.dis (Entity): Documentation updated. |
264 |
|
(publicId, systemId, notationName, xmlEncoding, |
265 |
|
xmlVersion): These attributes are now settable |
266 |
|
if |ManakaiDOM:ManakaiDOMLatest| mode. |
267 |
|
(hasReplacementTree): New attribute for |ManakaiDOM:ManakaiDOMLatest| |
268 |
|
mode. |
269 |
|
(ownerDocumentTypeDefinition): New attribute |
270 |
|
for |ManakaiDOM:ManakaiDOMLatest| mode. |
271 |
|
(isExpanded): New attribute for |ManakaiDOM:ManakaiDOMLatest| mode. |
272 |
|
|
273 |
|
2006-01-28 Wakaba <wakaba@suika.fam.cx> |
274 |
|
|
275 |
|
* DOMCore.dis (ErrDef): Missing |ecore:textFormatter| property added. |
276 |
|
|
277 |
|
* DOMMain.dis (ErrDef): Missing |ecore:textFormatter| property added. |
278 |
|
|
279 |
|
* Tree.dis (ErrDef): Missing |ecore:textFormatter| property added. |
280 |
|
(ManakaiDOMAttributes): Removed. |
281 |
|
(ManakaiDOMAttrMap): New class. |
282 |
|
(ManakaiDOMAttrMapArray): New class. |
283 |
|
(namespaceURI): Bug to return a string representation |
284 |
|
of a reference to the namespace URI string is fixed. |
285 |
|
(selectAttrNodeObject, selectAttrNodeObjectNodeNS): Reimplemented. |
286 |
|
(removeAttribute, removeAttributeNS): DTD default attributes |
287 |
|
are supported. Don't throw |NO_MODIFICATION_ALLOWED_ERR| |
288 |
|
if there is no attribute node. |
289 |
|
(createElement, createElementNS): DTD default attributes are supported. |
290 |
|
(setAttributeNode): Reimplemented. |
291 |
|
|
292 |
|
2006-01-27 Wakaba <wakaba@suika.fam.cx> |
293 |
|
|
294 |
|
* DOMCore.dis (ManakaiDOMDTDTypeInfo): New class. |
295 |
|
|
296 |
|
* Tree.dis (STORESIZE): Index bound bug fixed. |
297 |
|
(Attr.value): Redefined to consist with |AttributeDefinition.nodeValue|. |
298 |
|
(schemaTypeInfo): Implemented for XML DTD. |
299 |
|
(isId): Returns |true| if [attribute type] is |ID|. |
300 |
|
(setAttribute, setAttributeNS): Sets [attribute type] |
301 |
|
of the newly created |Attr| node (if any) when attribute |
302 |
|
definition is available. |
303 |
|
(doctype, documentElement): Reimplemented with tests. |
304 |
|
|
305 |
|
* XMLParser.dis: Sets [attribute type] information |
306 |
|
to created |Attr| nodes. Normalize namespace URIs |
307 |
|
when such information are available (unlikely but legal). |
308 |
|
(_HexadecimalCharacterReference): Number to character |
309 |
|
convertion bug fixed. |
310 |
|
(_DocumentTypeDeclaration): Sets |schema-type| |
311 |
|
configuration parameter to XML DTD URI. |
312 |
|
|
313 |
|
2006-01-26 Wakaba <wakaba@suika.fam.cx> |
314 |
|
|
315 |
|
* XMLParser.dis (_AttlistDeclaration): Now it can generate |
316 |
|
attribute definition nodes. |
317 |
|
|
318 |
|
* XDoctype.dis: |UNKNOWN_ATTR| is renamed as |NO_TYPE_ATTR| |
319 |
|
and another |UNKNOWN_ATTR| constant is introduced |
320 |
|
for consistency with XML Infoset. |
321 |
|
|
322 |
|
* DOMCore.dis (TypeInfo): Documentation updated. |
323 |
|
|
324 |
|
2006-01-26 Wakaba <wakaba@suika.fam.cx> |
325 |
|
|
326 |
|
* XDoctype.dis: A bug in test code fixed. |
327 |
|
|
328 |
|
* Tree.dis (NamedNodeMap): Element type or attribute |
329 |
|
definition named node maps now can be dereferenced |
330 |
|
as if they are array or hash references. |
331 |
|
(removeNamedItem, item, ___report_error): Implemented for element type |
332 |
|
or attribute definitions. |
333 |
|
(length): Tests added. |
334 |
|
(NamedNodeMapArray): New classes. |
335 |
|
|
336 |
|
2006-01-25 Wakaba <wakaba@suika.fam.cx> |
337 |
|
|
338 |
|
* XDoctype.dis (setElementTypeDefinitionNode, |
339 |
|
setAttributeDefinitionNode): Throws |c:INUSE_DEFINITION_ERR| |
340 |
|
if the new node is already used for another definition. |
341 |
|
(DocumentTypeDefinition, ElementTypeDefinition): Node |
342 |
|
property name was incorrect. |
343 |
|
(elementTypes, attributeDefinitions): Checks to |
344 |
|
ensure the collection is empty added. |
345 |
|
|
346 |
|
* Tree.dis: Property name typos fixed. |
347 |
|
(setNamedItem, setAttributeNode): Don't return any node |
348 |
|
if it replace itself. |
349 |
|
(c:userDeterminedId): Missing definition added. |
350 |
|
|
351 |
|
* DOMXML.dis (Notation): Missing property specification |
352 |
|
of|c:ownerDocument| as |mn:xrefnode0| is added. |
353 |
|
|
354 |
|
2006-01-23 Wakaba <wakaba@suika.fam.cx> |
355 |
|
|
356 |
|
* DOMCore.dis (Test): Missing argument added. |
357 |
|
(setNamedItem): If |DocumentType| with no |ownerDocument|, |
358 |
|
addition always fails with |WRONG_DOCUMENT_ERR|. Some |
359 |
|
error conditions were incorrect. |
360 |
|
|
361 |
|
* .cvsignore: Dummy files added. |
362 |
|
|
363 |
2006-01-22 Wakaba <wakaba@suika.fam.cx> |
2006-01-22 Wakaba <wakaba@suika.fam.cx> |
364 |
|
|
365 |
* DOMCore.dis (NO_NAMED_NODE_ERR, NO_NAMED_NODE_NS_ERR, |
* DOMCore.dis (NO_NAMED_NODE_ERR, NO_NAMED_NODE_NS_ERR, |