Bug Tracker

Ticket #4070: test-4070.html

File test-4070.html, 814 bytes (added by dmethvin, 10 years ago)
Line 
1<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
2<html><head>
3<title>test</title>
4<style type="text/css">
5
6</style>
7<script src="http://ajax.googleapis.com/ajax/libs/jquery/1.3.2/jquery.js" type="text/javascript"></script>
8<script type="text/javascript">
9
10$(function() {
11
12jQuery.fn.allids = function() {
13        return this.map(function(){ return this.name }).get().join('|');
14};
15
16// alerts nostuff|novalue on Firefox and nostuff on Chrome
17alert($("input[type=text]:not([value])").allids());
18
19// alerts nostuff|novalue on Firefox and novalue on Chrome
20alert($("input[type=text][value='']").allids());
21
22}); 
23</script>
24</head>
25<body>
26
27<input type="text" name="gotstuff" value="stuff">
28<input type="text" name="nostuff" value="">
29<input type="text" name="novalue">
30
31</body>
32</html>