From e90ef30d79c4bce2d788caa8257d4181dafe3fdf Mon Sep 17 00:00:00 2001 From: Kevin Schaaf Date: Thu, 27 Apr 2017 16:17:36 -0700 Subject: [PATCH] Ensure tags in markdown are backtracked. Short-term stopgap to ensure they are not rendered in HTML. --- lib/legacy/legacy-element-mixin.html | 2 +- lib/mixins/property-effects.html | 4 ++-- lib/mixins/template-stamp.html | 29 +++++++++++++++---------- lib/utils/flattened-nodes-observer.html | 6 ++--- 4 files changed, 23 insertions(+), 18 deletions(-) diff --git a/lib/legacy/legacy-element-mixin.html b/lib/legacy/legacy-element-mixin.html index e831d6c1ef..013d86efd8 100644 --- a/lib/legacy/legacy-element-mixin.html +++ b/lib/legacy/legacy-element-mixin.html @@ -430,7 +430,7 @@ * are not automatically handled. For example, * a user should call `distributeContent` if distribution has been * invalidated due to an element being added or removed from the shadowRoot - * that contains an insertion point () inside its subtree. + * that contains an insertion point (``) inside its subtree. */ distributeContent() { if (window.ShadyDOM && this.shadowRoot) { diff --git a/lib/mixins/property-effects.html b/lib/mixins/property-effects.html index 5be94f0c8f..2321826b7e 100644 --- a/lib/mixins/property-effects.html +++ b/lib/mixins/property-effects.html @@ -605,7 +605,7 @@ /** * Returns true if a binding's metadata meets all the requirements to allow - * 2-way binding, and therefore a -changed event listener should be + * 2-way binding, and therefore a `-changed` event listener should be * added: * - used curly braces * - is a property (not attribute) binding @@ -1322,7 +1322,7 @@ * * The implementation makes a best-effort at binding interop: * Some native element properties have side-effects when - * re-setting the same value (e.g. setting .value resets the + * re-setting the same value (e.g. setting `.value` resets the * cursor position), so we do a dirty-check before setting the value. * However, for better interop with non-Polymer custom elements that * accept objects, we explicitly re-set object changes coming from the diff --git a/lib/mixins/template-stamp.html b/lib/mixins/template-stamp.html index af17ee3bfe..5efcab5303 100644 --- a/lib/mixins/template-stamp.html +++ b/lib/mixins/template-stamp.html @@ -136,43 +136,46 @@ * The template metadata object returned from this method has the following * structure (many fields optional): * + * ```js * { * // Flattened list of node metadata (for nodes that generated metadata) * nodeInfoList: [ * { * // `id` attribute for any nodes with id's for generating `$` map - * id: '', + * id: {string}, * // `on-event="handler"` metadata * events: [ * { - * name: '' - * value: '' + * name: {string}, // event name + * value: {string}, // handler method name * }, ... * ], * // Notes when the template contained a `` for shady DOM * // optimization purposes - * hasInsertionPoint: , - * // For nested