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