Side navigation
#7642 closed bug (duplicate)
Opened November 27, 2010 05:43PM UTC
Closed November 27, 2010 10:56PM UTC
Last modified March 13, 2012 11:01PM UTC
jQuery behavior vith "application/xhtml+xml" mime type
Reported by: | edoardo@aspix.it | Owned by: | |
---|---|---|---|
Priority: | undecided | Milestone: | 1.6 |
Component: | unfiled | Version: | 1.4.4 |
Keywords: | Cc: | ||
Blocked by: | Blocking: |
Description
First: I hope that I am not wasting your time, I apologize if this is a desidered behaviour.
The problem arises with "application/xhtml+xml" mime type if the page is serverd from a web server (Tomcat 7.0.4 in my tests).
1- if the page is serverd as testApplication.html [asking to Firefox for page informations the mime type is "text/html"] all goes well, a message appears inside the div.
2- if then page is served as testApplication.xhtml [asking to Firefox for page informations the mime type is "application/xhtml+xml"] and nothing appears inside the div.
the page code:
<?xml version="1.0" encoding="UTF-8" ?> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <title>Test</title> <script src="https://ajax.googleapis.com/ajax/libs/jquery/1.4.4/jquery.min.js"></script> <script> $(document).ready(function() { $( "<div/>" ).text( "test" ).prependTo( "#log" ); $( "#log" ).attr( "scrollTop", 0 ); }); </script> </head> <body> <p>Test area:</p> <div id="log" style="height: 200px; width: 300px; border :1px solid black"></div> </body> </html>
greetings
Edoardo Panfili