1 |
|
2006-02-12 Wakaba <wakaba@suika.fam.cx> |
2 |
|
|
3 |
|
* XMLParser.dis (parseString): General |Entity| replacement |
4 |
|
tree is not constructed because of a typo. Clears |EntityReference| |
5 |
|
content before constructing |Entity| replacement tree. |
6 |
|
The |xp:wf-entity-declared| well-formedness constraint |
7 |
|
for entity references in attribute value literal is implemented. |
8 |
|
|
9 |
|
2006-02-11 Wakaba <wakaba@suika.fam.cx> |
10 |
|
|
11 |
|
* XMLParser.dis: |xp:wf-entity-declared| well-formedness |
12 |
|
constaraint for entity references that appear in |
13 |
|
content of elements is implemented. Set |EntityReference.isExpanded| |
14 |
|
attribute. |
15 |
|
(getEmptyEntityState): New code. |
16 |
|
|
17 |
|
* XDoctype.dis (DocumentTypeDefinition.nodeType): Duplicate |
18 |
|
definition is removed. |
19 |
|
|
20 |
|
* DOMXML.dis (Entity.isExternallyDeclared): New attribute. |
21 |
|
(EntityReference.isExpanded): Setter is added. |
22 |
|
|
23 |
|
2006-02-11 Wakaba <wakaba@suika.fam.cx> |
24 |
|
|
25 |
|
* XMLParser.dis: |xp:wf-no-lt-in-attribute-values| |
26 |
|
and |xp:wf-no-external-entity-references| well-formedness |
27 |
|
constraints are implemented. |
28 |
|
|
29 |
|
2006-02-11 Wakaba <wakaba@suika.fam.cx> |
30 |
|
|
31 |
|
* XMLParser.dis ($self->{has_error}): Removed. |
32 |
|
(parseString): Don't throw |DOMLS:PARSE_ERR| if all fatal |
33 |
|
errors (including well-formedness constraint errors) are |
34 |
|
traped by the error handler. |
35 |
|
(PubidLiteral, SystemLiteral): Set |publicId| or |systemId| |
36 |
|
attribute of the node. Reports an error if |publidLiteral| |
37 |
|
contains a non-|pubidChar|. |
38 |
|
|
39 |
|
* XDoctype.dis (d:DeclFeature30): New feature (|fe:XDoctypeDeclaration| |
40 |
|
version |3.0|). |
41 |
|
(ManakaiDOMDocumentTypeDefinition): The class no longer |
42 |
|
inherits |x:ManakaiDOMDocumentType| class. Instead, |
43 |
|
it inherits |d:ManakaiDOMDocumentTypeDeclaration| |
44 |
|
and |t:ManakaiDOMNOde| classes. It still implements |x:DocumentType| |
45 |
|
interface (except unimplemented |notations| and |internalSubset| |
46 |
|
attributes). |
47 |
|
(ManakaiDOMDocumentTypeDefinition.entities): New attribute |
48 |
|
for compatibility with |x:DocumentType| interface. |
49 |
|
(ManakaiDOMDocumentTypeDefinition.lookupPrefix): New method. |
50 |
|
(ManakaiDOMDocumentTypeDefinition.getFeature): New method. |
51 |
|
(ManakaiDOMDocumentTypeDefinition.nodeType, |
52 |
|
ManakaiDOMDocumentTypeDefinition.textContent): New attributes. |
53 |
|
(DocumentTypeDeclaration): New interface. |
54 |
|
|
55 |
|
* Tree.dis (Node/@f:implements): Typos fixed. |
56 |
|
(Node.MUErrorHandler): Missing |last A| statement is added. |
57 |
|
(createDocumentType): Throws an exception if |qualifiedName| |
58 |
|
is illegal. Calls |DocumentTypeDefinition.newObject| |
59 |
|
instead of obsolete |DocumentType.newObject|. |
60 |
|
|
61 |
|
* DOMXML.dis (DocumentType.name, DocumentType.entities, |
62 |
|
DocumentType.publicId, DocumentType.systemId, |
63 |
|
DocumentType.lookupPrefix, DocumentType.getFeature): Now they are defined |
64 |
|
as clones of similar attributes or methods |
65 |
|
in |MDOM:XDoctype| module. |
66 |
|
(DocumentType.newObject): Removed (use |DocumentTypeDefinition.newObject| |
67 |
|
instead). |
68 |
|
(DocumentType.childNodes): Removed (|Node.childNodes| definition |
69 |
|
is used). |
70 |
|
|
71 |
|
2006-02-10 Wakaba <wakaba@suika.fam.cx> |
72 |
|
|
73 |
|
* XMLParser.dis (xp:fatal-xml11-end-of-line-in-xml-declaration): New |
74 |
|
fatal error. |
75 |
|
|
76 |
|
2006-02-09 Wakaba <wakaba@suika.fam.cx> |
77 |
|
|
78 |
|
* XMLParser.dis (CommentDeclaration): |STRING| is now |
79 |
|
defined as a |?default-token|. |
80 |
|
(XMLTests): Tests for |Char - RestrictedChar| matchness, |
81 |
|
comment declarations, cdata sections, and |MSE| in |content| |
82 |
|
added. |
83 |
|
(XMLTests/PerlDef): Bug fixed: |pop| -> |shift|. |
84 |
|
(get-location-from-token): |$token->{location_d}| |
85 |
|
for |?default-token| column counting support added. |
86 |
|
|
87 |
|
* DOMCore.dis (c:erred): It is now a |DISCore:OrderedList| property. |
88 |
|
|
89 |
|
2006-02-08 Wakaba <wakaba@suika.fam.cx> |
90 |
|
|
91 |
|
* Tree.dis (createProcessingInstruction): Don't |
92 |
|
throw |MDOMX:MDOM_BAD_NAME| exception if |Document.strictErrorChecking| |
93 |
|
is |false|. |
94 |
|
|
95 |
|
* XMLParser.dis (parseString): Initializes |$self->{location}|. |
96 |
|
It enables improved error position report. |
97 |
|
(XDO): It now includes |S+| following target name |xml| as |
98 |
|
part of the token. (PI with target starting with |xml| |
99 |
|
was unable to be placed at the beginning of the document entity.) |
100 |
|
(_ProcessingInstruction, _ProcessingInstructionDTD): Creates |
101 |
|
a processing instruction node with |#INVALID| node name |
102 |
|
if target name is not given and recovered from the error. |
103 |
|
(S): Variable |$s| added. |
104 |
|
(XMLTests): Tests for XML declarations and processing |
105 |
|
instructions are added. Prints error type name if unexpected |
106 |
|
error with severity of error or fatal error has been reported. |
107 |
|
Catch unexpected exceptions thrown in parser (different |
108 |
|
from |LSException|), prints its message, and invoke |$test->not_ok| |
109 |
|
for the ease of testing. |
110 |
|
(xp:get-location-from-token): Location values now take |$self->{char}| |
111 |
|
stack into acount. |
112 |
|
|
113 |
|
2006-02-08 Wakaba <wakaba@suika.fam.cx> |
114 |
|
|
115 |
|
* XMLParser.dis (shiftChar): Line and column number counting |
116 |
|
is fixed. Although the DOM Level 3 Core specification |
117 |
|
is unclear about whether the first number is zero or one, |
118 |
|
in most programs the first line is "one" and |
119 |
|
the first column is "one", manakai follows the practice. |
120 |
|
(_XMLDeclaration): Don't set |xmlStandalone| value |
121 |
|
if |standalone| pseudo-attribute value is |no|. XML declaration |
122 |
|
tests (successful cases) added. |
123 |
|
(xp:get-location-from-token): Sets |lineNumber| and |columnNumber| |
124 |
|
properties. |
125 |
|
|
126 |
|
2006-02-08 Wakaba <wakaba@suika.fam.cx> |
127 |
|
|
128 |
|
* XMLParser.dis (XMLTests): Tests for |c:erred| is supported. |
129 |
|
|
130 |
|
2006-02-06 Wakaba <wakaba@suika.fam.cx> |
131 |
|
|
132 |
|
* DOMCore.dis (c:erred): New property. |
133 |
|
(c:DOMErrorType): It should have been a subset |
134 |
|
of |ecore:AnyErrorCode|. |
135 |
|
|
136 |
|
* XMLParser.dis (XMLTests): Empty input tests added. |
137 |
|
|
138 |
|
2006-01-30 Wakaba <wakaba@suika.fam.cx> |
139 |
|
|
140 |
|
* XDoctype.dis (d:Feature): New canonical feature |
141 |
|
name |fe:XDoctype| is added. |
142 |
|
|
143 |
|
* XMLParser.dis: Predefined general entity references |
144 |
|
are implemented. Creates |Entity| nodes from general entities |
145 |
|
declared in internal subset. |Entity| nodes created from internal |
146 |
|
general parsed entities now have replacement tree. |
147 |
|
Sets |cfg:entity-reference-read-only| flag off during |
148 |
|
the tree generation. Some parsing rules use |$self->{doc}| |
149 |
|
rather than |$doc| parameter. Similarly, |$self->{docx}| (document |
150 |
|
node with |fe:XDoctype| feature) and |$self->{dtdef}| are |
151 |
|
introduced. General entity references in attribute value literal |
152 |
|
are supported. |
153 |
|
|
154 |
2006-01-29 Wakaba <wakaba@suika.fam.cx> |
2006-01-29 Wakaba <wakaba@suika.fam.cx> |
155 |
|
|
156 |
* Tree.dis (ManakaiDOM:entity-reference-read-only): Configuration |
* Tree.dis (ManakaiDOM:entity-reference-read-only): Configuration |