Bug Tracker

Ticket #3152: testcase_attr_value.html

File testcase_attr_value.html, 1.1 KB (added by thesaint, 6 years ago)

Test case (without the problem described)

Line 
1<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
2       "http://www.w3.org/TR/html4/loose.dtd">
3<html>
4<head>
5<title>Test case for setting attr values</title>
6<script src="jquery-1.2.6.min.js" type="text/javascript"></script>
7<script type="text/javascript">
8$(document).ready(function() {
9    $('#testsinglequote').attr('title', "A 'quoted' title.");
10    $('#testdoublequote').attr('title', 'A "quoted" title.');
11    $('#testopenbracket').attr('title', 'Is 2 < 4 ?');
12    $('#testclosebracket').attr('title', 'Is 2 > 4 ?');
13    $('#testamp').attr('title', 'Scrooge & company');
14});
15</script>
16</head>
17<body>
18
19<p><a href="#" id="testsinglequote" title='dummy'>Title should be <code>A &#039;quoted&#039; title.</code></a>
20<p><a href="#" id="testdoublequote">Title should be <code>A &quot;quoted&quot; title.</code></a>
21<p><a href="#" id="testopenbracket">Title should be <code>Is 2 &lt; 4?</code></a>
22<p><a href="#" id="testclosebracket">Title should be <code>Is 2 &gt; 4?</code></a>
23<p><a href="#" id="testamp">Title should be <code>Scrooge &amp; company</code></a>
24
25</body>
26</html>