Page MenuHomePhabricator

Wikifunctions fragments: Wrap each fragment output in a span with microdata associating the callee
Open, MediumPublic

Description

Description

In the WikifunctionsPFragmentHandler, when we are triggered we should always return the content wrapped in a span with attributes that point to the ZID of the Function that generated it, so we can track things more clearly.

Desired behavior/Acceptance criteria

  • Decide what attributes/values we'll use for this.
  • All Wikifunctions-rendered fragments are clearly marked as such in the DOM
  • All Wikifunctions-rendered fragments provide a "blame" attribute pointing back to their generator function (e.g. Z801, etc.)

Completion checklist