xerces-j2/xerces-j2-2.8.1_new_unsupported_dom_methods.patch

75 lines
2.4 KiB
Diff

Index: xerces-2_8_1/src/org/apache/html/dom/HTMLFrameElementImpl.java
===================================================================
--- xerces-2_8_1.orig/src/org/apache/html/dom/HTMLFrameElementImpl.java
+++ xerces-2_8_1/src/org/apache/html/dom/HTMLFrameElementImpl.java
@@ -16,6 +16,8 @@
package org.apache.html.dom;
import org.w3c.dom.html.HTMLFrameElement;
+import org.w3c.dom.Document;
+import org.w3c.dom.DOMException;
/**
* @xerces.internal
@@ -28,6 +30,10 @@ public class HTMLFrameElementImpl
extends HTMLElementImpl
implements HTMLFrameElement
{
+ public Document getContentDocument() {
+ throw new DOMException(DOMException.NOT_SUPPORTED_ERR, "method not supportet");
+ }
+
private static final long serialVersionUID = 635237057173695984L;
Index: xerces-2_8_1/src/org/apache/html/dom/HTMLIFrameElementImpl.java
===================================================================
--- xerces-2_8_1.orig/src/org/apache/html/dom/HTMLIFrameElementImpl.java
+++ xerces-2_8_1/src/org/apache/html/dom/HTMLIFrameElementImpl.java
@@ -14,6 +14,9 @@
* limitations under the License.
*/
package org.apache.html.dom;
+import org.w3c.dom.Document;
+import org.w3c.dom.DOMException;
+
import org.w3c.dom.html.HTMLIFrameElement;
@@ -31,6 +34,11 @@ public class HTMLIFrameElementImpl
private static final long serialVersionUID = 2393622754706230429L;
+ public Document getContentDocument() {
+ throw new DOMException(DOMException.NOT_SUPPORTED_ERR, "method not supportet");
+ }
+
+
public String getAlign()
{
return capitalize( getAttribute( "align" ) );
Index: xerces-2_8_1/src/org/apache/html/dom/HTMLObjectElementImpl.java
===================================================================
--- xerces-2_8_1.orig/src/org/apache/html/dom/HTMLObjectElementImpl.java
+++ xerces-2_8_1/src/org/apache/html/dom/HTMLObjectElementImpl.java
@@ -16,6 +16,8 @@
package org.apache.html.dom;
import org.w3c.dom.html.HTMLObjectElement;
+import org.w3c.dom.Document;
+import org.w3c.dom.DOMException;
/**
* @xerces.internal
@@ -31,6 +33,10 @@ public class HTMLObjectElementImpl
private static final long serialVersionUID = 2276953229932965067L;
+ public Document getContentDocument() {
+ throw new DOMException(DOMException.NOT_SUPPORTED_ERR, "method not supportet");
+ }
+
public String getCode()
{
return getAttribute( "code" );