Bug Tracker

Ticket #3642: testcase.xhtml

File testcase.xhtml, 834 bytes (added by jqrusr, 13 years ago)

test case i used (of little interest now, i guess)

Line 
1<?xml version="1.0" encoding="utf-8"?>
2<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
3<html xmlns="http://www.w3.org/1999/xhtml">
4<head>
5<title>innerHTML xhtml test</title>
6<style type="text/css">
7.bold { font-weight: bold; font-size: 2em; }
8</style>
9<script type="text/javascript" src="jquery-1.2.6.js"></script>
10<script type="text/javascript">
11<![CDATA[
12$(document).ready(function() {
13        $("#test_span").addClass("bold");
14
15        // note: the extra quote (") character after <div was inserted
16        //       on purpose. Removing it makes the markup valid,
17        //       which causes no issues.
18        $("#test_span").wrap('<div "></div>');
19        alert('oh no!');
20});
21]]>
22</script>
23</head>
24<body>
25<p>This is a <span id="test_span">test</span>. In Firefox, expect an exception.</p>
26
27</body>
28</html>