Details
-
Bug
-
Status: Closed
-
Critical
-
Resolution: Cannot Reproduce
-
3.4.0
-
None
-
None
-
iOS 7
Description
A css downloaded with xhr and created a local url (cdvfile://localhost/test.css) with the File API can't be used as a stylesheet.
var filename = "test.css"; var imageURL = "http://apache.org/css/style.css"; requestFileSystem(TEMPORARY, 0, function(fileSystem) { var ft = new FileTransfer(); ft.download(imageURL, fileSystem.root.toURL() + "/" + filename, function(entry) { var fileref=document.createElement("link"); fileref.setAttribute("rel", "stylesheet"); fileref.setAttribute("type", "text/css"); fileref.setAttribute("href", entry.toURL()); document.head.appendChild(imgElement); }); });