| 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 97 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 108 } | 108 } |
| 109 | 109 |
| 110 // Unsupported methods inherited from Element. | 110 // Unsupported methods inherited from Element. |
| 111 | 111 |
| 112 @DomName('Element.insertAdjacentText') | 112 @DomName('Element.insertAdjacentText') |
| 113 void insertAdjacentText(String where, String text) { | 113 void insertAdjacentText(String where, String text) { |
| 114 throw new UnsupportedError("Cannot invoke insertAdjacentText on SVG."); | 114 throw new UnsupportedError("Cannot invoke insertAdjacentText on SVG."); |
| 115 } | 115 } |
| 116 | 116 |
| 117 @DomName('Element.insertAdjacentHTML') | 117 @DomName('Element.insertAdjacentHTML') |
| 118 void insertAdjacentHtml(String where, String text) { | 118 void insertAdjacentHtml(String where, String text, {NodeValidator validator, |
| 119 NodeTreeSanitizer treeSanitizer}) { |
| 119 throw new UnsupportedError("Cannot invoke insertAdjacentHtml on SVG."); | 120 throw new UnsupportedError("Cannot invoke insertAdjacentHtml on SVG."); |
| 120 } | 121 } |
| 121 | 122 |
| 122 @DomName('Element.insertAdjacentHTML') | 123 @DomName('Element.insertAdjacentElement') |
| 123 Element insertAdjacentElement(String where, Element element) { | 124 Element insertAdjacentElement(String where, Element element) { |
| 124 throw new UnsupportedError("Cannot invoke insertAdjacentElement on SVG."); | 125 throw new UnsupportedError("Cannot invoke insertAdjacentElement on SVG."); |
| 125 } | 126 } |
| 126 | 127 |
| 127 HtmlCollection get _children { | 128 HtmlCollection get _children { |
| 128 throw new UnsupportedError("Cannot get _children on SVG."); | 129 throw new UnsupportedError("Cannot get _children on SVG."); |
| 129 } | 130 } |
| 130 | 131 |
| 131 bool get isContentEditable => false; | 132 bool get isContentEditable => false; |
| 132 void click() { | 133 void click() { |
| 133 throw new UnsupportedError("Cannot invoke click SVG."); | 134 throw new UnsupportedError("Cannot invoke click SVG."); |
| 134 } | 135 } |
| 135 | 136 |
| 136 /** | 137 /** |
| 137 * Checks to see if the SVG element type is supported by the current platform. | 138 * Checks to see if the SVG element type is supported by the current platform. |
| 138 * | 139 * |
| 139 * The tag should be a valid SVG element tag name. | 140 * The tag should be a valid SVG element tag name. |
| 140 */ | 141 */ |
| 141 static bool isTagSupported(String tag) { | 142 static bool isTagSupported(String tag) { |
| 142 var e = new $CLASSNAME.tag(tag); | 143 var e = new $CLASSNAME.tag(tag); |
| 143 return e is $CLASSNAME && !(e is UnknownElement); | 144 return e is $CLASSNAME && !(e is UnknownElement); |
| 144 } | 145 } |
| 145 $!MEMBERS | 146 $!MEMBERS |
| 146 } | 147 } |
| OLD | NEW |