| 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 CssClassSetImpl { | 7 class _AttributeClassSet extends CssClassSetImpl { |
| 8 final Element _element; | 8 final Element _element; |
| 9 | 9 |
| 10 _AttributeClassSet(this._element); | 10 _AttributeClassSet(this._element); |
| (...skipping 73 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 84 @DomName('Element.insertAdjacentHTML') | 84 @DomName('Element.insertAdjacentHTML') |
| 85 void insertAdjacentHtml(String where, String text) { | 85 void insertAdjacentHtml(String where, String text) { |
| 86 throw new UnsupportedError("Cannot invoke insertAdjacentHtml on SVG."); | 86 throw new UnsupportedError("Cannot invoke insertAdjacentHtml on SVG."); |
| 87 } | 87 } |
| 88 | 88 |
| 89 @DomName('Element.insertAdjacentHTML') | 89 @DomName('Element.insertAdjacentHTML') |
| 90 Element insertAdjacentElement(String where, Element element) { | 90 Element insertAdjacentElement(String where, Element element) { |
| 91 throw new UnsupportedError("Cannot invoke insertAdjacentElement on SVG."); | 91 throw new UnsupportedError("Cannot invoke insertAdjacentElement on SVG."); |
| 92 } | 92 } |
| 93 | 93 |
| 94 HtmlCollection get $dom_children { | 94 HtmlCollection get _children { |
| 95 throw new UnsupportedError("Cannot get dom_children on SVG."); | 95 throw new UnsupportedError("Cannot get _children on SVG."); |
| 96 } | 96 } |
| 97 | 97 |
| 98 bool get isContentEditable => false; | 98 bool get isContentEditable => false; |
| 99 void click() { | 99 void click() { |
| 100 throw new UnsupportedError("Cannot invoke click SVG."); | 100 throw new UnsupportedError("Cannot invoke click SVG."); |
| 101 } | 101 } |
| 102 | 102 |
| 103 /** | 103 /** |
| 104 * Checks to see if the SVG element type is supported by the current platform. | 104 * Checks to see if the SVG element type is supported by the current platform. |
| 105 * | 105 * |
| 106 * The tag should be a valid SVG element tag name. | 106 * The tag should be a valid SVG element tag name. |
| 107 */ | 107 */ |
| 108 static bool isTagSupported(String tag) { | 108 static bool isTagSupported(String tag) { |
| 109 var e = new $CLASSNAME.tag(tag); | 109 var e = new $CLASSNAME.tag(tag); |
| 110 return e is $CLASSNAME && !(e is UnknownElement); | 110 return e is $CLASSNAME && !(e is UnknownElement); |
| 111 } | 111 } |
| 112 $!MEMBERS | 112 $!MEMBERS |
| 113 } | 113 } |
| OLD | NEW |