CVE-2015-9501 (Unknown, published 2019-10-22T22:15Z)
Description: value: The Artificial Intelligence theme before 1.2.4 for WordPress has XSS because Genericons HTML files are unnecessarily placed under the web root.
Severity: MEDIUM (CVSS v3 base score: 6.1)
Weakness: CWE-79 \u2014 Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')
The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users.
Repository: https://github.com/duchenerc/artificial-intelligence
Files changed:
Commit message: Fix potential XSS vulnerability with Genericons
Delete bundled example.html
Remove unecessary Genericons readme


Vulnerable code:
# Genericons

Genericons are vector icons embedded in a webfont designed to be clean and simple keeping with a generic aesthetic.

Use genericons for instant HiDPI, to change icon colors on the fly, or even with CSS effects such as drop-shadows or gradients!


## Usage

To use it, place the `font` folder in your stylesheet directory and enqueue the genericons.css file. Now you can create an icon like this:

```
.my-icon:before {
	content: '\f101';
	font: normal 16px/1 'Genericons';
	display: inline-block;
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
}
```

This will output a comment icon before every element with the class "my-icon". The `content: '\f101';` part of this CSS is easily copied from the helper tool at http://genericons.com/, or `example.html` in the `font` directory.

You can also use the bundled example.css if you'd rather insert the icons using HTML tags.


## Building your own Genericons

In the `source` directory, you'll find all Genericons source icons in SVG format. This will allow you to bake your own flavor of Genericons using a tool such as FontCustom (http://fontcustom.com) or Fontello (http://fontello.com). Perhaps you need more logos than are available in the base Genericons package? Just add those logos and bake your own expanded set. Maybe you need just a few of the icons Genericons provides, but would like to trim the fat? Remove the ones you won't need!


### FontCustom instructions

FontCustom is a powerful commandline tool which which bakes icon fonts from the SVG source files. It's the tool Genericons is built on, and it provides highly accurate and perfectly crisp icons, *provided all SVGs have the same pixel height*.

It's not that hard to use, and once it's installed you'll never think of icon-fonts the same way again. Seriously, you should try it. Icon fonts for everyone!

1. Install FontCustom. Follow the instructions on the website: http://fontcustom.com/
2. In the `source` directory from the Genericons download, open the file called `fontcustom.yml` in a text editor. Customize the `font_name` and `css_selector`.
3. Open a terminal. Browse to the `source` directory. Type `fontcustom compile`.

You'll now receive a brand new subdirectory called `fontcustom-webfont`. Inside here you'll find your very own flavor of Genericons, with only the icons you want, including a handy example page that'll help you copy/paste the necessary glyphs or CSS values. 

*Please note*: In the source directory, there's a hidden file called `.fontcustom-manifest.json`. This file is auto-generated by the FontCustom tool, and holds codepoints (unicode addresses) for every glyph, so its address doesn't change when you add or remove icons. If you feel the need to "start fresh" with the unicode addresses, you should delete this file. 


### Fontello instructions

Fontello is very easy to use. Just drop the SVG files of the icons you want onto their website and download the font. The downside is that Fontello seems to ignore the 16px pixelgrid, so you'll end up with fuzzy icons. Buyer beware.


## Notes

**Photoshop mockups**

The `Genericons.ttf` file found in the `font` directory can be placed in your system fonts folder and used Photoshop or other graphics apps if you like.

If you're using Genericons in your Photoshop mockups, please remember to delete the old version of the font from Font Book, and grab the new one from the zip file. This also affects using it in your webdesigns: if you have an old version of the font installed locally, that's the font that'll be used in your website as well, so if you're missing icons, check for old versions of the font on your system.

**Pixel grid**

Genericons has been designed for a 16x16px grid. That means it'll look sharp at font-size: 16px exactly. It'll also be crisp at multiples thereof, such as 32px or 64px. It'll look reasonably crisp at in-between font sizes such as 24px or 48px, but not quite as crisp as 16 or 32. Please don't set the font-size to 17px, though, that'll just look terrible blurry.

**Antialiasing**

If you keep intact the `-webkit-font-smoothing: antialiased;` and `-moz-osx-font-smoothing: grayscale;` CSS properties. That'll make the icons look their best possible, in Firefox and WebKit based browsers.

**optimizeLegibility**

Note: On Android browsers with version 4.2, 4.3, and probably later, Genericons will simply not show up if you're using the CSS property "text-rendering" set to "optimizeLegibility.

**Updates**

We don't often update icons, but do very carefully when we get good feedback suggesting improvements. Please be mindful if you upgrade, and check that the updated icons behave as you intended.


## Changelog

**3.3**

The Open Source release.

You can now build your own flavors of Genericons with all the SVGs provided. 


**3.2**

A number of new icons and a couple of quick updates. 

* New: Activity
* New: HTML anchor
* New: Bug
* New: Download
* New: Handset
* New: Microphone
* New: Minus
* New: Plus
* New: Move
* New: Rating stars, empty, half, full
* New: Shuffle
* New: video camera
* New: Spotify
* New: Twitch
* Update: Fixed geometry in Edit icon
* Update: Updated Foursquare icon
* IE8 bugfix, slipstreamed into this. 

Twitch and Spotify mark the last social icons that will be added to Genericons.
Future social icons will have to happen in a separate font. 

**3.1**

Genericons is now generated using a commandline tool called FontCustom. This makes it far easier to add new icons to the font, but the switch means the download zip now has a different layout, fonts have different filenames, there's now no .otf font included (but the .ttf should suffice), and the font now has slightly different metrics. I've taken great care to ensure this new version should work as a drop-in replacement, but please be mindful and test carefully if you choose to upgrade.

* Per feedback, the baked-in 16px width and height has been removed from the helper CSS. It wasn't really necessary (the glyph itself has these dimensions naturally), and it caused some headaches.
* Base64 encoding is now included by default in the helper CSS. This makes it drop-in easy to get Genericons working in Firefox even when using a CDN. 
* Title attribute on website tool.
* New: Website.
* New: Ellipsis.
* New: Foursquare.
* New: X-post.
* New: Sitemap.
* New: Hierarchy.
* New: Paintbrush.
* Updated: Show and Hide icons were updated for clarity.

**3.0.3**

Bunch of updates mostly.

* Two new icons, Dropbox and Fullscreen.
* Updates to all icons containing an exclamation mark.
* Updates to Image and Quote.
* Nicer "Share" icon.
* Bigger default Linkedin icon.

**3.0.2**

A slew of new stuff and updates.

* Social icons: Skype, Digg, Reddit, Stumbleupon, Pocket.
* New generic icons: heart, lock and print.
* New editing icons: code, bold, italic, image
* New interaction icons: subscribe, unsubscribe, subscribed, reply all, reply, flag.
* The hyperlink icon has been updated to be clearer, chunkier.
* The "home" icon has been updated for style, size and clarity.
* The email icon has been updated for style and clarity, and to fit with the new subscribe icons.
* The document icon has been updated for style.
* The "pin" icon has been updated for style and clarity.
* The Twitter icon has been scaled down to fit with the other social icons.

**3.0.1**

Mostly maintenance. 

* Fixed an issue with the example page that showed an old "top" icon instead of the actual NEW "refresh" icon.
* Added inverse Google+ and Path.
* Replaced tabs with spaces in the helper CSS.
* Changed the Genericons.com copy/paste tool to serve span's instead of div's for casual icon insertion. It's being converted to "inline-block" anyway.

**3.0**

Mainly maintenance and a few new icons.

* Fast forward, rewind, PollDaddy, Notice, Info, Help, Portfolio
* Updated the feed icon. It's a bit smaller now for consistency, the previous one was rather big.
* So, the previous version numbering, 2.09, wasn't very PHP version compare friendly. So from now on it'll be 3.0, 3.1 etc. Props Ipstenu.
* Genericons.com now has a mini release blog.
* The CSS has prettier formatting, props Konstantin Obenland.

**2.09**

Updated Facebook icon to new version. Updated Instagram logo to use new one-color version. Updated Google+ icon to use same radius as Instagram and Facebook. Added a bunch of new icons, cog, unapprove, cart, media player buttons, tablet, send to tablet.                                            

**2.06**

Included Base64 encoded version. This is necessary for Genericons to work with CDNs in Firefox. Firefox blocks fonts linked from a different domain. A CDN (typically s.example.com) usually puts the font on a subdomain, and is hence blocked in Firefox.

**2.05**

Added a bunch of new icons, including upload to cloud, download to cloud, many more.

**2.0**

Initial public release
<!DOCTYPE html>
<html>
<head>
<title>Genericons</title>
<link rel="stylesheet" href="genericons.css">
<script type="text/javascript" src="https://ajax.googleapis.com/ajax/libs/jquery/1.7.2/jquery.min.js"></script>
<style type="text/css">
/**
 * Example page CSS
 */

body {
	font-family: sans-serif;
	line-height: 1.5;
	margin: 0;
	color: #2f2d2c;
	background: #fff;
	font-size: 11pt;
}

a {
	color: #2f2d2c;
}

h4 {
	margin-top: 40px;
}

#iconlist {
	clear: both;
	margin-bottom: 20px;
}

#iconlist div {
	padding: 10px;
	overflow: hidden;
	white-space: nowrap;
	font-size: 32px;
	line-height: 1;
	position: relative;
	width: 32px;
	height: 32px;
}

#iconlist div:before {
	margin-right: 20px;
}

#iconlist div:hover {
	cursor: pointer;
	color: #e4c05c;
}

#primary {
	background: #e4c05c;
	overflow: hidden;
}

#content {
	position: relative;
	color: #fff;
	max-width: 980px;
	padding: 0 10px;
	margin: 0 auto;
}

#icons {
	background: #fbfbfb;
}

#icons #iconlist {
	max-width: 980px;
	box-sizing: border-box;
	-moz-box-sizing:border-box;
	-webkit-box-sizing:border-box;
	padding: 20px 0;
	margin: 0 auto;
}

#glyph {
	float: left;
	width: 50%;
	box-sizing: border-box;
	-moz-box-sizing:border-box;
	-webkit-box-sizing:border-box;
	-ms-box-sizing:border-box;
	padding: 20px 0;
}

#glyph .info {
	float: right;
	width: 180px;
	padding: 36px 0 0 0;
}

#glyph .info a {
	color: #2f2d2c;
	display: block;
	padding: 8px 0 8px 15px;
}

#glyph .info strong {
	font-weight: normal;
	display: block;
	padding: 8px 0;
}

#glyph .genericon {
	font-size: 256px;
	width: 256px;
	height: 256px;
	overflow: visible;
	float: left;
}

.description {
	margin-top: 50px;
	width: 48%;
	float: right;
	padding-left: 40px;
	margin-left: 2%;
	box-sizing: border-box;
	-moz-box-sizing:border-box;
	-webkit-box-sizing:border-box;
	-ms-box-sizing:border-box;
	background-size: 4px 4px;
}

#primary h2 {
	color: white;
	margin: 0 auto;
	padding: 22px 0 0 20px;
	max-width: 980px;
	font-size: 2em;
}

#primary h2 span {
	display: block;
	font-weight: normal;
	font-size: 12pt;
}

#footer {
	clear: both;
	max-width: 980px;
	margin: 80px auto;
	text-align: center;
	text-transform: uppercase;
	letter-spacing: .1em;
	font-size: 7pt;
	color: #ddd;
}

#footer a {
	color: #ccc;
	display: inline-block;
	width: 150px;
	overflow: hidden;
	text-indent: 100%;
	position: relative;
	top: 2px;
	opacity: .3;
	background-repeat: no-repeat;
	background-position: center top;
	background-image: url('data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0idXRmLTgiPz4NCjwhLS0gR2VuZXJhdG9yOiBBZG9iZSBJbGx1c3RyYXRvciAxNi4wLjQsIFNWRyBFeHBvcnQgUGx1Zy1JbiAuIFNWRyBWZXJzaW9uOiA2LjAwIEJ1aWxkIDApICAtLT4NCjwhRE9DVFlQRSBzdmcgUFVCTElDICItLy9XM0MvL0RURCBTVkcgMS4xLy9FTiIgImh0dHA6Ly93d3cudzMub3JnL0dyYXBoaWNzL1NWRy8xLjEvRFRE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uMzU1LDQuODM3LDY2LjcwMiw1LjA2TDY2LjcwMiw1LjA2eiIvPg0KPC9nPg0KPC9zdmc+DQo=');
}

#footer a:hover {
	opacity: 1;
}

pre, code {
	font: 14px/1.5 monospace;
}

.code {
	display: block;
	font: 14px/1.5 monospace;
	width: 600px;
	white-space: pre;
	border: 1px solid #ccc;
	padding: 10px;
	overflow: auto;
	min-height: 110px;
}

#iconlist .new, #iconlist .update {
	position: relative;
}

#iconlist .new:after, #iconlist .update:after {
	color: #e4c05c;
	display: block;
	content: "NEW";
	font: bold 8px/1 sans-serif;
	position: absolute;
	top: 0px;
	text-align: center;
	z-index: 10;
	width: 100%;
}

#iconlist .update:after {
	content: "UPDATE";
	left: -1px;
}

body.searching #iconlist span.update:after, body.searching #iconlist span.new:after {
	display: none;
}

#search {
	border: 0;
	border-radius: 2px;
	position: absolute;
	right: 20px;
	font: 11pt sans-serif;
	padding: 10px;
	top: 20px;
	background: rgba(255,255,255,.8);
}

#search:focus {
	background: #fff;
	outline: none;
}

.genericon-404 {
	display: none !important; /* This is an easter egg */
}

.genericon:after {
	content: attr(alt);
	display: block;
	font-size: 9px;
	color: #999;
	text-align: center;
}

.hideUACs.genericon:after {
	content: none;
}


@media only screen and ( max-width: 900px ) {

	#glyph {
		float: none;
		width: 100%;
	}
	
	#glyph .info {
		width: 30%;
	}
	#glyph .genericon {
		width: 70%;
	}

	.description {
		clear: both;
		width: 100%;
		background: none;
		padding-left: 0;
		float: none;
	}

}
</style>
<script type="text/javascript">
/**
 * Example page JS
 */

function copyToClipboard ( text, copyMode ) {
	if ( copyMode == "css" ) {
		window.prompt( "Copy this, then paste in your CSS :before selector.", text );
	} else if ( copyMode == "html" ) {
		window.prompt( "Copy this, then paste in your HTML.", text );
	} else {
		window.prompt( "Copy this, then paste in your Photoshop textfield.", text );
	}
}

function pickRandomIcon() {
	var divs = jQuery("#iconlist div").get().sort(function(){
			return Math.round(Math.random())-0.5;
		}).slice(0,1);

	attr = jQuery(divs).attr('alt');
	cssclass = jQuery(divs).attr('class');
	displayGlyph( attr, cssclass );

}

function displayGlyph( attr, cssclass ) {

	// set permalink
	var permalink = cssclass.split(' genericon-')[1];
	window.location.hash = permalink;

	// css copy string
	csstext = "content: \'\\" + attr + "';";

	// html copy string
	htmltext = '<span class="' + cssclass + '"></span>';

	// glyph copy string
	glyphtemp = "&#x" + attr + ";";
	jQuery('#temp').html( glyphtemp );
	glyphtext = jQuery('#temp').text();

	// final output
	output = '<div class="' + cssclass + '"></div>'
	+ '<div class="info">'
		+ '<strong>&larr; ' + cssclass.split( ' ' )[1] + '</strong>'
		+ '<a href="javascript:copyToClipboard(csstext, \'css\')">Copy CSS</a>'
		+ '<a href="javascript:copyToClipboard(htmltext, \'html\')">Copy HTML</a>'
		+ '<a href="javascript:copyToClipboard(glyphtext)">Copy Glyph</a>'
	+ '</div>';

	jQuery( '#glyph' ).html( output );

}

function sortUnicode ( a, b ) {
	var numberA = jQuery(a).attr('alt').replace('f', '');
	var numberB = jQuery(b).attr('alt').replace('f', '');
	var contentA =parseInt( numberA, 16 );
	var contentB =parseInt( numberB, 16 );
	return (contentA < contentB) ? -1 : (contentA > contentB) ? 1 : 0;
}

jQuery(document).ready(function() {

	// pick random icon if no permalink, otherwise go to permalink
	if ( window.location.hash ) {
		permalink = "genericon-" + window.location.hash.split('#')[1];
		attr = jQuery( '.' + permalink ).attr( 'alt' );
		cssclass = jQuery( '.' + permalink ).attr('class');
		displayGlyph( attr, cssclass );
	} else {
		pickRandomIcon();
	}

	jQuery( '#iconlist div' ).click(function() {

		attr = jQuery( this ).attr( 'alt' );
		cssclass = jQuery( this ).attr( 'class' );

		displayGlyph( attr, cssclass );

	});

	var $rows = jQuery('#iconlist div');
	jQuery('#search').keyup(function() {
	
		// remove update text when using search
		jQuery('body').addClass('searching');
	
	    var val = jQuery.trim(jQuery(this).val()).replace(/ +/g, ' ').toLowerCase();
	
	    $rows.show().filter(function() {
	        var text = jQuery(this).text().replace(/\s+/g, ' ').toLowerCase();
	        return !~text.indexOf(val);
	    }).hide();
	});
	
	jQuery('input#search').focus();

	// sort based on number
	jQuery('#iconlist div').sort( sortUnicode ).appendTo('#iconlist');

});

function toggleUACs() {
	jQuery('.genericon').toggleClass('hideUACs');
}
</script>
</head>

<body>

<div id="main">

	<div id="primary">
		<div id="content">

			<h2>Genericons <span>&mdash; A free, GPL, flexible icon font for blogs!</span></h2>

			<input placeholder="Filter..." name="search" id="search" type="text" value="" maxlength="150" />

			<div id="glyph">
			</div>
			
			<div class="description">
				<p>Genericons are vector icons embedded in a webfont designed to be clean and simple keeping with a generic aesthetic. Use for instant HiDPI or to easily change colors on the fly.</p>
			</div>
			
		</div>
	</div>

	<div id="icons">
		<div id="iconlist">
		
			<!-- note, the text inside the HTML elements is purely for the seach -->
			
			<div alt="f423" class="genericon genericon-404" title="genericon-404">404</div>
			
			<div alt="f508" class="genericon genericon-activity" title="genericon-activity">activity</div>
			
			<div alt="f509" class="genericon genericon-anchor" title="genericon-anchor">anchor</div>
			
			<div alt="f101" class="genericon genericon-aside" title="genericon-aside">aside</div>
			
			<div alt="f416" class="genericon genericon-attachment" title="genericon-attachment">attachment</div>
			
			<div alt="f109" class="genericon genericon-audio" title="genericon-audio">audio</div>
			
			<div alt="f471" class="genericon genericon-bold" title="genericon-bold">bold</div>
			
			<div alt="f444" class="genericon genericon-book" title="genericon-book">book</div>
			
			<div alt="f50a" class="genericon genericon-bug" title="genericon-bug">bug</div>
			
			<div alt="f447" class="genericon genericon-cart" title="genericon-cart">cart</div>
			
			<div alt="f301" class="genericon genericon-category" title="genericon-category">category</div>
			
			<div alt="f108" class="genericon genericon-chat" title="genericon-chat">chat</div>
			
			<div alt="f418" class="genericon genericon-checkmark" title="genericon-checkmark">checkmark</div>
			
			<div alt="f405" class="genericon genericon-close" title="genericon-close">close</div>
			
			<div alt="f406" class="genericon genericon-close-alt" title="genericon-close-alt">close-alt</div>
			
			<div alt="f426" class="genericon genericon-cloud" title="genericon-cloud">cloud</div>
			
			<div alt="f440" class="genericon genericon-cloud-download" title="genericon-cloud-download">cloud-download</div>
			
			<div alt="f441" class="genericon genericon-cloud-upload" title="genericon-cloud-upload">cloud-upload</div>
			
			<div alt="f462" class="genericon genericon-code" title="genericon-code">code</div>
			
			<div alt="f216" class="genericon genericon-codepen" title="genericon-codepen">codepen</div>
			
			<div alt="f445" class="genericon genericon-cog" title="genericon-cog">cog</div>
			
			<div alt="f432" class="genericon genericon-collapse" title="genericon-collapse">collapse</div>
			
			<div alt="f300" class="genericon genericon-comment" title="genericon-comment">comment</div>
			
			<div alt="f305" class="genericon genericon-day" title="genericon-day">day</div>
			
			<div alt="f221" class="genericon genericon-digg" title="genericon-digg">digg</div>
			
			<div alt="f443" class="genericon genericon-document" title="genericon-document">document</div>
			
			<div alt="f428" class="genericon genericon-dot" title="genericon-dot">dot</div>
			
			<div alt="f502" class="genericon genericon-downarrow" title="genericon-downarrow">downarrow</div>
			
			<div alt="f50b" class="genericon genericon-download" title="genericon-download">download</div>
			
			<div alt="f436" class="genericon genericon-draggable" title="genericon-draggable">draggable</div>
			
			<div alt="f201" class="genericon genericon-dribbble" title="genericon-dribbble">dribbble</div>
			
			<div alt="f225" class="genericon genericon-dropbox" title="genericon-dropbox">dropbox</div>
			
			<div alt="f433" class="genericon genericon-dropdown" title="genericon-dropdown">dropdown</div>
			
			<div alt="f434" class="genericon genericon-dropdown-left" title="genericon-dropdown-left">dropdown-left</div>
			
			<div alt="f411" class="genericon genericon-edit" title="genericon-edit">edit</div>
			
			<div alt="f476" class="genericon genericon-ellipsis" title="genericon-ellipsis">ellipsis</div>
			
			<div alt="f431" class="genericon genericon-expand" title="genericon-expand">expand</div>
			
			<div alt="f442" class="genericon genericon-external" title="genericon-external">external</div>
			
			<div alt="f203" class="genericon genericon-facebook" title="genericon-facebook">facebook</div>
			
			<div alt="f204" class="genericon genericon-facebook-alt" title="genericon-facebook-alt">facebook-alt</div>
			
			<div alt="f458" class="genericon genericon-fastforward" title="genericon-fastforward">fastforward</div>
			
			<div alt="f413" class="genericon genericon-feed" title="genericon-feed">feed</div>
			
			<div alt="f468" class="genericon genericon-flag" title="genericon-flag">flag</div>
			
			<div alt="f211" class="genericon genericon-flickr" title="genericon-flickr">flickr</div>
			
			<div alt="f226" class="genericon genericon-foursquare" title="genericon-foursquare">foursquare</div>
			
			<div alt="f474" class="genericon genericon-fullscreen" title="genericon-fullscreen">fullscreen</div>
			
			<div alt="f103" class="genericon genericon-gallery" title="genericon-gallery">gallery</div>
			
			<div alt="f200" class="genericon genericon-github" title="genericon-github">github</div>
			
			<div alt="f206" class="genericon genericon-googleplus" title="genericon-googleplus">googleplus</div>
			
			<div alt="f218" class="genericon genericon-googleplus-alt" title="genericon-googleplus-alt">googleplus-alt</div>
			
			<div alt="f50c" class="genericon genericon-handset" title="genericon-handset">handset</div>
			
			<div alt="f461" class="genericon genericon-heart" title="genericon-heart">heart</div>
			
			<div alt="f457" class="genericon genericon-help" title="genericon-help">help</div>
			
			<div alt="f404" class="genericon genericon-hide" title="genericon-hide">hide</div>
			
			<div alt="f505" class="genericon genericon-hierarchy" title="genericon-hierarchy">hierarchy</div>
			
			<div alt="f409" class="genericon genericon-home" title="genericon-home">home</div>
			
			<div alt="f102" class="genericon genericon-image" title="genericon-image">image</div>
			
			<div alt="f455" class="genericon genericon-info" title="genericon-info">info</div>
			
			<div alt="f215" class="genericon genericon-instagram" title="genericon-instagram">instagram</div>
			
			<div alt="f472" class="genericon genericon-italic" title="genericon-italic">italic</div>
			
			<div alt="f427" class="genericon genericon-key" title="genericon-key">key</div>
			
			<div alt="f503" class="genericon genericon-leftarrow" title="genericon-leftarrow">leftarrow</div>
			
			<div alt="f107" class="genericon genericon-link" title="genericon-link">link</div>
			
			<div alt="f207" class="genericon genericon-linkedin" title="genericon-linkedin">linkedin</div>
			
			<div alt="f208" class="genericon genericon-linkedin-alt" title="genericon-linkedin-alt">linkedin-alt</div>
			
			<div alt="f417" class="genericon genericon-location" title="genericon-location">location</div>
			
			<div alt="f470" class="genericon genericon-lock" title="genericon-lock">lock</div>
			
			<div alt="f410" class="genericon genericon-mail" title="genericon-mail">mail</div>
			
			<div alt="f422" class="genericon genericon-maximize" title="genericon-maximize">maximize</div>
			
			<div alt="f419" class="genericon genericon-menu" title="genericon-menu">menu</div>
			
			<div alt="f50d" class="genericon genericon-microphone" title="genericon-microphone">microphone</div>
			
			<div alt="f421" class="genericon genericon-minimize" title="genericon-minimize">minimize</div>
			
			<div alt="f50e" class="genericon genericon-minus" title="genericon-minus">minus</div>
			
			<div alt="f307" class="genericon genericon-month" title="genericon-month">month</div>
			
			<div alt="f50f" class="genericon genericon-move" title="genericon-move">move</div>
			
			<div alt="f429" class="genericon genericon-next" title="genericon-next">next</div>
			
			<div alt="f456" class="genericon genericon-notice" title="genericon-notice">notice</div>
			
			<div alt="f506" class="genericon genericon-paintbrush" title="genericon-paintbrush">paintbrush</div>
			
			<div alt="f219" class="genericon genericon-path" title="genericon-path">path</div>
			
			<div alt="f448" class="genericon genericon-pause" title="genericon-pause">pause</div>
			
			<div alt="f437" class="genericon genericon-phone" title="genericon-phone">phone</div>
			
			<div alt="f473" class="genericon genericon-picture" title="genericon-picture">picture</div>
			
			<div alt="f308" class="genericon genericon-pinned" title="genericon-pinned">pinned</div>
			
			<div alt="f209" class="genericon genericon-pinterest" title="genericon-pinterest">pinterest</div>
			
			<div alt="f210" class="genericon genericon-pinterest-alt" title="genericon-pinterest-alt">pinterest-alt</div>
			
			<div alt="f452" class="genericon genericon-play" title="genericon-play">play</div>
			
			<div alt="f439" class="genericon genericon-plugin" title="genericon-plugin">plugin</div>
			
			<div alt="f510" class="genericon genericon-plus" title="genericon-plus">plus</div>
			
			<div alt="f224" class="genericon genericon-pocket" title="genericon-pocket">pocket</div>
			
			<div alt="f217" class="genericon genericon-polldaddy" title="genericon-polldaddy">polldaddy</div>
			
			<div alt="f460" class="genericon genericon-portfolio" title="genericon-portfolio">portfolio</div>
			
			<div alt="f430" class="genericon genericon-previous" title="genericon-previous">previous</div>
			
			<div alt="f469" class="genericon genericon-print" title="genericon-print">print</div>
			
			<div alt="f106" class="genericon genericon-quote" title="genericon-quote">quote</div>
			
			<div alt="f511" class="genericon genericon-rating-empty" title="genericon-rating-empty">rating-empty</div>
			
			<div alt="f512" class="genericon genericon-rating-full" title="genericon-rating-full">rating-full</div>
			
			<div alt="f513" class="genericon genericon-rating-half" title="genericon-rating-half">rating-half</div>
			
			<div alt="f222" class="genericon genericon-reddit" title="genericon-reddit">reddit</div>
			
			<div alt="f420" class="genericon genericon-refresh" title="genericon-refresh">refresh</div>
			
			<div alt="f412" class="genericon genericon-reply" title="genericon-reply">reply</div>
			
			<div alt="f466" class="genericon genericon-reply-alt" title="genericon-reply-alt">reply-alt</div>
			
			<div alt="f467" class="genericon genericon-reply-single" title="genericon-reply-single">reply-single</div>
			
			<div alt="f459" class="genericon genericon-rewind" title="genericon-rewind">rewind</div>
			
			<div alt="f501" class="genericon genericon-rightarrow" title="genericon-rightarrow">rightarrow</div>
			
			<div alt="f400" class="genericon genericon-search" title="genericon-search">search</div>
			
			<div alt="f438" class="genericon genericon-send-to-phone" title="genericon-send-to-phone">send-to-phone</div>
			
			<div alt="f454" class="genericon genericon-send-to-tablet" title="genericon-send-to-tablet">send-to-tablet</div>
			
			<div alt="f415" class="genericon genericon-share" title="genericon-share">share</div>
			
			<div alt="f403" class="genericon genericon-show" title="genericon-show">show</div>
			
			<div alt="f514" class="genericon genericon-shuffle" title="genericon-shuffle">shuffle</div>
			
			<div alt="f507" class="genericon genericon-sitemap" title="genericon-sitemap">sitemap</div>
			
			<div alt="f451" class="genericon genericon-skip-ahead" title="genericon-skip-ahead">skip-ahead</div>
			
			<div alt="f450" class="genericon genericon-skip-back" title="genericon-skip-back">skip-back</div>
			
			<div alt="f220" class="genericon genericon-skype" title="genericon-skype">skype</div>
			
			<div alt="f424" class="genericon genericon-spam" title="genericon-spam">spam</div>
			
			<div alt="f515" class="genericon genericon-spotify" title="genericon-spotify">spotify</div>
			
			<div alt="f100" class="genericon genericon-standard" title="genericon-standard">standard</div>
			
			<div alt="f408" class="genericon genericon-star" title="genericon-star">star</div>
			
			<div alt="f105" class="genericon genericon-status" title="genericon-status">status</div>
			
			<div alt="f449" class="genericon genericon-stop" title="genericon-stop">stop</div>
			
			<div alt="f223" class="genericon genericon-stumbleupon" title="genericon-stumbleupon">stumbleupon</div>
			
			<div alt="f463" class="genericon genericon-subscribe" title="genericon-subscribe">subscribe</div>
			
			<div alt="f465" class="genericon genericon-subscribed" title="genericon-subscribed">subscribed</div>
			
			<div alt="f425" class="genericon genericon-summary" title="genericon-summary">summary</div>
			
			<div alt="f453" class="genericon genericon-tablet" title="genericon-tablet">tablet</div>
			
			<div alt="f302" class="genericon genericon-tag" title="genericon-tag">tag</div>
			
			<div alt="f303" class="genericon genericon-time" title="genericon-time">time</div>
			
			<div alt="f435" class="genericon genericon-top" title="genericon-top">top</div>
			
			<div alt="f407" class="genericon genericon-trash" title="genericon-trash">trash</div>
			
			<div alt="f214" class="genericon genericon-tumblr" title="genericon-tumblr">tumblr</div>
			
			<div alt="f516" class="genericon genericon-twitch" title="genericon-twitch">twitch</div>
			
			<div alt="f202" class="genericon genericon-twitter" title="genericon-twitter">twitter</div>
			
			<div alt="f446" class="genericon genericon-unapprove" title="genericon-unapprove">unapprove</div>
			
			<div alt="f464" class="genericon genericon-unsubscribe" title="genericon-unsubscribe">unsubscribe</div>
			
			<div alt="f401" class="genericon genericon-unzoom" title="genericon-unzoom">unzoom</div>
			
			<div alt="f500" class="genericon genericon-uparrow" title="genericon-uparrow">uparrow</div>
			
			<div alt="f304" class="genericon genericon-user" title="genericon-user">user</div>
			
			<div alt="f104" class="genericon genericon-video" title="genericon-video">video</div>
			
			<div alt="f517" class="genericon genericon-videocamera" title="genericon-videocamera">videocamera</div>
			
			<div alt="f212" class="genericon genericon-vimeo" title="genericon-vimeo">vimeo</div>
			
			<div alt="f414" class="genericon genericon-warning" title="genericon-warning">warning</div>
			
			<div alt="f475" class="genericon genericon-website" title="genericon-website">website</div>
			
			<div alt="f306" class="genericon genericon-week" title="genericon-week">week</div>
			
			<div alt="f205" class="genericon genericon-wordpress" title="genericon-wordpress">wordpress</div>
			
			<div alt="f504" class="genericon genericon-xpost" title="genericon-xpost">xpost</div>
			
			<div alt="f213" class="genericon genericon-youtube" title="genericon-youtube">youtube</div>
			
			<div alt="f402" class="genericon genericon-zoom" title="genericon-zoom">zoom</div>
			

		</div>
		
		<div id="temp" style="display: none;"></div>
		
	</div>

	<div id="footer">

		<p>An <a href="http://automattic.com" rel="nofollow">Automattic</a> Portrayal</p>
		<p>No designers were harmed in the making of this icon font.</p>
		

	</div>

</div>

</body>
</html>

Fixed code: