This is an archived snapshot of W3C's public bugzilla bug tracker, decommissioned in April 2019. Please see the home page for more details.

Bug 26139 - id case sensitivity? some browsers do and some don't
Summary: id case sensitivity? some browsers do and some don't
Status: RESOLVED WORKSFORME
Alias: None
Product: WHATWG
Classification: Unclassified
Component: HTML (show other bugs)
Version: unspecified
Hardware: Other other
: P3 normal
Target Milestone: Unsorted
Assignee: Ian 'Hixie' Hickson
QA Contact: contributor
URL: http://www.whatwg.org/specs/web-apps/...
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2014-06-19 01:04 UTC by contributor
Modified: 2014-09-02 17:09 UTC (History)
3 users (show)

See Also:


Attachments

Description contributor 2014-06-19 01:04:44 UTC
Specification: http://www.whatwg.org/specs/web-apps/current-work/multipage/elements.html
Multipage: http://www.whatwg.org/C#the-id-attribute
Complete: http://www.whatwg.org/c#the-id-attribute
Referrer: http://www.whatwg.org/specs/web-apps/current-work/multipage/

Comment:
id case sensitivity? some browsers do and some don't

Posted from: 2601:7:f00:2ca:b011:20b5:a96c:ac11
User agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:30.0) Gecko/20100101 Firefox/30.0
Comment 1 Jim Michaels 2014-06-19 01:17:52 UTC
I believe IE to be case insensitive on id attribute, and all others were case sensitive (which is better in my opinion).
standardization would be nice here.

example test:
somefile.html#abc

<p>insert lots of lorem ipsum here so id below is off-screen</p>
<p id="ABC">ABC</p>

IE will jump to the ABC. other browsers (chrome, safari, ff, opera) will do nothing because the id and the string after the # doesn't match.
Comment 2 Ian 'Hixie' Hickson 2014-06-20 21:27:10 UTC
Isn't the spec unambiguous on this point?
Comment 3 Ian 'Hixie' Hickson 2014-08-28 23:46:57 UTC
(sent e-mail to request clarification)
Comment 4 Jim Michaels 2014-08-30 19:54:08 UTC
I should have posted this to IE feedback instead of here. since's it's not a bug in the spec and instead in a browser, maybe this should be closed. my error.
Comment 5 Ian 'Hixie' Hickson 2014-09-02 17:09:14 UTC
Okie dokie! Thanks for the update!