Just came across an interesting source of front-end bugs: the DOM API (and its clients, like jQuery, etc.) allow you to traverse into and select from iframes.

Because iframes are different pages, they don't have to adhere to the unique ID syntax rule; it would be impossible for a page to ensure it has unique IDs relative to any page that it would be embedded in.


So you can have a page with an ID which has an iframe with an identical ID, and both pages are valid HTML per the spec.

· · Web · 1 · 0 · 0

But you no longer have the guarantee of ID uniqueness.

Sign in to participate in the conversation
La Quadrature du Net - Mastodon - Media Fédéré

Mamot.fr est une serveur Mastodon francophone, géré par La Quadrature du Net.