/[suikacvs]/messaging/manakai/lib/Message/DOM/ChangeLog
Suika

Diff of /messaging/manakai/lib/Message/DOM/ChangeLog

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

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

Legend:
Removed from v.1.98  
changed lines
  Added in v.1.128

admin@suikawiki.org
ViewVC Help
Powered by ViewVC 1.1.24