Skip to main content

Bug Tracker

Side navigation

#7829 closed bug (duplicate)

Opened December 22, 2010 09:02AM UTC

Closed December 22, 2010 09:14AM UTC

Last modified December 22, 2010 03:02PM UTC

if id includes char DOT the size() will be wrong in IE7

Reported by: zhengxianquan@hotmail.com Owned by:
Priority: undecided Milestone: 1.6
Component: unfiled Version: 1.4.4
Keywords: Cc:
Blocked by: Blocking:
Description

Example html:

span id="hotel.query.keyword"

span id="hotel_query_keyword"

Example Code:

var id = "span#hotel\\\\\\.query\\\\\\.keyword";
alert($(id).size()); //'''is 1 in FF but 0 in my IE7'''
id = "span#hotel_query_keyword";
alert($(id).size()); //is 1 both in FF and IE

In firefox 3.6.13, every thing is OK.

In IE7, the first result will be different to FF.

Attachments (0)
Change History (5)

Changed December 22, 2010 09:14AM UTC by ajpiano comment:1

resolution: → duplicate
status: newclosed

Whatever happened to people actually searching to see if an issue exists ...?

Changed December 22, 2010 09:14AM UTC by ajpiano comment:2

Duplicate of #7533.

Changed December 22, 2010 09:31AM UTC by anonymous comment:3

It's not the same.

Please take a look to:

http://jsfiddle.net/QYUPQ/1/

Changed December 22, 2010 03:01PM UTC by snover comment:4

That link provides absolutely no evidence to suggest that this bug is not exactly the same as #7533. Furthermore, it’s invalid—you can’t have two elements with the same ID.

Changed December 22, 2010 03:02PM UTC by dmethvin comment:5

Your test case is invalid. There are two elements with the same id. That is not allowed.

This attribute assigns a name to an element. This name must be unique in a document. http://www.w3.org/TR/html4/struct/global.html#h-7.5.2