Skip to content

should alttitle "output" contain label content? #464

@pkra

Description

@pkra

While working on #452, I noticed this

container.setAttribute('data-ams-doc-alttitle', container.textContent + altTitle.innerHTML); // NOTE assumes previousSibling handled first

which somewhat vaguely describes that we push not only the alt-title but also the (processed) label content into the data attribute.

Besides a risk of containing complex markup (e.g., from math mode), I'm wondering if this should be revisited.

E.g., the attribute could be renamed or split into 2 (for alt title & label). Then again, we can nowadays pick up the label downstream so we could also revert this back to just the title (in which case it should probably move to the title element output).

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions