|
1 |
| -/*! rasterizeHTML.js - v0.4.1 - 2013-05-25 |
| 1 | +/*! rasterizeHTML.js - v0.4.1 - 2013-09-17 |
2 | 2 | * http://www.github.com/cburgmer/rasterizeHTML.js
|
3 | 3 | * Copyright (c) 2013 Christoph Burgmer; Licensed MIT */
|
4 | 4 |
|
@@ -984,7 +984,7 @@ window.rasterizeHTMLInline = (function (module, window, URI) {
|
984 | 984 | return module;
|
985 | 985 | }(window.rasterizeHTMLInline || {}, window, URI));
|
986 | 986 |
|
987 |
| -window.rasterizeHTML = (function (rasterizeHTMLInline, hTMLtoXML, theWindow) { |
| 987 | +window.rasterizeHTML = (function (rasterizeHTMLInline, html2xhtml, theWindow) { |
988 | 988 | "use strict";
|
989 | 989 |
|
990 | 990 | var module = {};
|
@@ -1126,10 +1126,10 @@ window.rasterizeHTML = (function (rasterizeHTMLInline, hTMLtoXML, theWindow) {
|
1126 | 1126 | doc.documentElement.setAttribute("xmlns", doc.documentElement.namespaceURI);
|
1127 | 1127 | xml = (new theWindow.XMLSerializer()).serializeToString(doc.documentElement);
|
1128 | 1128 | if (needsXMLParserWorkaround()) {
|
1129 |
| - if (hTMLtoXML) { |
1130 |
| - return hTMLtoXML(xml); |
| 1129 | + if (html2xhtml) { |
| 1130 | + return html2xhtml(xml); |
1131 | 1131 | } else {
|
1132 |
| - module.util.log("Looks like your browser needs htmlparser.js as workaround for writing XML. " + |
| 1132 | + module.util.log("Looks like your browser needs html2xhtml.js as workaround for writing XML. " + |
1133 | 1133 | "Please include it.");
|
1134 | 1134 | return xml;
|
1135 | 1135 | }
|
@@ -1398,4 +1398,4 @@ window.rasterizeHTML = (function (rasterizeHTMLInline, hTMLtoXML, theWindow) {
|
1398 | 1398 | };
|
1399 | 1399 |
|
1400 | 1400 | return module;
|
1401 |
| -}(window.rasterizeHTMLInline, window.HTMLtoXML, window)); |
| 1401 | +}(window.rasterizeHTMLInline, window.html2xhtml || window.HTMLtoXML, window)); |
0 commit comments