Skip to content

Instantly share code, notes, and snippets.

<link rel="import" href="http://www.polymer-project.org/components/polymer/polymer.html">
<polymer-element name="test-element" noscript>
<template>
Hello, <content></content>.
</template>
</polymer-element>
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<script src="../../tools/polymer/polymer.js"></script>
<element name="test-element">
<template>
@JanMiksovsky
JanMiksovsky / elementUpgradeTest
Created May 29, 2013 00:04
This test case for Polymer contrasts three similar situations in which a test element is used, but one of them is "upgraded" (converted from plain DOM to custom element instance) in an unexpected manner.
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<script src="../polymer/polymer.js"></script>
<element name="test-element">
<template>
@JanMiksovsky
JanMiksovsky / super.html
Created October 5, 2011 18:23
_super() implementation for JavaScript prototype-based class systems (e.g., jQuery) allows a function to call a function of the same name in a superclass
<!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<link rel="stylesheet" type="text/css" href="http://code.jquery.com/qunit/git/qunit.css" />
<script type="text/javascript" src="http://code.jquery.com/jquery-1.6.4.min.js"></script>
<script type="text/javascript" src="http://code.jquery.com/qunit/git/qunit.js"></script>