1 |
|
2006-02-22 Wakaba <wakaba@suika.fam.cx> |
2 |
|
|
3 |
|
* DOMLS.dis: Constants were typed as |dx:ErrorCode| |
4 |
|
by mistake. |
5 |
|
|
6 |
|
2006-02-18 Wakaba <wakaba@suika.fam.cx> |
7 |
|
|
8 |
|
* XMLParser.dis (ManakaiDOMXMLParser): Implements |DOMLS:ParseString10| |
9 |
|
feature. |
10 |
|
|
11 |
|
* DOMCore.dis (c:LSPARSER_NOT_FOUND_ERR): New exception type. |
12 |
|
|
13 |
|
* DOMLS.dis (DOMLS:ParseString): New (moved from |SimpleLS.dis|). |
14 |
|
(DOMImplementationLS.createLSParser): Implemented. |
15 |
|
(DOMImplementationLS.createLSInput): Revised. |
16 |
|
(LSInput): Note on relationship with |GenericLS| is added. |
17 |
|
|
18 |
|
* SimpleLS.dis (DOMLS:ParseString): Removed (moved to |SimpleLS.dis|). |
19 |
|
|
20 |
|
2006-02-17 Wakaba <wakaba@suika.fam.cx> |
21 |
|
|
22 |
|
* XMLParser.dis (domConfig): New |targetType| of |xp:ManakaiDOMXMLParser| |
23 |
|
is introduced. |
24 |
|
(async, busy): Implemented. |
25 |
|
(parseString): Removed. |
26 |
|
(parse, parseURI): Implemented. |
27 |
|
(xp:ls-input-to-input-file): New configuration parameter. |
28 |
|
(shiftChar): Gets character from current file handle |
29 |
|
rather than replacement text. Don't normalize |
30 |
|
line break characters for internal entities. Don't |
31 |
|
throw |xp:wf-legal-literal-character| error |
32 |
|
for |RestrictedChar| appearing in internal entities. |
33 |
|
(DISPerl:dpgDef): Call |close| for each entity filehandler. |
34 |
|
(_EntityDeclaration): Copy document URI and base URI |
35 |
|
to the entity's |$decl| object. |
36 |
|
(ParseError): New code fragment. |
37 |
|
(getCopyOfEntityState): Creates filehandle from replacement |
38 |
|
text. |
39 |
|
(xp-error-lines): Don't appends text if no replacement |
40 |
|
text is available. |
41 |
|
(error-handler): New configuration parameter application resource. |
42 |
|
(ManakaiDOMLSInputToInputFile): New class. |
43 |
|
(ManakaiDOMInputFile): New class. |
44 |
|
|
45 |
|
* Tree.dis (getNodeReference): A dereferencing was missing. |
46 |
|
|
47 |
|
* DOMLS.dis (DOMLS:busy, DOMLS:lsKey): New properties. |
48 |
|
|
49 |
|
2006-02-17 Wakaba <wakaba@suika.fam.cx> |
50 |
|
|
51 |
|
* XMLParser.dis: Default attribute are now namespace aware. |
52 |
|
(parseString): Don't output |Document| warnings |
53 |
|
during tree construction to standard error output. |
54 |
|
|
55 |
|
2006-02-16 Wakaba <wakaba@suika.fam.cx> |
56 |
|
|
57 |
|
* XMLParser.dis: Name check for XML 1.0, XML Namespace 1.0, and |
58 |
|
XML Namespace 1.1 is implemented. Namespace well-formedness |
59 |
|
error detection is implemented. Generates |Notation| nodes |
60 |
|
from notation declarations. |
61 |
|
(checkNCName, checkQName): New code fragments. |
62 |
|
|
63 |
|
* XDoctype.dis (DocumentXDoctype): Factory methods |
64 |
|
don't check |MDOMX:MDOM_BAD_NAME| if |Document.strictErrorChecking| |
65 |
|
is |false|. |
66 |
|
|
67 |
|
* DOMCore.dis (wf-invalid-character-in-node-name, |
68 |
|
wf-invalid-character): Removed (moved to |MDOM:Tree| module). |
69 |
|
|
70 |
|
* Tree.dis '(wf-invalid-character-in-node-name, |
71 |
|
wf-invalid-character): New errors (from |MDOM:DOMCore| module). |
72 |
|
(Attr.specified): Setter added. |
73 |
|
(cfg:dtd-default-attributes): New configuration parameter. |
74 |
|
(Document.createEntityReference): Don't check |MDOMX:MDOM_BAD_NAME| |
75 |
|
if |Document.strictErrorChecking| is |false|. |
76 |
|
|
77 |
|
2006-02-15 Wakaba <wakaba@suika.fam.cx> |
78 |
|
|
79 |
|
* XMLParser.dis: Set |allDeclarationsProcessed| |
80 |
|
attribute of the |Document| node. Don't process entity |
81 |
|
and attribute definition list declarations after |
82 |
|
unread parameter entity reference. Warns if an attribute definition is |
83 |
|
ignored (|xp:warning-attribute-definition-ignored|). Set |
84 |
|
flags whether predefined entities are declared or not. |
85 |
|
WFC error |xp:wf-pes-in-internal-subset| is implemented. |
86 |
|
|
87 |
|
2006-02-15 Wakaba <wakaba@suika.fam.cx> |
88 |
|
|
89 |
|
* XMLParser.dis: Issues |xp:error-internal-predefined-entity| error |
90 |
|
if a predefined entity declaration references an external entity. |
91 |
|
Issues |xp:error-malformed-predefined-entity| error if |
92 |
|
a predefined entity declaration defines different thing than |
93 |
|
one as in XML specification. |
94 |
|
Issies |xp:warning-entity-declaration-ignored| warning if |
95 |
|
more than one entity declarations for an entity is found. |
96 |
|
(WFErrDef): Now all well-formedness errors are marked |
97 |
|
as |SEVERITY_FATAL_ERROR|. |
98 |
|
|
99 |
|
* XDoctype.dis (DocumentXDoctype.createDocumentTypeDefinition): Creates |
100 |
|
predefined entity declarations. |
101 |
|
(DocumentXDoctype.createNotation): New method. |
102 |
|
(DocumentTypeDefinition.notations): New attribute. |
103 |
|
(DocumentTypeDefinition.getNotationNode): New method. |
104 |
|
(DocumentTypeDefinition.setNotationNode): New method. |
105 |
|
(newNotationForTest): New code fragment. |
106 |
|
|
107 |
|
* Tree.dis (ManakaiDOMXML:ManakaiDOMNotations): Removed. |
108 |
|
(c:ManakaiDOMNotationMap): New class. |
109 |
|
(c:ManakaiDOMNotationMapArray): New class. |
110 |
|
(Document.allDeclarationsProcessed): New attribute. |
111 |
|
|
112 |
|
* DOMXML.dis (DocumentType.notations): Implemented. |
113 |
|
(Notation): Revised. |
114 |
|
(Notation.ownerDocumentTypeDefinition): New attribute. |
115 |
|
|
116 |
|
2006-02-14 Wakaba <wakaba@suika.fam.cx> |
117 |
|
|
118 |
|
* XMLParser.dis: The |xp:wf-parsed-entity| and the |xp:wf-no-recursion| |
119 |
|
WFC errors are implemented. Reports a |xp:wf-syntax-error| |
120 |
|
if a parameter entity declaration contains |NDATA| keyword. |
121 |
|
(setEmptyEntityState): Set |name| attribute. |
122 |
|
|
123 |
|
* Tree.dis (createEntityReference): Don't enter into inifinite |
124 |
|
loop even if entity replacement tree contains recursive |
125 |
|
reference directly or indirectly. |
126 |
|
|
127 |
|
2006-02-13 Wakaba <wakaba@suika.fam.cx> |
128 |
|
|
129 |
|
* XMLParser.dis (_GeneralEntityReferenceAE): The |xp:wf-entity-declared| |
130 |
|
WFC error is implemented. |
131 |
|
|
132 |
|
2006-02-13 Wakaba <wakaba@suika.fam.cx> |
133 |
|
|
134 |
|
* XMLParser.dis: Set |cfg:clone-entity-reference-subtree| |
135 |
|
configuration parameter |true| during tree construction |
136 |
|
to ensure default attribute value is cloned as is |
137 |
|
including entity reference subtree. |
138 |
|
|
139 |
|
* Tree.dis (cfg:clone-entity-reference-subtree): New configuration |
140 |
|
parameter. |
141 |
|
(Node.cloneNode): The |cfg:clone-entity-reference-subtree| |
142 |
|
configuration parameter support is added. |
143 |
|
|
144 |
|
2006-02-12 Wakaba <wakaba@suika.fam.cx> |
145 |
|
|
146 |
|
* XMLParser.dis (parseString): General |Entity| replacement |
147 |
|
tree is not constructed because of a typo. Clears |EntityReference| |
148 |
|
content before constructing |Entity| replacement tree. |
149 |
|
The |xp:wf-entity-declared| well-formedness constraint |
150 |
|
for entity references in attribute value literal is implemented. |
151 |
|
|
152 |
|
2006-02-11 Wakaba <wakaba@suika.fam.cx> |
153 |
|
|
154 |
|
* XMLParser.dis: |xp:wf-entity-declared| well-formedness |
155 |
|
constaraint for entity references that appear in |
156 |
|
content of elements is implemented. Set |EntityReference.isExpanded| |
157 |
|
attribute. |
158 |
|
(getEmptyEntityState): New code. |
159 |
|
|
160 |
|
* XDoctype.dis (DocumentTypeDefinition.nodeType): Duplicate |
161 |
|
definition is removed. |
162 |
|
|
163 |
|
* DOMXML.dis (Entity.isExternallyDeclared): New attribute. |
164 |
|
(EntityReference.isExpanded): Setter is added. |
165 |
|
|
166 |
|
2006-02-11 Wakaba <wakaba@suika.fam.cx> |
167 |
|
|
168 |
|
* XMLParser.dis: |xp:wf-no-lt-in-attribute-values| |
169 |
|
and |xp:wf-no-external-entity-references| well-formedness |
170 |
|
constraints are implemented. |
171 |
|
|
172 |
|
2006-02-11 Wakaba <wakaba@suika.fam.cx> |
173 |
|
|
174 |
|
* XMLParser.dis ($self->{has_error}): Removed. |
175 |
|
(parseString): Don't throw |DOMLS:PARSE_ERR| if all fatal |
176 |
|
errors (including well-formedness constraint errors) are |
177 |
|
traped by the error handler. |
178 |
|
(PubidLiteral, SystemLiteral): Set |publicId| or |systemId| |
179 |
|
attribute of the node. Reports an error if |publidLiteral| |
180 |
|
contains a non-|pubidChar|. |
181 |
|
|
182 |
|
* XDoctype.dis (d:DeclFeature30): New feature (|fe:XDoctypeDeclaration| |
183 |
|
version |3.0|). |
184 |
|
(ManakaiDOMDocumentTypeDefinition): The class no longer |
185 |
|
inherits |x:ManakaiDOMDocumentType| class. Instead, |
186 |
|
it inherits |d:ManakaiDOMDocumentTypeDeclaration| |
187 |
|
and |t:ManakaiDOMNOde| classes. It still implements |x:DocumentType| |
188 |
|
interface (except unimplemented |notations| and |internalSubset| |
189 |
|
attributes). |
190 |
|
(ManakaiDOMDocumentTypeDefinition.entities): New attribute |
191 |
|
for compatibility with |x:DocumentType| interface. |
192 |
|
(ManakaiDOMDocumentTypeDefinition.lookupPrefix): New method. |
193 |
|
(ManakaiDOMDocumentTypeDefinition.getFeature): New method. |
194 |
|
(ManakaiDOMDocumentTypeDefinition.nodeType, |
195 |
|
ManakaiDOMDocumentTypeDefinition.textContent): New attributes. |
196 |
|
(DocumentTypeDeclaration): New interface. |
197 |
|
|
198 |
|
* Tree.dis (Node/@f:implements): Typos fixed. |
199 |
|
(Node.MUErrorHandler): Missing |last A| statement is added. |
200 |
|
(createDocumentType): Throws an exception if |qualifiedName| |
201 |
|
is illegal. Calls |DocumentTypeDefinition.newObject| |
202 |
|
instead of obsolete |DocumentType.newObject|. |
203 |
|
|
204 |
|
* DOMXML.dis (DocumentType.name, DocumentType.entities, |
205 |
|
DocumentType.publicId, DocumentType.systemId, |
206 |
|
DocumentType.lookupPrefix, DocumentType.getFeature): Now they are defined |
207 |
|
as clones of similar attributes or methods |
208 |
|
in |MDOM:XDoctype| module. |
209 |
|
(DocumentType.newObject): Removed (use |DocumentTypeDefinition.newObject| |
210 |
|
instead). |
211 |
|
(DocumentType.childNodes): Removed (|Node.childNodes| definition |
212 |
|
is used). |
213 |
|
|
214 |
|
2006-02-10 Wakaba <wakaba@suika.fam.cx> |
215 |
|
|
216 |
|
* XMLParser.dis (xp:fatal-xml11-end-of-line-in-xml-declaration): New |
217 |
|
fatal error. |
218 |
|
|
219 |
|
2006-02-09 Wakaba <wakaba@suika.fam.cx> |
220 |
|
|
221 |
|
* XMLParser.dis (CommentDeclaration): |STRING| is now |
222 |
|
defined as a |?default-token|. |
223 |
|
(XMLTests): Tests for |Char - RestrictedChar| matchness, |
224 |
|
comment declarations, cdata sections, and |MSE| in |content| |
225 |
|
added. |
226 |
|
(XMLTests/PerlDef): Bug fixed: |pop| -> |shift|. |
227 |
|
(get-location-from-token): |$token->{location_d}| |
228 |
|
for |?default-token| column counting support added. |
229 |
|
|
230 |
|
* DOMCore.dis (c:erred): It is now a |DISCore:OrderedList| property. |
231 |
|
|
232 |
|
2006-02-08 Wakaba <wakaba@suika.fam.cx> |
233 |
|
|
234 |
|
* Tree.dis (createProcessingInstruction): Don't |
235 |
|
throw |MDOMX:MDOM_BAD_NAME| exception if |Document.strictErrorChecking| |
236 |
|
is |false|. |
237 |
|
|
238 |
|
* XMLParser.dis (parseString): Initializes |$self->{location}|. |
239 |
|
It enables improved error position report. |
240 |
|
(XDO): It now includes |S+| following target name |xml| as |
241 |
|
part of the token. (PI with target starting with |xml| |
242 |
|
was unable to be placed at the beginning of the document entity.) |
243 |
|
(_ProcessingInstruction, _ProcessingInstructionDTD): Creates |
244 |
|
a processing instruction node with |#INVALID| node name |
245 |
|
if target name is not given and recovered from the error. |
246 |
|
(S): Variable |$s| added. |
247 |
|
(XMLTests): Tests for XML declarations and processing |
248 |
|
instructions are added. Prints error type name if unexpected |
249 |
|
error with severity of error or fatal error has been reported. |
250 |
|
Catch unexpected exceptions thrown in parser (different |
251 |
|
from |LSException|), prints its message, and invoke |$test->not_ok| |
252 |
|
for the ease of testing. |
253 |
|
(xp:get-location-from-token): Location values now take |$self->{char}| |
254 |
|
stack into acount. |
255 |
|
|
256 |
2006-02-08 Wakaba <wakaba@suika.fam.cx> |
2006-02-08 Wakaba <wakaba@suika.fam.cx> |
257 |
|
|
258 |
* XMLParser.dis (shiftChar): Line and column number counting |
* XMLParser.dis (shiftChar): Line and column number counting |