Bug Tracker

Custom Query (13852 matches)

Filters
 
Or
 
  
 
Columns

Show under each result:


Results (13 - 15 of 13852)

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15
Ticket Resolution Summary Owner Reporter
#11355 duplicate ":input[value]" and ":input:not([value])" returning wrong elements jmabey
Description

I'm using the selectors :input[value] and :input:not([value]), and they appear to be returning the opposite of what is expected.

Suppose there is a page with one element on it: <input name="a">

  • :input[value] selects the element.
  • :input:not([value]) does not select the element.

Using input instead of :input returns the expected result:

  • input[value] does not select the element.
  • input:not([value]) selects the element.

Test case: http://jsfiddle.net/jmabey/f9fH7/

With 1.7.1:

  • Reproducible in Firefox 3.6.26 and 10.0.1, Chrome 17, Opera 11.61, Safari 5.1.2, IE 7-9
  • IE 7 and 8's results are inconsistent with other browsers
  • Operating systems: Ubuntu 11.10 and Windows 7

With 1.6.4:

  • Works as expected in same browsers
#7726 invalid ":input“选择符在IE下对相关标签解释不正确 anonymous
Description

在IE下,如果网页中只存在一个input元素,对于以下三种写法,var n = $(":input").length 得到的结果不同: 1) <input type="text">,即不关闭input元素,这时n=1,结果正确; 2) <input type="text" />,即使用"/>"关闭空标签,这时n=1,结果也正确; 3) <input type="text"></input>,即使用结束标签关闭该元素(虽然HTML中input元素没有结束标签,但XHTML貌似允许使用这种写法),则结果发生了错误:n=2。后来经过大量测试发现,在IE下jQuery将结束标记"</input>"也当成一个input元素选取出来了。 但是,在火狐下则不存在这样的问题。另外如果使用的是“input”选择符,也不会出现这个问题。

#13606 notabug ":required" property selector causes error in IE9 [email protected]
Description

In Firefox and Chrome, the selector $(':required') will correctly select any element with the HTML5 validation "required" property. In IE9, it returns this error:

SCRIPT5022: Syntax error, unrecognized expression: unsupported pseudo: required

Check it out in this fiddle: http://jsfiddle.net/G85tL/2/

Note if you change it from ":required" to "[required]", it works in all browsers.

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15
Note: See TracQuery for help on using queries.