3 ms·
No, browsers key IDs off a hash table in exactly the same way that they key classes. The reason is that the Web depends on being able to have multiple elements
by pcwalton 12y ago
No, browsers key IDs off a hash table in exactly the same way that they key classes. The reason is that the Web depends on being able to have multiple elements with one ID.
Source: I implemented this in Servo and studied Gecko, WebKit, and Blink code for it.