thanhlong203 / closure-library

Automatically exported from code.google.com/p/closure-library
0 stars 0 forks source link

Fails to load with content-type application/xhtml+xml #263

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1.Create hello.js, hello.html, and create closure-library as stated in "Getting 
Started with the Closure Library".
2.Rename hello.html to hello.php.
3.Add this in the top of hello.php: <?php header('Content-type: 
application/xhtml+xml'); ?>
4.Visit hello.php.

What is the expected output? What do you see instead?
I expect to see closure load files (deps.js, for example).

What version of the product are you using? On what operating system?
closure r644 on an Apache 2.2.11 HTTP server with PHP 5.3.0 on Windows XP!

Please provide any additional information below.
goog.inHtmlDocument_ fails because there is no "write" in "doc".

Original issue reported on code.google.com by oscar.br...@gmail.com on 25 Jan 2011 at 10:17

GoogleCodeExporter commented 8 years ago
Using goog.require for loading code in document-load-order doesn't work in XML 
documents. There's nothing we can do to make it work. Sorry. You'll either have 
to compiler all your code into one script, or use HTML.

Original comment by Nicholas.J.Santos on 25 Jan 2011 at 3:40