| OLD | NEW |
| 1 /// The Dart HTML library. | 1 /// The Dart HTML library. |
| 2 /// | 2 /// |
| 3 /// For examples, see | 3 /// For examples, see |
| 4 /// [Dart HTML5 Samples](https://github.com/dart-lang/dart-html5-samples) | 4 /// [Dart HTML5 Samples](https://github.com/dart-lang/dart-html5-samples) |
| 5 /// on Github. | 5 /// on Github. |
| 6 library dart.dom.html; | 6 library dart.dom.html; |
| 7 | 7 |
| 8 import 'dart:async'; | 8 import 'dart:async'; |
| 9 import 'dart:collection'; | 9 import 'dart:collection'; |
| 10 import 'dart:_collection-dev' hide Symbol; | 10 import 'dart:_collection-dev' hide Symbol; |
| (...skipping 7865 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 7876 * For standard elements it is more preferable to use the type constructors: | 7876 * For standard elements it is more preferable to use the type constructors: |
| 7877 * var element = new DivElement(); | 7877 * var element = new DivElement(); |
| 7878 * | 7878 * |
| 7879 * See also: | 7879 * See also: |
| 7880 * | 7880 * |
| 7881 * * [isTagSupported] | 7881 * * [isTagSupported] |
| 7882 */ | 7882 */ |
| 7883 factory Element.tag(String tag) => | 7883 factory Element.tag(String tag) => |
| 7884 _ElementFactoryProvider.createElement_tag(tag); | 7884 _ElementFactoryProvider.createElement_tag(tag); |
| 7885 | 7885 |
| 7886 /// Creates a new `<a>` element. |
| 7887 /// |
| 7888 /// This is identical to calling `new Element.tag(a)`. |
| 7889 factory Element.a() => new Element.tag(a); |
| 7890 |
| 7891 /// Creates a new `<article>` element. |
| 7892 /// |
| 7893 /// This is identical to calling `new Element.tag(article)`. |
| 7894 factory Element.article() => new Element.tag(article); |
| 7895 |
| 7896 /// Creates a new `<aside>` element. |
| 7897 /// |
| 7898 /// This is identical to calling `new Element.tag(aside)`. |
| 7899 factory Element.aside() => new Element.tag(aside); |
| 7900 |
| 7901 /// Creates a new `<audio>` element. |
| 7902 /// |
| 7903 /// This is identical to calling `new Element.tag(audio)`. |
| 7904 factory Element.audio() => new Element.tag(audio); |
| 7905 |
| 7906 /// Creates a new `<br>` element. |
| 7907 /// |
| 7908 /// This is identical to calling `new Element.tag(br)`. |
| 7909 factory Element.br() => new Element.tag(br); |
| 7910 |
| 7911 /// Creates a new `<canvas>` element. |
| 7912 /// |
| 7913 /// This is identical to calling `new Element.tag(canvas)`. |
| 7914 factory Element.canvas() => new Element.tag(canvas); |
| 7915 |
| 7916 /// Creates a new `<div>` element. |
| 7917 /// |
| 7918 /// This is identical to calling `new Element.tag(div)`. |
| 7919 factory Element.div() => new Element.tag(div); |
| 7920 |
| 7921 /// Creates a new `<footer>` element. |
| 7922 /// |
| 7923 /// This is identical to calling `new Element.tag(footer)`. |
| 7924 factory Element.footer() => new Element.tag(footer); |
| 7925 |
| 7926 /// Creates a new `<header>` element. |
| 7927 /// |
| 7928 /// This is identical to calling `new Element.tag(header)`. |
| 7929 factory Element.header() => new Element.tag(header); |
| 7930 |
| 7931 /// Creates a new `<hr>` element. |
| 7932 /// |
| 7933 /// This is identical to calling `new Element.tag(hr)`. |
| 7934 factory Element.hr() => new Element.tag(hr); |
| 7935 |
| 7936 /// Creates a new `<iframe>` element. |
| 7937 /// |
| 7938 /// This is identical to calling `new Element.tag(iframe)`. |
| 7939 factory Element.iframe() => new Element.tag(iframe); |
| 7940 |
| 7941 /// Creates a new `<img>` element. |
| 7942 /// |
| 7943 /// This is identical to calling `new Element.tag(img)`. |
| 7944 factory Element.img() => new Element.tag(img); |
| 7945 |
| 7946 /// Creates a new `<li>` element. |
| 7947 /// |
| 7948 /// This is identical to calling `new Element.tag(li)`. |
| 7949 factory Element.li() => new Element.tag(li); |
| 7950 |
| 7951 /// Creates a new `<nav>` element. |
| 7952 /// |
| 7953 /// This is identical to calling `new Element.tag(nav)`. |
| 7954 factory Element.nav() => new Element.tag(nav); |
| 7955 |
| 7956 /// Creates a new `<ol>` element. |
| 7957 /// |
| 7958 /// This is identical to calling `new Element.tag(ol)`. |
| 7959 factory Element.ol() => new Element.tag(ol); |
| 7960 |
| 7961 /// Creates a new `<option>` element. |
| 7962 /// |
| 7963 /// This is identical to calling `new Element.tag(option)`. |
| 7964 factory Element.option() => new Element.tag(option); |
| 7965 |
| 7966 /// Creates a new `<p>` element. |
| 7967 /// |
| 7968 /// This is identical to calling `new Element.tag(p)`. |
| 7969 factory Element.p() => new Element.tag(p); |
| 7970 |
| 7971 /// Creates a new `<pre>` element. |
| 7972 /// |
| 7973 /// This is identical to calling `new Element.tag(pre)`. |
| 7974 factory Element.pre() => new Element.tag(pre); |
| 7975 |
| 7976 /// Creates a new `<section>` element. |
| 7977 /// |
| 7978 /// This is identical to calling `new Element.tag(section)`. |
| 7979 factory Element.section() => new Element.tag(section); |
| 7980 |
| 7981 /// Creates a new `<select>` element. |
| 7982 /// |
| 7983 /// This is identical to calling `new Element.tag(select)`. |
| 7984 factory Element.select() => new Element.tag(select); |
| 7985 |
| 7986 /// Creates a new `<span>` element. |
| 7987 /// |
| 7988 /// This is identical to calling `new Element.tag(span)`. |
| 7989 factory Element.span() => new Element.tag(span); |
| 7990 |
| 7991 /// Creates a new `<svg>` element. |
| 7992 /// |
| 7993 /// This is identical to calling `new Element.tag(svg)`. |
| 7994 factory Element.svg() => new Element.tag(svg); |
| 7995 |
| 7996 /// Creates a new `<table>` element. |
| 7997 /// |
| 7998 /// This is identical to calling `new Element.tag(table)`. |
| 7999 factory Element.table() => new Element.tag(table); |
| 8000 |
| 8001 /// Creates a new `<td>` element. |
| 8002 /// |
| 8003 /// This is identical to calling `new Element.tag(td)`. |
| 8004 factory Element.td() => new Element.tag(td); |
| 8005 |
| 8006 /// Creates a new `<textarea>` element. |
| 8007 /// |
| 8008 /// This is identical to calling `new Element.tag(textarea)`. |
| 8009 factory Element.textarea() => new Element.tag(textarea); |
| 8010 |
| 8011 /// Creates a new `<th>` element. |
| 8012 /// |
| 8013 /// This is identical to calling `new Element.tag(th)`. |
| 8014 factory Element.th() => new Element.tag(th); |
| 8015 |
| 8016 /// Creates a new `<tr>` element. |
| 8017 /// |
| 8018 /// This is identical to calling `new Element.tag(tr)`. |
| 8019 factory Element.tr() => new Element.tag(tr); |
| 8020 |
| 8021 /// Creates a new `<ul>` element. |
| 8022 /// |
| 8023 /// This is identical to calling `new Element.tag(ul)`. |
| 8024 factory Element.ul() => new Element.tag(ul); |
| 8025 |
| 8026 /// Creates a new `<video>` element. |
| 8027 /// |
| 8028 /// This is identical to calling `new Element.tag(video)`. |
| 8029 factory Element.video() => new Element.tag(video); |
| 8030 |
| 7886 /** | 8031 /** |
| 7887 * All attributes on this element. | 8032 * All attributes on this element. |
| 7888 * | 8033 * |
| 7889 * Any modifications to the attribute map will automatically be applied to | 8034 * Any modifications to the attribute map will automatically be applied to |
| 7890 * this element. | 8035 * this element. |
| 7891 * | 8036 * |
| 7892 * This only includes attributes which are not in a namespace | 8037 * This only includes attributes which are not in a namespace |
| 7893 * (such as 'xlink:href'), additional attributes can be accessed via | 8038 * (such as 'xlink:href'), additional attributes can be accessed via |
| 7894 * [getNamespacedAttributes]. | 8039 * [getNamespacedAttributes]. |
| 7895 */ | 8040 */ |
| (...skipping 20895 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 28791 _position = nextPosition; | 28936 _position = nextPosition; |
| 28792 return true; | 28937 return true; |
| 28793 } | 28938 } |
| 28794 _current = null; | 28939 _current = null; |
| 28795 _position = _array.length; | 28940 _position = _array.length; |
| 28796 return false; | 28941 return false; |
| 28797 } | 28942 } |
| 28798 | 28943 |
| 28799 T get current => _current; | 28944 T get current => _current; |
| 28800 } | 28945 } |
| OLD | NEW |