Closed Bug 915200 Opened 11 years ago Closed 11 years ago

Icon duplication in content added to page with page template

Categories

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

defect
Not set
normal

Tracking

(Not tracked)

RESOLVED FIXED

People

(Reporter: trevorhemail-mozbug, Unassigned)

References

()

Details

Attachments

(1 file)

There is some strange icon duplication in content added to the page by the page template {{ page('en-US/docs/JavaScript/Reference/Global_Objects/Object/prototype', 'Properties') }}
The page template gets it content from:
https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Object/prototype?raw=1&macros=1&include=1&section=Properties

Looking at the source of that page the closing </i> has been stripped from the content
...  <span title="This API has not been standardized."><i class="icon-warning-sign"/></span></dt> ...

If you drop &include=1 from the url:
https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Object/prototype?raw=1&macros=1&section=Properties
then the closing </i> is not removed and icon duplication no longer occurs.
Sheppy: this looks pretty severe. A lot of pages (XUL/JavaScript) are affected. Could you have a look? I have no experience around these icons and scripts.

As we plan a regeneration later this week, we need to fix this at the same time.
Blocks: Spartacus
As a temporary workaround we have added spaces inside the <i> tags used by these templates
NonStandardBadge
DeprecatedBadge
Obsolete
Experimental

This prevents the <i> tag from being concatenated. (The closing tag is not removed as I stared in Comment 1)
Can someone provide a screenshot of the issue?  I'm not seeing it now.  Thanks!
Ahh, OK, so this is a template CSS issue, not a redesign issue. I'm seeing 2 "<i>" elements here.  I'll let you designers work it out, but let me know if you need help.
Yes, not related to the redesign :-)

We have a work-around and will think about a proper solution once we have launched the beta :-)
The pages mentioned here have been cleaned-up. For issues with the {{page}} macro, see bug 834055.
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.

Attachment

General

Created:
Updated:
Size: