OLD | NEW |
1 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2012, 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 // DO NOT EDIT | 5 // DO NOT EDIT |
6 // Auto-generated dart:html library. | 6 // Auto-generated dart:html library. |
7 | 7 |
8 #library("html"); | 8 #library("html"); |
9 | 9 |
10 #import('dart:dom', prefix:'dom'); | 10 #import('dart:dom', prefix:'dom'); |
(...skipping 59 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
70 _wrap(raw) { | 70 _wrap(raw) { |
71 if (raw is! dom.DOMType) return raw; | 71 if (raw is! dom.DOMType) return raw; |
72 dom.DOMType domObject = raw; | 72 dom.DOMType domObject = raw; |
73 if (domObject.dartObjectLocalStorage != null) | 73 if (domObject.dartObjectLocalStorage != null) |
74 return domObject.dartObjectLocalStorage; | 74 return domObject.dartObjectLocalStorage; |
75 switch(domObject.typeName) { | 75 switch(domObject.typeName) { |
76 case 'HTMLDocument': | 76 case 'HTMLDocument': |
77 throw 'A document should never be wrapped directly. TODO(jacobr) XXX'; | 77 throw 'A document should never be wrapped directly. TODO(jacobr) XXX'; |
78 case 'HTMLHtmlElement': | 78 case 'HTMLHtmlElement': |
79 return new _DocumentImpl._wrap(domObject); | 79 return new _DocumentImpl._wrap(domObject); |
| 80 case 'HTMLElement': |
| 81 return new _UnknownElementImpl._wrap(domObject); |
80 $WRAPCASES | 82 $WRAPCASES |
81 default: | 83 default: |
82 throw 'Unrecognized object $domObject. Name=${domObject.typeName}'; | 84 throw 'Unrecognized object $domObject. Name=${domObject.typeName}'; |
83 } | 85 } |
84 } | 86 } |
OLD | NEW |