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 comment:1
resolution: | → duplicate |
---|---|
status: | new → closed |
Changed December 22, 2010 09:31AM UTC by comment:3
Changed December 22, 2010 03:01PM UTC by 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 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
Whatever happened to people actually searching to see if an issue exists ...?