Ticket #20 (closed enhancement: fixed)

Opened 7 years ago

Last modified 15 months ago

makeId() - Generate unique id attributes for HTML elements

Reported by: dartar Owned by: JavaWoman
Priority: high Milestone: 1.3.1
Component: core Version: 1.1.6.0
Severity: normal Keywords: ported
Cc:

Description (last modified by DarTar) (diff)

In a number or different contexts we want to generate HTML elements that have an id attribute. The result will only be valid XHTML if the id is unique on the page.

This is the development page for a new method that can generate id values while making sure they are actually unique. Of course the latter will only work reliably if every bit of Wikka code that (now) generates an id (or would need to) makes use of this method so it can keep track of already-used id values.

Status

tested

Ref

Related tickets

  • #471 (anchors and TOCs)
  • #13 Improved formatter

Change History

Changed 5 years ago by NilsLindenberg

  • type changed from defect to enhancement

[227] -adding makeID and needed constant to the core.

Changed 5 years ago by DarTar

  • description modified (diff)

Changed 5 years ago by DarTar

  • description modified (diff)

adding related ticket

Changed 5 years ago by JavaWoman

  • owner changed from unassigned to JavaWoman
  • milestone changed from 1.1.7.2 to 1.1.7

Changing milestone to 1.1.7 and assigning to myself: makeID() is already in trunk, but needs to be used by more client methods.

Changed 5 years ago by JavaWoman

  • status changed from new to assigned

Changed 3 years ago by DarTar

  • milestone changed from 1.2 to 1.3

Retargeting to 1.3. Code for this ticket may have already been committed to trunk, from which 1.3 will be branched. Consider backporting urgent issues to 1.2.X

Changed 3 years ago by DarTar

  • keywords ported added

Ported to branches/1.2 in [1493]

Changed 2 years ago by BrianKoontz

  • status changed from accepted to closed
  • resolution set to fixed

id attributes appear to be unique.

Changed 15 months ago by BrianKoontz

  • milestone changed from 1.3 to 1.3.1

Updated milestone to 1.3.1

Note: See TracTickets for help on using tickets.