#7829 closed bug (duplicate)
if id includes char DOT the size() will be wrong in IE7
Reported by: | 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.
Change History (5)
comment:1 Changed 13 years ago by
Resolution: | → duplicate |
---|---|
Status: | new → closed |
comment:3 Changed 13 years ago by
It's not the same.
Please take a look to: http://jsfiddle.net/QYUPQ/1/
comment:4 Changed 13 years ago by
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.
comment:5 Changed 13 years ago by
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
Whatever happened to people actually searching to see if an issue exists ...?