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)
developer.mozilla.org Graveyard
Editing
Tracking
(Not tracked)
RESOLVED
FIXED
People
(Reporter: trevorhemail-mozbug, Unassigned)
References
()
Details
Attachments
(1 file)
157.13 KB,
image/png
|
Details |
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¯os=1&include=1§ion=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¯os=1§ion=Properties then the closing </i> is not removed and icon duplication no longer occurs.
Comment 2•11 years ago
|
||
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.
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)
Comment 4•11 years ago
|
||
Can someone provide a screenshot of the issue? I'm not seeing it now. Thanks!
Comment 5•11 years ago
|
||
Sure. You can see it on: https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Date By doing a shift reload on https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Date/prototype and https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Date the problem will go away. I'm attaching the screenshot.
Comment 6•11 years ago
|
||
Comment 7•11 years ago
|
||
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.
Comment 8•11 years ago
|
||
Yes, not related to the redesign :-) We have a work-around and will think about a proper solution once we have launched the beta :-)
Comment 9•11 years ago
|
||
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
Updated•4 years ago
|
Product: developer.mozilla.org → developer.mozilla.org Graveyard
You need to log in
before you can comment on or make changes to this bug.
Description
•