Permalink
Browse files

Overriding mimetype so that xsl is loaded proprely.

  • Loading branch information...
1 parent eb1506a commit 307d6a534b89ed3ec702e33fe2fa457e01d59589 @Gozala committed Oct 14, 2010
Showing with 1 addition and 1 deletion.
  1. +1 −1 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)

0 comments on commit 307d6a5

Please sign in to comment.