Skip to content

Commit a5fce6c

Browse files
authored
Update template docs.
In support of Polymer#5222, this updated the `template()` documentation so that it no longer lists support for `typeof template === 'string'` types.
1 parent 041e31b commit a5fce6c

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

lib/mixins/element-mixin.js

+2-4
Original file line numberDiff line numberDiff line change
@@ -32,8 +32,7 @@ import { PropertiesMixin } from './properties-mixin.js';
3232
*
3333
* - `static get template()`: Users may provide the template directly (as
3434
* opposed to via `dom-module`) by implementing a static `template` getter.
35-
* The getter may return an `HTMLTemplateElement` or a string, which will
36-
* automatically be parsed into a template.
35+
* The getter must return an `HTMLTemplateElement`.
3736
*
3837
* - `static get properties()`: Should return an object describing
3938
* property-related metadata used by Polymer features (key: property name
@@ -350,8 +349,7 @@ export const ElementMixin = dedupingMixin(base => {
350349
*
351350
* Users may override this getter to return an arbitrary template
352351
* (in which case the `is` getter is unnecessary). The template returned
353-
* may be either an `HTMLTemplateElement` or a string that will be
354-
* automatically parsed into a template.
352+
* must be an `HTMLTemplateElement`.
355353
*
356354
* Note that when subclassing, if the super class overrode the default
357355
* implementation and the subclass would like to provide an alternate

0 commit comments

Comments
 (0)