| Index: pkg/polymer/lib/src/custom_tag_name.dart
|
| diff --git a/pkg/custom_element/lib/src/custom_tag_name.dart b/pkg/polymer/lib/src/custom_tag_name.dart
|
| similarity index 89%
|
| copy from pkg/custom_element/lib/src/custom_tag_name.dart
|
| copy to pkg/polymer/lib/src/custom_tag_name.dart
|
| index 72d915039db8b5d8d046de806898d554a337dfec..637b937dd13ed14068eb42ffd4652598775777e4 100644
|
| --- a/pkg/custom_element/lib/src/custom_tag_name.dart
|
| +++ b/pkg/polymer/lib/src/custom_tag_name.dart
|
| @@ -2,14 +2,14 @@
|
| // for details. All rights reserved. Use of this source code is governed by a
|
| // BSD-style license that can be found in the LICENSE file.
|
|
|
| -library custom_element.src.custom_tag_name;
|
| +library polymer.src.custom_tag_name;
|
|
|
| /**
|
| * Returns true if this is a valid custom element name. See:
|
| * <https://dvcs.w3.org/hg/webcomponents/raw-file/tip/spec/custom/index.html#dfn-custom-element-name>
|
| */
|
| bool isCustomTag(String name) {
|
| - if (!name.contains('-')) return false;
|
| + if (name == null || !name.contains('-')) return false;
|
|
|
| // These names have meaning in SVG or MathML, so they aren't allowed as custom
|
| // tags.
|
|
|