On Feb 12, 6:09 pm, John Resig <jere...@gmail.com> wrote:
> > "application/xhtml+xml"
>
> What do you do for the other browsers? (IE)
The XHTML is sent through a quirks mode rewriter for IE and served as
text/html
>
> >> 2) Self-closing script tags are invalid (may want to fix those first).
>
> > Why are they invalid for xhtml?
>
> Dunno, but they are:http://www.w3.org/TR/xhtml1/#C_3
Okay. I've changed up the last XHTML -> bytes phase to put explicit
closing tags on <script/>, <p/>, etc. The behavior in Firefox is the
same with the changes... the exception is thrown. Here's the failing
file:
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://
www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xmlns:lift="http://
liftweb.net/"><head>
<meta http-equiv="content-type" content="text/html;
charset=UTF-8" />
<title>GC Test</title>
<script src="/scripts/jquery-1.3.1.js" type="text/javascript"></
script>
<script src="/scripts/jquery.blockUI.js" type="text/javascript"></
script>
<body>
<div id="hi"></div>
<script>
// <![CDATA[
$(document).ready(function() {
try {
var d = document.getElementById("hi");
var s = '<b lift:gc="foo">Hi</b>';
d.innerHTML = s;
jQuery.blockUI({message: s});
} catch (e) {
alert(e);
}
});
// ]]>
</script>
</body>
</html>
>
> --John
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"jQuery Development" group.
To post to this group, send email to jquery-dev@googlegroups.com
To unsubscribe from this group, send email to
jquery-dev+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/jquery-dev?hl=en
-~----------~----~----~----~------~----~------~--~---