Skip to content

Commit e29ab84

Browse files
committed
Return default values for Document.inputEncoding, xmlEncoding, xmlStandalone and xmlVersion attributes.
Instead of throwing an exception (DOM4J behaviour).
1 parent e6bff9b commit e29ab84

File tree

1 file changed

+43
-0
lines changed

1 file changed

+43
-0
lines changed

src/io/sf/carte/doc/dom4j/XHTMLDocument.java

Lines changed: 43 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -181,6 +181,49 @@ public Object setUserData(String key, Object data, UserDataHandler handler) {
181181
return null;
182182
}
183183

184+
/**
185+
* Give the encoding used when the document was parsed, if known.
186+
*
187+
* @return <code>null</code>.
188+
*/
189+
@Override
190+
public String getInputEncoding() {
191+
return null;
192+
}
193+
194+
/**
195+
* Now deprecated, this method gave the encoding specified at the XML declaration.
196+
*
197+
* @return <code>null</code>.
198+
*/
199+
@Deprecated
200+
@Override
201+
public String getXmlEncoding() {
202+
return null;
203+
}
204+
205+
/**
206+
* Get whether this document is standalone as specified at the XML declaration.
207+
*
208+
* @return <code>null</code>.
209+
*/
210+
@Deprecated
211+
@Override
212+
public boolean getXmlStandalone() {
213+
return false;
214+
}
215+
216+
/**
217+
* Get the version for the "XML" feature.
218+
*
219+
* @return <code>null</code>.
220+
*/
221+
@Deprecated
222+
@Override
223+
public String getXmlVersion() {
224+
return null;
225+
}
226+
184227
@Override
185228
public void registerProperty(CSSPropertyDefinition definition) {
186229
if (registeredPropertySet == null) {

0 commit comments

Comments
 (0)