Closed Bug 1198977 Opened 9 years ago Closed 9 years ago

Adjust handling of <a> tags with class and title attributes

Categories

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

defect
Not set
normal

Tracking

(Not tracked)

RESOLVED FIXED

People

(Reporter: jwhitlock, Assigned: jwhitlock)

References

()

Details

(Whiteboard: [bc:infra])

What did you do?
================
With the new importer from bug 1171957:
1. Go to https://browsercompat.herokuapp.com/importer/3628 (importer page for https://developer.mozilla.org/en-US/docs/Web/API/Web_Speech_API)
2. Press "Reset" button

What happened?
==============
Got two warnings:

* Unexpected attribute <a class="external external-icon">
* Unexpected attribute <a title="[B2G][SpeechRTC][User Story]: Enabling Voice input in Firefox OS">

What should have happened?
==========================
class values "external" and "external-icon" are used on MDN to decorate URLs, and should be silently dropped on import.  "title" is used with the jQuery tooltip plugin, and should be silently dropped.

Is there anything else we should know?
======================================
Title warnings appear 48 times, and class warnings 31 times
Assignee: nobody → jwhitlock
Component: General → BrowserCompat
Keywords: in-triage
Commit pushed to master at https://github.com/mdn/browsercompat

https://github.com/mdn/browsercompat/commit/16836bc10a541f0d0806acb4a7ea0db308e1bdb3
fix bug 1198977 - <a> class and title attributes

- 'external' and 'external-icon' classes dropped silently
- Other class values dropped with unexpected_attribute issue
- title attribute dropped silently
Status: NEW → RESOLVED
Closed: 9 years ago
Resolution: --- → FIXED
Keywords: in-triage
OS: Other → All
Summary: [Compat Data][Importer] Adjust handling of <a> tags with class and title attributes → Adjust handling of <a> tags with class and title attributes
Whiteboard: [specification][type:bug] → [bc:infra]
Product: developer.mozilla.org → developer.mozilla.org Graveyard
You need to log in before you can comment on or make changes to this bug.