File tree 1 file changed +12
-1
lines changed
src/main/scala/org/scalajs/dom/raw
1 file changed +12
-1
lines changed Original file line number Diff line number Diff line change @@ -4044,7 +4044,7 @@ class XMLHttpRequest extends EventTarget {
4044
4044
* is parsed as if it were a text/xml stream. When the responseType is set to "document"
4045
4045
* and the request has been made asynchronously, the response is parsed as a text/html
4046
4046
* stream. Note: If the server doesn't apply the text/xml Content-Type header, you
4047
- * can use overrideMimeType()to force XMLHttpRequest to parse it as XML anyway.
4047
+ * can use overrideMimeType() to force XMLHttpRequest to parse it as XML anyway.
4048
4048
*
4049
4049
* MDN
4050
4050
*/
@@ -4111,6 +4111,17 @@ class XMLHttpRequest extends EventTarget {
4111
4111
*/
4112
4112
def abort (): Unit = js.native
4113
4113
4114
+ /**
4115
+ * The XMLHttpRequest method overrideMimeType() specifies a MIME type other than the
4116
+ * one provided by the server to be used instead when interpreting the data being
4117
+ * transferred in a request. This may be used, for example, to force a stream to be
4118
+ * treated and parsed as "text/xml", even if the server does not report it as such.
4119
+ * This method must be called before calling send().
4120
+ *
4121
+ * MDN
4122
+ */
4123
+ def overrideMimeType (mimeType : String ): Unit = js.native
4124
+
4114
4125
def getAllResponseHeaders (): String = js.native
4115
4126
4116
4127
/**
You can’t perform that action at this time.
0 commit comments