Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Overriding mimetype so that xsl is loaded proprely.

  • Loading branch information...
commit 307d6a534b89ed3ec702e33fe2fa457e01d59589 1 parent eb1506a
Irakli Gozalishvili authored
Showing with 1 addition and 1 deletion.
  1. +1 −1  demo/main.js
2  demo/main.js
View
@@ -39,7 +39,7 @@ function main() {
var request = new XMLHttpRequest()
request.open('GET', 'resources/markdown.xsl', true)
request.onreadystatechange = function() {
- console.log(request)
+ request.overrideMimeType('text/xml')
if (request.readyState = 4 && (request.status == 0 || request.status == 200)) {
xsltProcessor = new XSLTProcessor()
xsltProcessor.importStylesheet(request.responseXML)
Please sign in to comment.
Something went wrong with that request. Please try again.