1 |
|
2006-02-10 Wakaba <wakaba@suika.fam.cx> |
2 |
|
|
3 |
|
* XMLParser.dis (xp:fatal-xml11-end-of-line-in-xml-declaration): New |
4 |
|
fatal error. |
5 |
|
|
6 |
|
2006-02-09 Wakaba <wakaba@suika.fam.cx> |
7 |
|
|
8 |
|
* XMLParser.dis (CommentDeclaration): |STRING| is now |
9 |
|
defined as a |?default-token|. |
10 |
|
(XMLTests): Tests for |Char - RestrictedChar| matchness, |
11 |
|
comment declarations, cdata sections, and |MSE| in |content| |
12 |
|
added. |
13 |
|
(XMLTests/PerlDef): Bug fixed: |pop| -> |shift|. |
14 |
|
(get-location-from-token): |$token->{location_d}| |
15 |
|
for |?default-token| column counting support added. |
16 |
|
|
17 |
|
* DOMCore.dis (c:erred): It is now a |DISCore:OrderedList| property. |
18 |
|
|
19 |
|
2006-02-08 Wakaba <wakaba@suika.fam.cx> |
20 |
|
|
21 |
|
* Tree.dis (createProcessingInstruction): Don't |
22 |
|
throw |MDOMX:MDOM_BAD_NAME| exception if |Document.strictErrorChecking| |
23 |
|
is |false|. |
24 |
|
|
25 |
|
* XMLParser.dis (parseString): Initializes |$self->{location}|. |
26 |
|
It enables improved error position report. |
27 |
|
(XDO): It now includes |S+| following target name |xml| as |
28 |
|
part of the token. (PI with target starting with |xml| |
29 |
|
was unable to be placed at the beginning of the document entity.) |
30 |
|
(_ProcessingInstruction, _ProcessingInstructionDTD): Creates |
31 |
|
a processing instruction node with |#INVALID| node name |
32 |
|
if target name is not given and recovered from the error. |
33 |
|
(S): Variable |$s| added. |
34 |
|
(XMLTests): Tests for XML declarations and processing |
35 |
|
instructions are added. Prints error type name if unexpected |
36 |
|
error with severity of error or fatal error has been reported. |
37 |
|
Catch unexpected exceptions thrown in parser (different |
38 |
|
from |LSException|), prints its message, and invoke |$test->not_ok| |
39 |
|
for the ease of testing. |
40 |
|
(xp:get-location-from-token): Location values now take |$self->{char}| |
41 |
|
stack into acount. |
42 |
|
|
43 |
|
2006-02-08 Wakaba <wakaba@suika.fam.cx> |
44 |
|
|
45 |
|
* XMLParser.dis (shiftChar): Line and column number counting |
46 |
|
is fixed. Although the DOM Level 3 Core specification |
47 |
|
is unclear about whether the first number is zero or one, |
48 |
|
in most programs the first line is "one" and |
49 |
|
the first column is "one", manakai follows the practice. |
50 |
|
(_XMLDeclaration): Don't set |xmlStandalone| value |
51 |
|
if |standalone| pseudo-attribute value is |no|. XML declaration |
52 |
|
tests (successful cases) added. |
53 |
|
(xp:get-location-from-token): Sets |lineNumber| and |columnNumber| |
54 |
|
properties. |
55 |
|
|
56 |
|
2006-02-08 Wakaba <wakaba@suika.fam.cx> |
57 |
|
|
58 |
|
* XMLParser.dis (XMLTests): Tests for |c:erred| is supported. |
59 |
|
|
60 |
|
2006-02-06 Wakaba <wakaba@suika.fam.cx> |
61 |
|
|
62 |
|
* DOMCore.dis (c:erred): New property. |
63 |
|
(c:DOMErrorType): It should have been a subset |
64 |
|
of |ecore:AnyErrorCode|. |
65 |
|
|
66 |
|
* XMLParser.dis (XMLTests): Empty input tests added. |
67 |
|
|
68 |
|
2006-01-30 Wakaba <wakaba@suika.fam.cx> |
69 |
|
|
70 |
|
* XDoctype.dis (d:Feature): New canonical feature |
71 |
|
name |fe:XDoctype| is added. |
72 |
|
|
73 |
|
* XMLParser.dis: Predefined general entity references |
74 |
|
are implemented. Creates |Entity| nodes from general entities |
75 |
|
declared in internal subset. |Entity| nodes created from internal |
76 |
|
general parsed entities now have replacement tree. |
77 |
|
Sets |cfg:entity-reference-read-only| flag off during |
78 |
|
the tree generation. Some parsing rules use |$self->{doc}| |
79 |
|
rather than |$doc| parameter. Similarly, |$self->{docx}| (document |
80 |
|
node with |fe:XDoctype| feature) and |$self->{dtdef}| are |
81 |
|
introduced. General entity references in attribute value literal |
82 |
|
are supported. |
83 |
|
|
84 |
|
2006-01-29 Wakaba <wakaba@suika.fam.cx> |
85 |
|
|
86 |
|
* Tree.dis (ManakaiDOM:entity-reference-read-only): Configuration |
87 |
|
parameter name changed to |cfg:entity-reference-read-only|. |
88 |
|
(createEntityReference): Set |c:read-only| flag of |
89 |
|
the created entity reference, too. |
90 |
|
|
91 |
|
* DOMLS.dis (min): New canonical feature name |fe:Min| added. |
92 |
|
|
93 |
|
* GenericLS.dis: Don't refer |DOMMain:DOMString|; use |f:MIString| |
94 |
|
from |DOMFeature| module instead. Use |idl:Object| |
95 |
|
instead of |DOMMain:DOMObject| as well. |
96 |
|
(Generic): New canonical feature name |fe:GenericLS| added. |
97 |
|
(DOMLS:ParserRole, DOMLS:SerializerRole): Their |
98 |
|
canonical name changed to |gls:ParserRole| and |gls:SerializerRole| |
99 |
|
respectively. |
100 |
|
|
101 |
|
* DOMXML.dis (entities, notations): Perl code removed. |
102 |
|
It will be reimplemented using |DocumentTypeDefinition| |
103 |
|
class from |XDoctype| module. |
104 |
|
|
105 |
|
* DOMFeature.dis, DOMCore.dis, DOMMain.dis, DOMXML.dis, |
106 |
|
Tree.dis, DOMLS.dis, GenericLS.dis, ManakaiDOMLS2003.dis, |
107 |
|
SimpleLS.dis: Cleaned up unused definitions. |
108 |
|
|
109 |
|
* DOMCore.dis, DOMLS.dis (CParam): Definitions |
110 |
|
for LS module moved from |DOMCore| module to |DOMLS| module. |
111 |
|
This change makes |DOMCore| to |DOMLS| dependency removed. |
112 |
|
|
113 |
|
* .cvsignore (.html.pm, .ls.pm): Removed. |
114 |
|
|
115 |
|
* Makefile (.html.pm, .ls.pm): Removed. |
116 |
|
(feature.dae): Include |GenericLS| module. |
117 |
|
(core.dae): Don't include |DOMLS| and |GenericLS| module. |
118 |
|
(ls.dae): Include |DOMLS| module. |
119 |
|
|
120 |
|
2006-01-29 Wakaba <wakaba@suika.fam.cx> |
121 |
|
|
122 |
|
* XMLParser.dis: Tests on default attributes and their |specified| |
123 |
|
attribute are added. |
124 |
|
|
125 |
|
* XDoctype.dis (createGeneralEntity): New method. |
126 |
|
(generalEntities): New attribute. |
127 |
|
(getGeneralEntityNode, setGeneralEntityNode): New methods. |
128 |
|
|
129 |
|
* Tree.dis (ManakaiDOMEntities): Removed. |
130 |
|
(ManakaiDOMEntityMap): New class. |
131 |
|
(ManakaiDOM:entity-reference-read-only): New configuration parameter. |
132 |
|
(createEntityReference): If there is a corresponding |Entity| |
133 |
|
node in the document type definition, then copies its |
134 |
|
subtree. |
135 |
|
|
136 |
|
* DOMXML.dis (Entity): Documentation updated. |
137 |
|
(publicId, systemId, notationName, xmlEncoding, |
138 |
|
xmlVersion): These attributes are now settable |
139 |
|
if |ManakaiDOM:ManakaiDOMLatest| mode. |
140 |
|
(hasReplacementTree): New attribute for |ManakaiDOM:ManakaiDOMLatest| |
141 |
|
mode. |
142 |
|
(ownerDocumentTypeDefinition): New attribute |
143 |
|
for |ManakaiDOM:ManakaiDOMLatest| mode. |
144 |
|
(isExpanded): New attribute for |ManakaiDOM:ManakaiDOMLatest| mode. |
145 |
|
|
146 |
|
2006-01-28 Wakaba <wakaba@suika.fam.cx> |
147 |
|
|
148 |
|
* DOMCore.dis (ErrDef): Missing |ecore:textFormatter| property added. |
149 |
|
|
150 |
|
* DOMMain.dis (ErrDef): Missing |ecore:textFormatter| property added. |
151 |
|
|
152 |
|
* Tree.dis (ErrDef): Missing |ecore:textFormatter| property added. |
153 |
|
(ManakaiDOMAttributes): Removed. |
154 |
|
(ManakaiDOMAttrMap): New class. |
155 |
|
(ManakaiDOMAttrMapArray): New class. |
156 |
|
(namespaceURI): Bug to return a string representation |
157 |
|
of a reference to the namespace URI string is fixed. |
158 |
|
(selectAttrNodeObject, selectAttrNodeObjectNodeNS): Reimplemented. |
159 |
|
(removeAttribute, removeAttributeNS): DTD default attributes |
160 |
|
are supported. Don't throw |NO_MODIFICATION_ALLOWED_ERR| |
161 |
|
if there is no attribute node. |
162 |
|
(createElement, createElementNS): DTD default attributes are supported. |
163 |
|
(setAttributeNode): Reimplemented. |
164 |
|
|
165 |
|
2006-01-27 Wakaba <wakaba@suika.fam.cx> |
166 |
|
|
167 |
|
* DOMCore.dis (ManakaiDOMDTDTypeInfo): New class. |
168 |
|
|
169 |
|
* Tree.dis (STORESIZE): Index bound bug fixed. |
170 |
|
(Attr.value): Redefined to consist with |AttributeDefinition.nodeValue|. |
171 |
|
(schemaTypeInfo): Implemented for XML DTD. |
172 |
|
(isId): Returns |true| if [attribute type] is |ID|. |
173 |
|
(setAttribute, setAttributeNS): Sets [attribute type] |
174 |
|
of the newly created |Attr| node (if any) when attribute |
175 |
|
definition is available. |
176 |
|
(doctype, documentElement): Reimplemented with tests. |
177 |
|
|
178 |
|
* XMLParser.dis: Sets [attribute type] information |
179 |
|
to created |Attr| nodes. Normalize namespace URIs |
180 |
|
when such information are available (unlikely but legal). |
181 |
|
(_HexadecimalCharacterReference): Number to character |
182 |
|
convertion bug fixed. |
183 |
|
(_DocumentTypeDeclaration): Sets |schema-type| |
184 |
|
configuration parameter to XML DTD URI. |
185 |
|
|
186 |
|
2006-01-26 Wakaba <wakaba@suika.fam.cx> |
187 |
|
|
188 |
|
* XMLParser.dis (_AttlistDeclaration): Now it can generate |
189 |
|
attribute definition nodes. |
190 |
|
|
191 |
|
* XDoctype.dis: |UNKNOWN_ATTR| is renamed as |NO_TYPE_ATTR| |
192 |
|
and another |UNKNOWN_ATTR| constant is introduced |
193 |
|
for consistency with XML Infoset. |
194 |
|
|
195 |
|
* DOMCore.dis (TypeInfo): Documentation updated. |
196 |
|
|
197 |
|
2006-01-26 Wakaba <wakaba@suika.fam.cx> |
198 |
|
|
199 |
|
* XDoctype.dis: A bug in test code fixed. |
200 |
|
|
201 |
|
* Tree.dis (NamedNodeMap): Element type or attribute |
202 |
|
definition named node maps now can be dereferenced |
203 |
|
as if they are array or hash references. |
204 |
|
(removeNamedItem, item, ___report_error): Implemented for element type |
205 |
|
or attribute definitions. |
206 |
|
(length): Tests added. |
207 |
|
(NamedNodeMapArray): New classes. |
208 |
|
|
209 |
|
2006-01-25 Wakaba <wakaba@suika.fam.cx> |
210 |
|
|
211 |
|
* XDoctype.dis (setElementTypeDefinitionNode, |
212 |
|
setAttributeDefinitionNode): Throws |c:INUSE_DEFINITION_ERR| |
213 |
|
if the new node is already used for another definition. |
214 |
|
(DocumentTypeDefinition, ElementTypeDefinition): Node |
215 |
|
property name was incorrect. |
216 |
|
(elementTypes, attributeDefinitions): Checks to |
217 |
|
ensure the collection is empty added. |
218 |
|
|
219 |
|
* Tree.dis: Property name typos fixed. |
220 |
|
(setNamedItem, setAttributeNode): Don't return any node |
221 |
|
if it replace itself. |
222 |
|
(c:userDeterminedId): Missing definition added. |
223 |
|
|
224 |
|
* DOMXML.dis (Notation): Missing property specification |
225 |
|
of|c:ownerDocument| as |mn:xrefnode0| is added. |
226 |
|
|
227 |
|
2006-01-23 Wakaba <wakaba@suika.fam.cx> |
228 |
|
|
229 |
|
* DOMCore.dis (Test): Missing argument added. |
230 |
|
(setNamedItem): If |DocumentType| with no |ownerDocument|, |
231 |
|
addition always fails with |WRONG_DOCUMENT_ERR|. Some |
232 |
|
error conditions were incorrect. |
233 |
|
|
234 |
|
* .cvsignore: Dummy files added. |
235 |
|
|
236 |
|
2006-01-22 Wakaba <wakaba@suika.fam.cx> |
237 |
|
|
238 |
|
* DOMCore.dis (NO_NAMED_NODE_ERR, NO_NAMED_NODE_NS_ERR, |
239 |
|
INUSE_DEFINITION_ERR, NO_NS_NAMEDNODEMAP_ERR): New error subtypes. |
240 |
|
|
241 |
|
* DOMMain.dis (ensureXMLName): Checks definesness of |$XMLVERSION| |
242 |
|
to avoid uninitialized value warning. |
243 |
|
|
244 |
|
* Tree.dis (ManakaiDOMElementTypeDefMap, ManakaiDOMAttrDefMap): New |
245 |
|
classes (work in progress). |
246 |
|
|
247 |
|
* XDoctype.dis (elementTypes, attributeDefinitions): New attributes. |
248 |
|
|
249 |
|
2006-01-22 Wakaba <wakaba@suika.fam.cx> |
250 |
|
|
251 |
|
* Tree.dis (getAttribute): Returns |null| if there |
252 |
|
is no attribute in |ManakaiDOM:DOMLatest| for compatibility |
253 |
|
with Web browser implementations. |
254 |
|
(getAttributeNS): It returned |null| if there |
255 |
|
is no attribute in any |For| unintentionally. It now |
256 |
|
returns an empty string in DOM levels less than or equals |
257 |
|
to three. |
258 |
|
|
259 |
|
* XMLParser.dis (shiftChar): Fixed not to be warned as |
260 |
|
uninitialized value or substring out of range. |
261 |
|
|
262 |
|
2006-01-21 Wakaba <wakaba@suika.fam.cx> |
263 |
|
|
264 |
|
* DOMXML.dis (DocumentType.childNodes): Removed |
265 |
|
from |ManakaiDOM:ManakaiDOMLatest| variant. |
266 |
|
|
267 |
|
* XMLParser.dis: Parsing of general internal entities implemented. |
268 |
|
(_DocumentTypeDeclaration): Appends a document type definition |
269 |
|
node to the document. |
270 |
|
(_ProcessingInstructionDTD): Appends a processing |
271 |
|
instruction node to the document type definition. |
272 |
|
(Element_): Document element could not be an |EmptyElemTag|. |
273 |
|
|
274 |
|
2006-01-21 Wakaba <wakaba@suika.fam.cx> |
275 |
|
|
276 |
|
* DOMFeature.dis (featuresParamToFeaturesHash): New block |
277 |
|
code (seprated from |InputProcessor|). Now |
278 |
|
a |features| parameter's version can be specified by |
279 |
|
an array reference that contains a set of version |
280 |
|
numbers. A test added. |
281 |
|
|
282 |
|
* XMLParser.dis: A test added. |
283 |
|
|
284 |
|
2006-01-07 Wakaba <wakaba@suika.fam.cx> |
285 |
|
|
286 |
|
* DOMCore.dis (Test): Don't invoke |DESTROY| method |
287 |
|
because it does not work with dummy object used in the test code. |
288 |
|
|
289 |
|
2006-01-07 Wakaba <wakaba@suika.fam.cx> |
290 |
|
|
291 |
|
* DOMMain.dis (checkXMLNamesQName): Checks whether |
292 |
|
namespace URI is defined for not being warned. |
293 |
|
|
294 |
|
* XDoctype.dis: New module. |
295 |
|
|
296 |
|
* DOMCore.dis (DOMStringList): Test added. |
297 |
|
|
298 |
|
* Makefile: |XDoctype.pm| added. |
299 |
|
|
300 |
|
* Tree.dis (Require): Requires |XDoctype.dis|. |
301 |
|
(ManakaiDOMNodeObjectNode.eq): Added. |
302 |
|
(Test): |DOMError.location| must return a |DOMLocator| |
303 |
|
object (it was incorrectly tested to return |null|). |
304 |
|
(EmptyNodeList.DESTROY): Removed. |
305 |
|
|
306 |
|
2006-01-04 Wakaba <wakaba@suika.fam.cx> |
307 |
|
|
308 |
|
* Tree.dis (NodeType): |ELEMENT_TYPE_DEFINITION_NODE| and |
309 |
|
|ATTRIBUTE_DEFINITION_NODE| node types added. |
310 |
|
(appendChild, insertBefore, replaceChild): New |
311 |
|
two node types added and processing instruction nodes |
312 |
|
as document type definition node child is allowed |
313 |
|
in |ManakaiDOM:ManakaiDOMLatest| mode. |
314 |
|
(getNodeReference): New |interface| parameter |
315 |
|
to filter classes by interface is added. |
316 |
|
(ElementTypeDefinitionRole): New role. |
317 |
|
(AttributeDefinitionRole): New role. |
318 |
|
|
319 |
|
2006-01-02 Wakaba <wakaba@suika.fam.cx> |
320 |
|
|
321 |
|
* DOMCore.dis (DOMStringList): Reimplemented as tied array. |
322 |
|
|
323 |
|
2005-12-31 Wakaba <wakaba@suika.fam.cx> |
324 |
|
|
325 |
|
* DOMCore.dis (DOMError.location): Returns an empty |DOMLocator| |
326 |
|
if it is not provided. |
327 |
|
|
328 |
|
* XMLParser.dis: Parsing methods to skip document |
329 |
|
type declaration is added. |
330 |
|
|
331 |
|
2005-12-29 Wakaba <wakaba@suika.fam.cx> |
332 |
|
|
333 |
|
* XMLParser.dis (shiftChar): Checks characters are legal |
334 |
|
or not. Normalize end-of-lines. |
335 |
|
(rule _XMLDeclaration_): Implemented. |
336 |
|
(WFErrDef): Well-formedness error |wf-syntax-error|, |
337 |
|
|wf-pi-target-is-xml|, |wf-no-end-tag|, |
338 |
|
|wf-unsupported-xml-version|, |wf-malformed-enc-name|, |
339 |
|
|wf-malformed-xml-standalone|, |wf-legal-literal-character|, |
340 |
|
|wf-element-type-match|, |wf-unique-att-spec|, |
341 |
|
|wf-legal-character| added. |
342 |
|
(%character-code-point): New formatter rule. |
343 |
|
|
344 |
|
* Tree.dis (Document.xmlEncoding): It is now read-write attribute. |
345 |
|
|
346 |
|
* DOMCore.dis (DOMError.stringify): Added. |
347 |
|
(error-handler.default): Returns |false| (don't continue) |
348 |
|
when the error severity is |SEVERITY_FATAL_ERROR|. |
349 |
|
|
350 |
|
2005-12-28 Wakaba <wakaba@suika.fam.cx> |
351 |
|
|
352 |
|
* XMLParser.dis (DocumentEntity): Typos fixed. |
353 |
|
(|lexmode|s): New |?default-token| statements are used |
354 |
|
so that tokenizer description has been simplified |
355 |
|
and CDATA sections now can be parsed. |
356 |
|
|
357 |
|
2005-12-28 Wakaba <wakaba@suika.fam.cx> |
358 |
|
|
359 |
|
* XMLParser.dis: Some modifications made. |
360 |
|
|
361 |
|
2005-12-27 Wakaba <wakaba@suika.fam.cx> |
362 |
|
|
363 |
|
* DOMLS.dis (PARSE_ERR, SERIALIZE_ERR): They are now a |
364 |
|
global named resource. |
365 |
|
|
366 |
|
* Makefile: Rules to make |XMLParser.pm| is added. |
367 |
|
|
368 |
|
* XMLParser.dis: New file. |
369 |
|
|
370 |
|
2005-12-24 Wakaba <wakaba@suika.fam.cx> |
371 |
|
|
372 |
|
* DOMCore.dis (ManakaiDOMError._FORMATTER_PACKAGE_): Error |
373 |
|
message formatter can now vary by error types. |
374 |
|
(DOMLocator.utf32Offset): New (manakai extended) attribute. |
375 |
|
|
376 |
|
2005-12-23 Wakaba <wakaba@suika.fam.cx> |
377 |
|
|
378 |
|
* DOMCore.dis (DOMLocator): Implemented. |
379 |
|
|
380 |
|
2005-12-21 Wakaba <wakaba@suika.fam.cx> |
381 |
|
|
382 |
|
* DOMCore.dis (DOMConfigurationParameterApplication, |
383 |
|
domConfigurationParameter): New resources. |
384 |
|
|
385 |
2005-11-25 Wakaba <wakaba@suika.fam.cx> |
2005-11-25 Wakaba <wakaba@suika.fam.cx> |
386 |
|
|
387 |
* Tree.dis (NodeList.___report_error, NamedNodeMap.___report_error): |
* Tree.dis (NodeList.___report_error, NamedNodeMap.___report_error): |