1 |
|
2006-03-10 Wakaba <wakaba@suika.fam.cx> |
2 |
|
|
3 |
|
* DOMCore.dis, DOMXML.dis, XDoctype.dis (manakaiAppendText): New |
4 |
|
method. |
5 |
|
|
6 |
|
* XMLParser.dis: Don't create adjacent text nodes. |
7 |
|
|
8 |
|
2006-03-09 Wakaba <wakaba@suika.fam.cx> |
9 |
|
|
10 |
|
* DOMCore.dis (HIERARCHY_DOCUMENT_FRAGMENT_ITSELF_ERR): New error. |
11 |
|
|
12 |
|
* DOMXML.dis (appendChild, insertBefore, replaceChild): Method |
13 |
|
implementations are added. |
14 |
|
|
15 |
|
* XDoctype.dis (appendChild, insertBefore, replaceChild): Method |
16 |
|
implementations are added. |
17 |
|
|
18 |
|
* Tree.dis (appendChild, insertBefore, replaceChild): Method |
19 |
|
implementations are added. |
20 |
|
(IFCls1Def, NodeTypeDef): Don't define |ManakaiDOM:ForClass| |
21 |
|
resources unless for |ManakaiDOM:ManakaiDOMLatest|. |
22 |
|
(cfg:strict-document-children): New configuration parameter. |
23 |
|
|
24 |
|
2006-03-08 Wakaba <wakaba@suika.fam.cx> |
25 |
|
|
26 |
|
* XDoctype.dis (replaceChild): Method implementations are added. |
27 |
|
|
28 |
|
* Tree.dis (replaceChild): Method implementations are added. |
29 |
|
|
30 |
|
* DOMXML.dis (replaceChild): Method implementations are added. |
31 |
|
|
32 |
|
2006-03-07 Wakaba <wakaba@suika.fam.cx> |
33 |
|
|
34 |
|
* Tree.dis (ForAppendChild, ForInsertBefore, ForReplaceChild): New |for| |
35 |
|
definitions. |
36 |
|
|
37 |
|
* XDoctype.dis (insertBefore): New method implementation. |
38 |
|
|
39 |
|
2006-03-06 Wakaba <wakaba@suika.fam.cx> |
40 |
|
|
41 |
|
* DOMXML.dis (insertBefore): Method implementations |
42 |
|
for |ProcessingInstruction| and |Notation| nodes are added. |
43 |
|
|
44 |
|
* Tree.dis (insertBefore): Method implementation |
45 |
|
for |CharacterData| nodes is added. |
46 |
|
|
47 |
|
* XDoctype.dis (insertBefore): Method implementation |
48 |
|
for |ElementTypeDefinition| nodes is added. |
49 |
|
|
50 |
|
2006-03-06 Wakaba <wakaba@suika.fam.cx> |
51 |
|
|
52 |
|
* XDoctype.dis (appendChild): New method implementation. |
53 |
|
|
54 |
|
2006-03-06 Wakaba <wakaba@suika.fam.cx> |
55 |
|
|
56 |
|
* DOMCore.dis (HIERARCHY_WRONG_DOCTYPE_ERR): New error. |
57 |
|
(REMOVE_DOCUMENT_ELEMENT_ERR): New error. |
58 |
|
(REMOVE_DOCUMENT_TYPE_ERR): New error. |
59 |
|
|
60 |
|
* DOMXML.dis (ManakaiDOMDocumentType): Removed. |
61 |
|
(ProcessingInstruction.appendChild, CDATASection.appendChild, |
62 |
|
Notation.appendChild): New method implementation. |
63 |
|
|
64 |
|
* Tree.dis (CharacterData.appendChild): New method implementation. |
65 |
|
|
66 |
|
* XDoctype.dis: Tests moved from |MDOM:DOMXML| module. |
67 |
|
|
68 |
|
2006-03-06 Wakaba <wakaba@suika.fam.cx> |
69 |
|
|
70 |
|
* DOMXML.dis (ManakaiDOMXMLIdAttr): New class. |
71 |
|
|
72 |
|
* Tree.dis (createAttribute, createAttributeNS, |
73 |
|
setAttribute, setAttributeNS): They now supports |
74 |
|
the |cfg:xml-id| configuration parameter. |
75 |
|
(cfg:xml-id): New configuration parameter. |
76 |
|
|
77 |
|
* XDoctype.dis (createAttributeDefinition): It now |
78 |
|
supports the |cfg:xml-id| configuration parameter. |
79 |
|
|
80 |
|
* XMLParser.dis (parse): It now supports |
81 |
|
the |cfg:xml-id| configuration parameter. |
82 |
|
|
83 |
|
2006-03-05 Wakaba <wakaba@suika.fam.cx> |
84 |
|
|
85 |
|
* XMLParser.dis (parse): Sets |Document.documentURI| |
86 |
|
and |Document.manakaiEntityBaseURI| attributes of the |
87 |
|
document created. |
88 |
|
(_ProcessingInstructionDTD): Sets the |manakaiBaseURI| |
89 |
|
property of the created node. |
90 |
|
(_SystemLiteral): Sets the |manakaiDeclarationBaseURI| |
91 |
|
of the created node. |
92 |
|
(ls-input-to-input-file.default): Sets the resolved |
93 |
|
system identifier to the |documentURI| attribute if available. |
94 |
|
Sets the |baseURI| attribute if available. |
95 |
|
|
96 |
|
2006-03-05 Wakaba <wakaba@suika.fam.cx> |
97 |
|
|
98 |
|
* XDoctype.dis (DocumentTypeDefinition.implementation): New attribute. |
99 |
|
(Node.baseURI): New attribute implementations. |
100 |
|
(declarationBaseURI): Setter is added. |
101 |
|
(manakaiDeclarationBaseURI): New attribute. |
102 |
|
|
103 |
|
* Tree.dis (Require): A reference to the |MURI:Generic| |
104 |
|
module is added. |
105 |
|
(Node.baseURI): The implementation is revised. |
106 |
|
(getNodeReference): Attribute node classes specialized |
107 |
|
to attribute names are supported. |
108 |
|
(contentBaseURI, htmlBaseURI): Removed. |
109 |
|
(manakaiEntityBaseURI): New attribute. |
110 |
|
(ManakaiDOMImplementationDocument): It now inherits |
111 |
|
the |urigen:URIImplementation| class. |
112 |
|
|
113 |
|
* DOMMain.dis (isRelativeDOMURI): The definition |
114 |
|
of the URI scheme is synced with |Message::URI::Generic|'s |
115 |
|
one. |
116 |
|
|
117 |
|
* DOMXML.dis (Require): A reference to |DISlib:DISMarkup| |
118 |
|
module is added. |
119 |
|
(DocumentType.implementation): New attribute. |
120 |
|
(Node.baseURI): Implementations are added. |
121 |
|
(manakaiDeclarationBaseURI): New attributes. |
122 |
|
(manakaiEntityBaseURI): New attributes. |
123 |
|
(manakaiEntityURI): New attribute. |
124 |
|
(manakaiExternal): New attribute. |
125 |
|
(manakaiBaseURI): New attribute. |
126 |
|
(ManakaiDOMXMLBaseAttr): New class. |
127 |
|
|
128 |
|
2006-02-26 Wakaba <wakaba@suika.fam.cx> |
129 |
|
|
130 |
|
* SimpleLS.dis (Require): Reference to the |MDOM:Tree| |
131 |
|
module was missing. |
132 |
|
|
133 |
|
* ManakaiDOMLS2003.dis: Some property names was incorrect. |
134 |
|
|
135 |
|
* Makefile (distclean): New rule. |
136 |
|
|
137 |
|
2006-02-26 Wakaba <wakaba@suika.fam.cx> |
138 |
|
|
139 |
|
* DOMLS.dis: Removed from the CVS repository, since |
140 |
|
it has been no longer required to make the |daf| system |
141 |
|
itself. |
142 |
|
|
143 |
|
2006-02-26 Wakaba <wakaba@suika.fam.cx> |
144 |
|
|
145 |
|
* Makefile: Revised for new |daf| database format. |
146 |
|
|
147 |
|
2006-02-25 Wakaba <wakaba@suika.fam.cx> |
148 |
|
|
149 |
|
* DOMFeature.dis (Require): Missing reference to |DISlib:Test| |
150 |
|
module is added. |
151 |
|
|
152 |
|
2006-02-22 Wakaba <wakaba@suika.fam.cx> |
153 |
|
|
154 |
|
* DOMLS.dis: Constants were typed as |dx:ErrorCode| |
155 |
|
by mistake. |
156 |
|
|
157 |
|
2006-02-18 Wakaba <wakaba@suika.fam.cx> |
158 |
|
|
159 |
|
* XMLParser.dis (ManakaiDOMXMLParser): Implements |DOMLS:ParseString10| |
160 |
|
feature. |
161 |
|
|
162 |
|
* DOMCore.dis (c:LSPARSER_NOT_FOUND_ERR): New exception type. |
163 |
|
|
164 |
|
* DOMLS.dis (DOMLS:ParseString): New (moved from |SimpleLS.dis|). |
165 |
|
(DOMImplementationLS.createLSParser): Implemented. |
166 |
|
(DOMImplementationLS.createLSInput): Revised. |
167 |
|
(LSInput): Note on relationship with |GenericLS| is added. |
168 |
|
|
169 |
|
* SimpleLS.dis (DOMLS:ParseString): Removed (moved to |SimpleLS.dis|). |
170 |
|
|
171 |
|
2006-02-17 Wakaba <wakaba@suika.fam.cx> |
172 |
|
|
173 |
|
* XMLParser.dis (domConfig): New |targetType| of |xp:ManakaiDOMXMLParser| |
174 |
|
is introduced. |
175 |
|
(async, busy): Implemented. |
176 |
|
(parseString): Removed. |
177 |
|
(parse, parseURI): Implemented. |
178 |
|
(xp:ls-input-to-input-file): New configuration parameter. |
179 |
|
(shiftChar): Gets character from current file handle |
180 |
|
rather than replacement text. Don't normalize |
181 |
|
line break characters for internal entities. Don't |
182 |
|
throw |xp:wf-legal-literal-character| error |
183 |
|
for |RestrictedChar| appearing in internal entities. |
184 |
|
(DISPerl:dpgDef): Call |close| for each entity filehandler. |
185 |
|
(_EntityDeclaration): Copy document URI and base URI |
186 |
|
to the entity's |$decl| object. |
187 |
|
(ParseError): New code fragment. |
188 |
|
(getCopyOfEntityState): Creates filehandle from replacement |
189 |
|
text. |
190 |
|
(xp-error-lines): Don't appends text if no replacement |
191 |
|
text is available. |
192 |
|
(error-handler): New configuration parameter application resource. |
193 |
|
(ManakaiDOMLSInputToInputFile): New class. |
194 |
|
(ManakaiDOMInputFile): New class. |
195 |
|
|
196 |
|
* Tree.dis (getNodeReference): A dereferencing was missing. |
197 |
|
|
198 |
|
* DOMLS.dis (DOMLS:busy, DOMLS:lsKey): New properties. |
199 |
|
|
200 |
|
2006-02-17 Wakaba <wakaba@suika.fam.cx> |
201 |
|
|
202 |
|
* XMLParser.dis: Default attribute are now namespace aware. |
203 |
|
(parseString): Don't output |Document| warnings |
204 |
|
during tree construction to standard error output. |
205 |
|
|
206 |
|
2006-02-16 Wakaba <wakaba@suika.fam.cx> |
207 |
|
|
208 |
|
* XMLParser.dis: Name check for XML 1.0, XML Namespace 1.0, and |
209 |
|
XML Namespace 1.1 is implemented. Namespace well-formedness |
210 |
|
error detection is implemented. Generates |Notation| nodes |
211 |
|
from notation declarations. |
212 |
|
(checkNCName, checkQName): New code fragments. |
213 |
|
|
214 |
|
* XDoctype.dis (DocumentXDoctype): Factory methods |
215 |
|
don't check |MDOMX:MDOM_BAD_NAME| if |Document.strictErrorChecking| |
216 |
|
is |false|. |
217 |
|
|
218 |
|
* DOMCore.dis (wf-invalid-character-in-node-name, |
219 |
|
wf-invalid-character): Removed (moved to |MDOM:Tree| module). |
220 |
|
|
221 |
|
* Tree.dis '(wf-invalid-character-in-node-name, |
222 |
|
wf-invalid-character): New errors (from |MDOM:DOMCore| module). |
223 |
|
(Attr.specified): Setter added. |
224 |
|
(cfg:dtd-default-attributes): New configuration parameter. |
225 |
|
(Document.createEntityReference): Don't check |MDOMX:MDOM_BAD_NAME| |
226 |
|
if |Document.strictErrorChecking| is |false|. |
227 |
|
|
228 |
|
2006-02-15 Wakaba <wakaba@suika.fam.cx> |
229 |
|
|
230 |
|
* XMLParser.dis: Set |allDeclarationsProcessed| |
231 |
|
attribute of the |Document| node. Don't process entity |
232 |
|
and attribute definition list declarations after |
233 |
|
unread parameter entity reference. Warns if an attribute definition is |
234 |
|
ignored (|xp:warning-attribute-definition-ignored|). Set |
235 |
|
flags whether predefined entities are declared or not. |
236 |
|
WFC error |xp:wf-pes-in-internal-subset| is implemented. |
237 |
|
|
238 |
|
2006-02-15 Wakaba <wakaba@suika.fam.cx> |
239 |
|
|
240 |
|
* XMLParser.dis: Issues |xp:error-internal-predefined-entity| error |
241 |
|
if a predefined entity declaration references an external entity. |
242 |
|
Issues |xp:error-malformed-predefined-entity| error if |
243 |
|
a predefined entity declaration defines different thing than |
244 |
|
one as in XML specification. |
245 |
|
Issies |xp:warning-entity-declaration-ignored| warning if |
246 |
|
more than one entity declarations for an entity is found. |
247 |
|
(WFErrDef): Now all well-formedness errors are marked |
248 |
|
as |SEVERITY_FATAL_ERROR|. |
249 |
|
|
250 |
|
* XDoctype.dis (DocumentXDoctype.createDocumentTypeDefinition): Creates |
251 |
|
predefined entity declarations. |
252 |
|
(DocumentXDoctype.createNotation): New method. |
253 |
|
(DocumentTypeDefinition.notations): New attribute. |
254 |
|
(DocumentTypeDefinition.getNotationNode): New method. |
255 |
|
(DocumentTypeDefinition.setNotationNode): New method. |
256 |
|
(newNotationForTest): New code fragment. |
257 |
|
|
258 |
|
* Tree.dis (ManakaiDOMXML:ManakaiDOMNotations): Removed. |
259 |
|
(c:ManakaiDOMNotationMap): New class. |
260 |
|
(c:ManakaiDOMNotationMapArray): New class. |
261 |
|
(Document.allDeclarationsProcessed): New attribute. |
262 |
|
|
263 |
|
* DOMXML.dis (DocumentType.notations): Implemented. |
264 |
|
(Notation): Revised. |
265 |
|
(Notation.ownerDocumentTypeDefinition): New attribute. |
266 |
|
|
267 |
|
2006-02-14 Wakaba <wakaba@suika.fam.cx> |
268 |
|
|
269 |
|
* XMLParser.dis: The |xp:wf-parsed-entity| and the |xp:wf-no-recursion| |
270 |
|
WFC errors are implemented. Reports a |xp:wf-syntax-error| |
271 |
|
if a parameter entity declaration contains |NDATA| keyword. |
272 |
|
(setEmptyEntityState): Set |name| attribute. |
273 |
|
|
274 |
|
* Tree.dis (createEntityReference): Don't enter into inifinite |
275 |
|
loop even if entity replacement tree contains recursive |
276 |
|
reference directly or indirectly. |
277 |
|
|
278 |
|
2006-02-13 Wakaba <wakaba@suika.fam.cx> |
279 |
|
|
280 |
|
* XMLParser.dis (_GeneralEntityReferenceAE): The |xp:wf-entity-declared| |
281 |
|
WFC error is implemented. |
282 |
|
|
283 |
|
2006-02-13 Wakaba <wakaba@suika.fam.cx> |
284 |
|
|
285 |
|
* XMLParser.dis: Set |cfg:clone-entity-reference-subtree| |
286 |
|
configuration parameter |true| during tree construction |
287 |
|
to ensure default attribute value is cloned as is |
288 |
|
including entity reference subtree. |
289 |
|
|
290 |
|
* Tree.dis (cfg:clone-entity-reference-subtree): New configuration |
291 |
|
parameter. |
292 |
|
(Node.cloneNode): The |cfg:clone-entity-reference-subtree| |
293 |
|
configuration parameter support is added. |
294 |
|
|
295 |
|
2006-02-12 Wakaba <wakaba@suika.fam.cx> |
296 |
|
|
297 |
|
* XMLParser.dis (parseString): General |Entity| replacement |
298 |
|
tree is not constructed because of a typo. Clears |EntityReference| |
299 |
|
content before constructing |Entity| replacement tree. |
300 |
|
The |xp:wf-entity-declared| well-formedness constraint |
301 |
|
for entity references in attribute value literal is implemented. |
302 |
|
|
303 |
|
2006-02-11 Wakaba <wakaba@suika.fam.cx> |
304 |
|
|
305 |
|
* XMLParser.dis: |xp:wf-entity-declared| well-formedness |
306 |
|
constaraint for entity references that appear in |
307 |
|
content of elements is implemented. Set |EntityReference.isExpanded| |
308 |
|
attribute. |
309 |
|
(getEmptyEntityState): New code. |
310 |
|
|
311 |
|
* XDoctype.dis (DocumentTypeDefinition.nodeType): Duplicate |
312 |
|
definition is removed. |
313 |
|
|
314 |
|
* DOMXML.dis (Entity.isExternallyDeclared): New attribute. |
315 |
|
(EntityReference.isExpanded): Setter is added. |
316 |
|
|
317 |
|
2006-02-11 Wakaba <wakaba@suika.fam.cx> |
318 |
|
|
319 |
|
* XMLParser.dis: |xp:wf-no-lt-in-attribute-values| |
320 |
|
and |xp:wf-no-external-entity-references| well-formedness |
321 |
|
constraints are implemented. |
322 |
|
|
323 |
|
2006-02-11 Wakaba <wakaba@suika.fam.cx> |
324 |
|
|
325 |
|
* XMLParser.dis ($self->{has_error}): Removed. |
326 |
|
(parseString): Don't throw |DOMLS:PARSE_ERR| if all fatal |
327 |
|
errors (including well-formedness constraint errors) are |
328 |
|
traped by the error handler. |
329 |
|
(PubidLiteral, SystemLiteral): Set |publicId| or |systemId| |
330 |
|
attribute of the node. Reports an error if |publidLiteral| |
331 |
|
contains a non-|pubidChar|. |
332 |
|
|
333 |
|
* XDoctype.dis (d:DeclFeature30): New feature (|fe:XDoctypeDeclaration| |
334 |
|
version |3.0|). |
335 |
|
(ManakaiDOMDocumentTypeDefinition): The class no longer |
336 |
|
inherits |x:ManakaiDOMDocumentType| class. Instead, |
337 |
|
it inherits |d:ManakaiDOMDocumentTypeDeclaration| |
338 |
|
and |t:ManakaiDOMNOde| classes. It still implements |x:DocumentType| |
339 |
|
interface (except unimplemented |notations| and |internalSubset| |
340 |
|
attributes). |
341 |
|
(ManakaiDOMDocumentTypeDefinition.entities): New attribute |
342 |
|
for compatibility with |x:DocumentType| interface. |
343 |
|
(ManakaiDOMDocumentTypeDefinition.lookupPrefix): New method. |
344 |
|
(ManakaiDOMDocumentTypeDefinition.getFeature): New method. |
345 |
|
(ManakaiDOMDocumentTypeDefinition.nodeType, |
346 |
|
ManakaiDOMDocumentTypeDefinition.textContent): New attributes. |
347 |
|
(DocumentTypeDeclaration): New interface. |
348 |
|
|
349 |
|
* Tree.dis (Node/@f:implements): Typos fixed. |
350 |
|
(Node.MUErrorHandler): Missing |last A| statement is added. |
351 |
|
(createDocumentType): Throws an exception if |qualifiedName| |
352 |
|
is illegal. Calls |DocumentTypeDefinition.newObject| |
353 |
|
instead of obsolete |DocumentType.newObject|. |
354 |
|
|
355 |
|
* DOMXML.dis (DocumentType.name, DocumentType.entities, |
356 |
|
DocumentType.publicId, DocumentType.systemId, |
357 |
|
DocumentType.lookupPrefix, DocumentType.getFeature): Now they are defined |
358 |
|
as clones of similar attributes or methods |
359 |
|
in |MDOM:XDoctype| module. |
360 |
|
(DocumentType.newObject): Removed (use |DocumentTypeDefinition.newObject| |
361 |
|
instead). |
362 |
|
(DocumentType.childNodes): Removed (|Node.childNodes| definition |
363 |
|
is used). |
364 |
|
|
365 |
|
2006-02-10 Wakaba <wakaba@suika.fam.cx> |
366 |
|
|
367 |
|
* XMLParser.dis (xp:fatal-xml11-end-of-line-in-xml-declaration): New |
368 |
|
fatal error. |
369 |
|
|
370 |
|
2006-02-09 Wakaba <wakaba@suika.fam.cx> |
371 |
|
|
372 |
|
* XMLParser.dis (CommentDeclaration): |STRING| is now |
373 |
|
defined as a |?default-token|. |
374 |
|
(XMLTests): Tests for |Char - RestrictedChar| matchness, |
375 |
|
comment declarations, cdata sections, and |MSE| in |content| |
376 |
|
added. |
377 |
|
(XMLTests/PerlDef): Bug fixed: |pop| -> |shift|. |
378 |
|
(get-location-from-token): |$token->{location_d}| |
379 |
|
for |?default-token| column counting support added. |
380 |
|
|
381 |
|
* DOMCore.dis (c:erred): It is now a |DISCore:OrderedList| property. |
382 |
|
|
383 |
|
2006-02-08 Wakaba <wakaba@suika.fam.cx> |
384 |
|
|
385 |
|
* Tree.dis (createProcessingInstruction): Don't |
386 |
|
throw |MDOMX:MDOM_BAD_NAME| exception if |Document.strictErrorChecking| |
387 |
|
is |false|. |
388 |
|
|
389 |
|
* XMLParser.dis (parseString): Initializes |$self->{location}|. |
390 |
|
It enables improved error position report. |
391 |
|
(XDO): It now includes |S+| following target name |xml| as |
392 |
|
part of the token. (PI with target starting with |xml| |
393 |
|
was unable to be placed at the beginning of the document entity.) |
394 |
|
(_ProcessingInstruction, _ProcessingInstructionDTD): Creates |
395 |
|
a processing instruction node with |#INVALID| node name |
396 |
|
if target name is not given and recovered from the error. |
397 |
|
(S): Variable |$s| added. |
398 |
|
(XMLTests): Tests for XML declarations and processing |
399 |
|
instructions are added. Prints error type name if unexpected |
400 |
|
error with severity of error or fatal error has been reported. |
401 |
|
Catch unexpected exceptions thrown in parser (different |
402 |
|
from |LSException|), prints its message, and invoke |$test->not_ok| |
403 |
|
for the ease of testing. |
404 |
|
(xp:get-location-from-token): Location values now take |$self->{char}| |
405 |
|
stack into acount. |
406 |
|
|
407 |
|
2006-02-08 Wakaba <wakaba@suika.fam.cx> |
408 |
|
|
409 |
|
* XMLParser.dis (shiftChar): Line and column number counting |
410 |
|
is fixed. Although the DOM Level 3 Core specification |
411 |
|
is unclear about whether the first number is zero or one, |
412 |
|
in most programs the first line is "one" and |
413 |
|
the first column is "one", manakai follows the practice. |
414 |
|
(_XMLDeclaration): Don't set |xmlStandalone| value |
415 |
|
if |standalone| pseudo-attribute value is |no|. XML declaration |
416 |
|
tests (successful cases) added. |
417 |
|
(xp:get-location-from-token): Sets |lineNumber| and |columnNumber| |
418 |
|
properties. |
419 |
|
|
420 |
|
2006-02-08 Wakaba <wakaba@suika.fam.cx> |
421 |
|
|
422 |
|
* XMLParser.dis (XMLTests): Tests for |c:erred| is supported. |
423 |
|
|
424 |
|
2006-02-06 Wakaba <wakaba@suika.fam.cx> |
425 |
|
|
426 |
|
* DOMCore.dis (c:erred): New property. |
427 |
|
(c:DOMErrorType): It should have been a subset |
428 |
|
of |ecore:AnyErrorCode|. |
429 |
|
|
430 |
|
* XMLParser.dis (XMLTests): Empty input tests added. |
431 |
|
|
432 |
|
2006-01-30 Wakaba <wakaba@suika.fam.cx> |
433 |
|
|
434 |
|
* XDoctype.dis (d:Feature): New canonical feature |
435 |
|
name |fe:XDoctype| is added. |
436 |
|
|
437 |
|
* XMLParser.dis: Predefined general entity references |
438 |
|
are implemented. Creates |Entity| nodes from general entities |
439 |
|
declared in internal subset. |Entity| nodes created from internal |
440 |
|
general parsed entities now have replacement tree. |
441 |
|
Sets |cfg:entity-reference-read-only| flag off during |
442 |
|
the tree generation. Some parsing rules use |$self->{doc}| |
443 |
|
rather than |$doc| parameter. Similarly, |$self->{docx}| (document |
444 |
|
node with |fe:XDoctype| feature) and |$self->{dtdef}| are |
445 |
|
introduced. General entity references in attribute value literal |
446 |
|
are supported. |
447 |
|
|
448 |
|
2006-01-29 Wakaba <wakaba@suika.fam.cx> |
449 |
|
|
450 |
|
* Tree.dis (ManakaiDOM:entity-reference-read-only): Configuration |
451 |
|
parameter name changed to |cfg:entity-reference-read-only|. |
452 |
|
(createEntityReference): Set |c:read-only| flag of |
453 |
|
the created entity reference, too. |
454 |
|
|
455 |
|
* DOMLS.dis (min): New canonical feature name |fe:Min| added. |
456 |
|
|
457 |
|
* GenericLS.dis: Don't refer |DOMMain:DOMString|; use |f:MIString| |
458 |
|
from |DOMFeature| module instead. Use |idl:Object| |
459 |
|
instead of |DOMMain:DOMObject| as well. |
460 |
|
(Generic): New canonical feature name |fe:GenericLS| added. |
461 |
|
(DOMLS:ParserRole, DOMLS:SerializerRole): Their |
462 |
|
canonical name changed to |gls:ParserRole| and |gls:SerializerRole| |
463 |
|
respectively. |
464 |
|
|
465 |
|
* DOMXML.dis (entities, notations): Perl code removed. |
466 |
|
It will be reimplemented using |DocumentTypeDefinition| |
467 |
|
class from |XDoctype| module. |
468 |
|
|
469 |
|
* DOMFeature.dis, DOMCore.dis, DOMMain.dis, DOMXML.dis, |
470 |
|
Tree.dis, DOMLS.dis, GenericLS.dis, ManakaiDOMLS2003.dis, |
471 |
|
SimpleLS.dis: Cleaned up unused definitions. |
472 |
|
|
473 |
|
* DOMCore.dis, DOMLS.dis (CParam): Definitions |
474 |
|
for LS module moved from |DOMCore| module to |DOMLS| module. |
475 |
|
This change makes |DOMCore| to |DOMLS| dependency removed. |
476 |
|
|
477 |
|
* .cvsignore (.html.pm, .ls.pm): Removed. |
478 |
|
|
479 |
|
* Makefile (.html.pm, .ls.pm): Removed. |
480 |
|
(feature.dae): Include |GenericLS| module. |
481 |
|
(core.dae): Don't include |DOMLS| and |GenericLS| module. |
482 |
|
(ls.dae): Include |DOMLS| module. |
483 |
|
|
484 |
|
2006-01-29 Wakaba <wakaba@suika.fam.cx> |
485 |
|
|
486 |
|
* XMLParser.dis: Tests on default attributes and their |specified| |
487 |
|
attribute are added. |
488 |
|
|
489 |
|
* XDoctype.dis (createGeneralEntity): New method. |
490 |
|
(generalEntities): New attribute. |
491 |
|
(getGeneralEntityNode, setGeneralEntityNode): New methods. |
492 |
|
|
493 |
|
* Tree.dis (ManakaiDOMEntities): Removed. |
494 |
|
(ManakaiDOMEntityMap): New class. |
495 |
|
(ManakaiDOM:entity-reference-read-only): New configuration parameter. |
496 |
|
(createEntityReference): If there is a corresponding |Entity| |
497 |
|
node in the document type definition, then copies its |
498 |
|
subtree. |
499 |
|
|
500 |
|
* DOMXML.dis (Entity): Documentation updated. |
501 |
|
(publicId, systemId, notationName, xmlEncoding, |
502 |
|
xmlVersion): These attributes are now settable |
503 |
|
if |ManakaiDOM:ManakaiDOMLatest| mode. |
504 |
|
(hasReplacementTree): New attribute for |ManakaiDOM:ManakaiDOMLatest| |
505 |
|
mode. |
506 |
|
(ownerDocumentTypeDefinition): New attribute |
507 |
|
for |ManakaiDOM:ManakaiDOMLatest| mode. |
508 |
|
(isExpanded): New attribute for |ManakaiDOM:ManakaiDOMLatest| mode. |
509 |
|
|
510 |
|
2006-01-28 Wakaba <wakaba@suika.fam.cx> |
511 |
|
|
512 |
|
* DOMCore.dis (ErrDef): Missing |ecore:textFormatter| property added. |
513 |
|
|
514 |
|
* DOMMain.dis (ErrDef): Missing |ecore:textFormatter| property added. |
515 |
|
|
516 |
|
* Tree.dis (ErrDef): Missing |ecore:textFormatter| property added. |
517 |
|
(ManakaiDOMAttributes): Removed. |
518 |
|
(ManakaiDOMAttrMap): New class. |
519 |
|
(ManakaiDOMAttrMapArray): New class. |
520 |
|
(namespaceURI): Bug to return a string representation |
521 |
|
of a reference to the namespace URI string is fixed. |
522 |
|
(selectAttrNodeObject, selectAttrNodeObjectNodeNS): Reimplemented. |
523 |
|
(removeAttribute, removeAttributeNS): DTD default attributes |
524 |
|
are supported. Don't throw |NO_MODIFICATION_ALLOWED_ERR| |
525 |
|
if there is no attribute node. |
526 |
|
(createElement, createElementNS): DTD default attributes are supported. |
527 |
|
(setAttributeNode): Reimplemented. |
528 |
|
|
529 |
|
2006-01-27 Wakaba <wakaba@suika.fam.cx> |
530 |
|
|
531 |
|
* DOMCore.dis (ManakaiDOMDTDTypeInfo): New class. |
532 |
|
|
533 |
|
* Tree.dis (STORESIZE): Index bound bug fixed. |
534 |
|
(Attr.value): Redefined to consist with |AttributeDefinition.nodeValue|. |
535 |
|
(schemaTypeInfo): Implemented for XML DTD. |
536 |
|
(isId): Returns |true| if [attribute type] is |ID|. |
537 |
|
(setAttribute, setAttributeNS): Sets [attribute type] |
538 |
|
of the newly created |Attr| node (if any) when attribute |
539 |
|
definition is available. |
540 |
|
(doctype, documentElement): Reimplemented with tests. |
541 |
|
|
542 |
|
* XMLParser.dis: Sets [attribute type] information |
543 |
|
to created |Attr| nodes. Normalize namespace URIs |
544 |
|
when such information are available (unlikely but legal). |
545 |
|
(_HexadecimalCharacterReference): Number to character |
546 |
|
convertion bug fixed. |
547 |
|
(_DocumentTypeDeclaration): Sets |schema-type| |
548 |
|
configuration parameter to XML DTD URI. |
549 |
|
|
550 |
|
2006-01-26 Wakaba <wakaba@suika.fam.cx> |
551 |
|
|
552 |
|
* XMLParser.dis (_AttlistDeclaration): Now it can generate |
553 |
|
attribute definition nodes. |
554 |
|
|
555 |
|
* XDoctype.dis: |UNKNOWN_ATTR| is renamed as |NO_TYPE_ATTR| |
556 |
|
and another |UNKNOWN_ATTR| constant is introduced |
557 |
|
for consistency with XML Infoset. |
558 |
|
|
559 |
|
* DOMCore.dis (TypeInfo): Documentation updated. |
560 |
|
|
561 |
|
2006-01-26 Wakaba <wakaba@suika.fam.cx> |
562 |
|
|
563 |
|
* XDoctype.dis: A bug in test code fixed. |
564 |
|
|
565 |
|
* Tree.dis (NamedNodeMap): Element type or attribute |
566 |
|
definition named node maps now can be dereferenced |
567 |
|
as if they are array or hash references. |
568 |
|
(removeNamedItem, item, ___report_error): Implemented for element type |
569 |
|
or attribute definitions. |
570 |
|
(length): Tests added. |
571 |
|
(NamedNodeMapArray): New classes. |
572 |
|
|
573 |
|
2006-01-25 Wakaba <wakaba@suika.fam.cx> |
574 |
|
|
575 |
|
* XDoctype.dis (setElementTypeDefinitionNode, |
576 |
|
setAttributeDefinitionNode): Throws |c:INUSE_DEFINITION_ERR| |
577 |
|
if the new node is already used for another definition. |
578 |
|
(DocumentTypeDefinition, ElementTypeDefinition): Node |
579 |
|
property name was incorrect. |
580 |
|
(elementTypes, attributeDefinitions): Checks to |
581 |
|
ensure the collection is empty added. |
582 |
|
|
583 |
|
* Tree.dis: Property name typos fixed. |
584 |
|
(setNamedItem, setAttributeNode): Don't return any node |
585 |
|
if it replace itself. |
586 |
|
(c:userDeterminedId): Missing definition added. |
587 |
|
|
588 |
|
* DOMXML.dis (Notation): Missing property specification |
589 |
|
of|c:ownerDocument| as |mn:xrefnode0| is added. |
590 |
|
|
591 |
|
2006-01-23 Wakaba <wakaba@suika.fam.cx> |
592 |
|
|
593 |
|
* DOMCore.dis (Test): Missing argument added. |
594 |
|
(setNamedItem): If |DocumentType| with no |ownerDocument|, |
595 |
|
addition always fails with |WRONG_DOCUMENT_ERR|. Some |
596 |
|
error conditions were incorrect. |
597 |
|
|
598 |
|
* .cvsignore: Dummy files added. |
599 |
|
|
600 |
|
2006-01-22 Wakaba <wakaba@suika.fam.cx> |
601 |
|
|
602 |
|
* DOMCore.dis (NO_NAMED_NODE_ERR, NO_NAMED_NODE_NS_ERR, |
603 |
|
INUSE_DEFINITION_ERR, NO_NS_NAMEDNODEMAP_ERR): New error subtypes. |
604 |
|
|
605 |
|
* DOMMain.dis (ensureXMLName): Checks definesness of |$XMLVERSION| |
606 |
|
to avoid uninitialized value warning. |
607 |
|
|
608 |
|
* Tree.dis (ManakaiDOMElementTypeDefMap, ManakaiDOMAttrDefMap): New |
609 |
|
classes (work in progress). |
610 |
|
|
611 |
|
* XDoctype.dis (elementTypes, attributeDefinitions): New attributes. |
612 |
|
|
613 |
|
2006-01-22 Wakaba <wakaba@suika.fam.cx> |
614 |
|
|
615 |
|
* Tree.dis (getAttribute): Returns |null| if there |
616 |
|
is no attribute in |ManakaiDOM:DOMLatest| for compatibility |
617 |
|
with Web browser implementations. |
618 |
|
(getAttributeNS): It returned |null| if there |
619 |
|
is no attribute in any |For| unintentionally. It now |
620 |
|
returns an empty string in DOM levels less than or equals |
621 |
|
to three. |
622 |
|
|
623 |
|
* XMLParser.dis (shiftChar): Fixed not to be warned as |
624 |
|
uninitialized value or substring out of range. |
625 |
|
|
626 |
|
2006-01-21 Wakaba <wakaba@suika.fam.cx> |
627 |
|
|
628 |
|
* DOMXML.dis (DocumentType.childNodes): Removed |
629 |
|
from |ManakaiDOM:ManakaiDOMLatest| variant. |
630 |
|
|
631 |
|
* XMLParser.dis: Parsing of general internal entities implemented. |
632 |
|
(_DocumentTypeDeclaration): Appends a document type definition |
633 |
|
node to the document. |
634 |
|
(_ProcessingInstructionDTD): Appends a processing |
635 |
|
instruction node to the document type definition. |
636 |
|
(Element_): Document element could not be an |EmptyElemTag|. |
637 |
|
|
638 |
|
2006-01-21 Wakaba <wakaba@suika.fam.cx> |
639 |
|
|
640 |
|
* DOMFeature.dis (featuresParamToFeaturesHash): New block |
641 |
|
code (seprated from |InputProcessor|). Now |
642 |
|
a |features| parameter's version can be specified by |
643 |
|
an array reference that contains a set of version |
644 |
|
numbers. A test added. |
645 |
|
|
646 |
|
* XMLParser.dis: A test added. |
647 |
|
|
648 |
|
2006-01-07 Wakaba <wakaba@suika.fam.cx> |
649 |
|
|
650 |
|
* DOMCore.dis (Test): Don't invoke |DESTROY| method |
651 |
|
because it does not work with dummy object used in the test code. |
652 |
|
|
653 |
|
2006-01-07 Wakaba <wakaba@suika.fam.cx> |
654 |
|
|
655 |
|
* DOMMain.dis (checkXMLNamesQName): Checks whether |
656 |
|
namespace URI is defined for not being warned. |
657 |
|
|
658 |
|
* XDoctype.dis: New module. |
659 |
|
|
660 |
|
* DOMCore.dis (DOMStringList): Test added. |
661 |
|
|
662 |
|
* Makefile: |XDoctype.pm| added. |
663 |
|
|
664 |
|
* Tree.dis (Require): Requires |XDoctype.dis|. |
665 |
|
(ManakaiDOMNodeObjectNode.eq): Added. |
666 |
|
(Test): |DOMError.location| must return a |DOMLocator| |
667 |
|
object (it was incorrectly tested to return |null|). |
668 |
|
(EmptyNodeList.DESTROY): Removed. |
669 |
|
|
670 |
|
2006-01-04 Wakaba <wakaba@suika.fam.cx> |
671 |
|
|
672 |
|
* Tree.dis (NodeType): |ELEMENT_TYPE_DEFINITION_NODE| and |
673 |
|
|ATTRIBUTE_DEFINITION_NODE| node types added. |
674 |
|
(appendChild, insertBefore, replaceChild): New |
675 |
|
two node types added and processing instruction nodes |
676 |
|
as document type definition node child is allowed |
677 |
|
in |ManakaiDOM:ManakaiDOMLatest| mode. |
678 |
|
(getNodeReference): New |interface| parameter |
679 |
|
to filter classes by interface is added. |
680 |
|
(ElementTypeDefinitionRole): New role. |
681 |
|
(AttributeDefinitionRole): New role. |
682 |
|
|
683 |
|
2006-01-02 Wakaba <wakaba@suika.fam.cx> |
684 |
|
|
685 |
|
* DOMCore.dis (DOMStringList): Reimplemented as tied array. |
686 |
|
|
687 |
|
2005-12-31 Wakaba <wakaba@suika.fam.cx> |
688 |
|
|
689 |
|
* DOMCore.dis (DOMError.location): Returns an empty |DOMLocator| |
690 |
|
if it is not provided. |
691 |
|
|
692 |
|
* XMLParser.dis: Parsing methods to skip document |
693 |
|
type declaration is added. |
694 |
|
|
695 |
|
2005-12-29 Wakaba <wakaba@suika.fam.cx> |
696 |
|
|
697 |
|
* XMLParser.dis (shiftChar): Checks characters are legal |
698 |
|
or not. Normalize end-of-lines. |
699 |
|
(rule _XMLDeclaration_): Implemented. |
700 |
|
(WFErrDef): Well-formedness error |wf-syntax-error|, |
701 |
|
|wf-pi-target-is-xml|, |wf-no-end-tag|, |
702 |
|
|wf-unsupported-xml-version|, |wf-malformed-enc-name|, |
703 |
|
|wf-malformed-xml-standalone|, |wf-legal-literal-character|, |
704 |
|
|wf-element-type-match|, |wf-unique-att-spec|, |
705 |
|
|wf-legal-character| added. |
706 |
|
(%character-code-point): New formatter rule. |
707 |
|
|
708 |
|
* Tree.dis (Document.xmlEncoding): It is now read-write attribute. |
709 |
|
|
710 |
|
* DOMCore.dis (DOMError.stringify): Added. |
711 |
|
(error-handler.default): Returns |false| (don't continue) |
712 |
|
when the error severity is |SEVERITY_FATAL_ERROR|. |
713 |
|
|
714 |
|
2005-12-28 Wakaba <wakaba@suika.fam.cx> |
715 |
|
|
716 |
|
* XMLParser.dis (DocumentEntity): Typos fixed. |
717 |
|
(|lexmode|s): New |?default-token| statements are used |
718 |
|
so that tokenizer description has been simplified |
719 |
|
and CDATA sections now can be parsed. |
720 |
|
|
721 |
|
2005-12-28 Wakaba <wakaba@suika.fam.cx> |
722 |
|
|
723 |
|
* XMLParser.dis: Some modifications made. |
724 |
|
|
725 |
|
2005-12-27 Wakaba <wakaba@suika.fam.cx> |
726 |
|
|
727 |
|
* DOMLS.dis (PARSE_ERR, SERIALIZE_ERR): They are now a |
728 |
|
global named resource. |
729 |
|
|
730 |
|
* Makefile: Rules to make |XMLParser.pm| is added. |
731 |
|
|
732 |
|
* XMLParser.dis: New file. |
733 |
|
|
734 |
|
2005-12-24 Wakaba <wakaba@suika.fam.cx> |
735 |
|
|
736 |
|
* DOMCore.dis (ManakaiDOMError._FORMATTER_PACKAGE_): Error |
737 |
|
message formatter can now vary by error types. |
738 |
|
(DOMLocator.utf32Offset): New (manakai extended) attribute. |
739 |
|
|
740 |
|
2005-12-23 Wakaba <wakaba@suika.fam.cx> |
741 |
|
|
742 |
|
* DOMCore.dis (DOMLocator): Implemented. |
743 |
|
|
744 |
|
2005-12-21 Wakaba <wakaba@suika.fam.cx> |
745 |
|
|
746 |
|
* DOMCore.dis (DOMConfigurationParameterApplication, |
747 |
|
domConfigurationParameter): New resources. |
748 |
|
|
749 |
|
2005-11-25 Wakaba <wakaba@suika.fam.cx> |
750 |
|
|
751 |
|
* Tree.dis (NodeList.___report_error, NamedNodeMap.___report_error): |
752 |
|
New methods. |
753 |
|
|
754 |
|
2005-11-24 Wakaba <wakaba@suika.fam.cx> |
755 |
|
|
756 |
|
* DOMMain.dis, DOMLS.dis, DOMXML.dis, Tree.dis: Old |__WARNING__| |
757 |
|
blocks are replaced by |DOMError|-based |__DOMCore:ERROR__| blocks. |
758 |
|
|
759 |
|
* DOMMain.dis (___report_error): Throws the error unkess |
760 |
|
it is a |DOMCore:DOMError| object. |
761 |
|
|
762 |
|
2005-11-24 Wakaba <wakaba@suika.fam.cx> |
763 |
|
|
764 |
|
* DOMCore.dis (severity, type): Getters return value from |
765 |
|
the definition of the current error (i.e. |-def| hash). |
766 |
|
(___error_def): New method. |
767 |
|
(errorType): |dis:dataType| changed to |DISCore:TFQNames| |
768 |
|
to ease natural reference to constant value. |
769 |
|
(error-handler.default): Prints the error message by |warn|. |
770 |
|
|
771 |
|
* Tree.dis (nodeValue.set): Reimplemented so that it |
772 |
|
warns as setting has no effect. |
773 |
|
(___report_error): New method. (It had been only implemented |
774 |
|
in superclass.) |
775 |
|
(setting-node-value-no-effect): New error type. |
776 |
|
|
777 |
2005-11-23 Wakaba <wakaba@suika.fam.cx> |
2005-11-23 Wakaba <wakaba@suika.fam.cx> |
778 |
|
|
779 |
* DOMCore.dis: Error codes added. |
* DOMCore.dis: Error codes added. |