| OLD | NEW |
| 1 // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file |
| 2 // for details. All rights reserved. Use of this source code is governed by a | 2 // for details. All rights reserved. Use of this source code is governed by a |
| 3 // BSD-style license that can be found in the LICENSE file. | 3 // BSD-style license that can be found in the LICENSE file. |
| 4 | 4 |
| 5 part of $LIBRARYNAME; | 5 part of $LIBRARYNAME; |
| 6 | 6 |
| 7 class _AttributeClassSet extends CssClassSet { | 7 class _AttributeClassSet extends CssClassSet { |
| 8 final Element _element; | 8 final Element _element; |
| 9 | 9 |
| 10 _AttributeClassSet(this._element); | 10 _AttributeClassSet(this._element); |
| (...skipping 93 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 104 | 104 |
| 105 HtmlCollection get $dom_children { | 105 HtmlCollection get $dom_children { |
| 106 throw new UnsupportedError("Cannot get dom_children on SVG."); | 106 throw new UnsupportedError("Cannot get dom_children on SVG."); |
| 107 } | 107 } |
| 108 | 108 |
| 109 bool get isContentEditable => false; | 109 bool get isContentEditable => false; |
| 110 void click() { | 110 void click() { |
| 111 throw new UnsupportedError("Cannot invoke click SVG."); | 111 throw new UnsupportedError("Cannot invoke click SVG."); |
| 112 } | 112 } |
| 113 | 113 |
| 114 /** |
| 115 * Checks to see if the SVG element type is supported by the current platform. |
| 116 * |
| 117 * The tag should be a valid SVG element tag name. |
| 118 */ |
| 119 static bool isTagSupported(String tag) { |
| 120 var e = new $CLASSNAME.tag(tag); |
| 121 return e is $CLASSNAME && !(e is UnknownElement); |
| 122 } |
| 114 $!MEMBERS | 123 $!MEMBERS |
| 115 } | 124 } |
| OLD | NEW |