Side navigation
#6721 closed bug (invalid)
Opened June 25, 2010 05:42AM UTC
Closed June 25, 2010 09:30PM UTC
XHTML IE8 fix doesn't work with jQuery
Reported by: | fazend | Owned by: | |
---|---|---|---|
Priority: | Milestone: | 1.4.3 | |
Component: | unfiled | Version: | 1.4.2 |
Keywords: | Cc: | ||
Blocked by: | Blocking: |
Description
This is my XHTML/PHP file:
#!xml <? header('Content-type: application/xhtml+xml')?> <?="<?xml version=\\"1.0\\" encoding=\\"utf-8\\"?>"?> <?="<?xml-stylesheet type=\\"text/xsl\\" href=\\"ie-fix.php\\"?>"?> <!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> <meta http-equiv="Content-Type" content="application/xhtml+xml; charset=utf-8" /> </head> <body> <script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.4/jquery.min.js"></script> <script type="text/javascript"> $("body").html("test"); </script> </body> </html>
This is the XSL/PHP file (ie-fix.php):
#!xml <? header('Content-type: text/xsl')?> <?="<?xml version=\\"1.0\\" encoding=\\"utf-8\\"?>"?> <xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns="http://www.w3.org/1999/xhtml" version="1.0"> <xsl:output method="xml" encoding="utf-8"></xsl:output> <xsl:template match="/"> <xsl:copy-of select="node()"></xsl:copy-of> </xsl:template> </xsl:stylesheet>
I created it as explained here: http://www.w3.org/MarkUp/2004/xhtml-faq#ie
My code doesn't work in Safari 5.0, the errors I'm getting are:
TypeError: Result of expression 'd.style' [null] is not an object. ReferenceError: Can't find variable: $
Could anyone help, please? Thanks!
Attachments (0)
Change History (1)
Changed June 25, 2010 09:30PM UTC by comment:1
resolution: | → invalid |
---|---|
status: | new → closed |
You say it's an IE8 fix but it doesn't work in Safari?
Try the forum first: http://forum.jquery.com
If it turns out to be a bug, reopen with some more details.