Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Element: guarantee uniqueness #1337

Open
tidoust opened this issue Sep 10, 2024 · 1 comment
Open

Element: guarantee uniqueness #1337

tidoust opened this issue Sep 10, 2024 · 1 comment

Comments

@tidoust
Copy link
Member

tidoust commented Sep 10, 2024

As we're adding HTML Ruby Extensions, which monkey patches the HTML spec, I realize that we do not guarantee that elements will appear only once in elements extracts, (see Elements extracts guarantees). Should we?

I note that's easier said than done. On top of those introduced by HTML Ruby Extensions, there are duplicates already:

  • elements in SVG11 and SVG2. Guarantee could be: "unique when considering series"
  • elements in svg-animations and SVG11. We could apply the same superseding rules as for CSS.
  • the filter element in filter-effects-1 and SVG11/SVG2. Idem.
  • elements in epub-33 and HTML. Would require a new rule but namespaces are different, I think.
@dontcallmedom
Copy link
Member

SVG and HTML also have duplicate elements (at least a & title off the top of my head), which have pretty different constraints/data models.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants