Closed Bug 856593 Opened 11 years ago Closed 11 years ago

Unable to use title attribute on <div> on Kuma

Categories

(developer.mozilla.org Graveyard :: General, defect)

All
Other
defect
Not set
normal

Tracking

(Not tracked)

RESOLVED FIXED

People

(Reporter: sheppy, Unassigned)

Details

(Whiteboard: [specification][type:bug])

What did you do?
================
1. Created a template that uses the title attribute on <div> to create a tooltip for a compatibility information badge.

What happened?
==============
The title attribute is stripped out when the page is rendered.

What should have happened?
==========================
The title attribute should remain so that the tooltip works.

Is there anything else we should know?
======================================
I know title isn't normally used on <div> but it's useful for this specific purpose.

See:

https://developer.mozilla.org/en-US/docs/Template:IconBadge (the core template)

https://developer.mozilla.org/en-US/docs/Template:PrivilegedBadge (the template being directly invoked in this case)

https://developer.mozilla.org/en-US/docs/WebAPI (the page using the PrivilegedBadge template).
Commits pushed to master at https://github.com/mozilla/kuma

https://github.com/mozilla/kuma/commit/d07e537fbcb0ff356e3fcc574e97409ce364ad97
fix bug 856593 - Add title attribute

https://github.com/mozilla/kuma/commit/439f798be360b27bc9cfd68a37e6f47913b40a8d
Merge pull request #981 from darkwing/title-attribute-856593

fix bug 856593 - Add title attribute
Status: NEW → RESOLVED
Closed: 11 years ago
Resolution: --- → FIXED
Product: developer.mozilla.org → developer.mozilla.org Graveyard
You need to log in before you can comment on or make changes to this bug.