Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(227)

Unified Diff: sdk/lib/html/dart2js/html_dart2js.dart

Side-by-side diff isn't available for this file because of its large size.
Issue 2710323004: Revert "Refined types for most HtmlElement factory constructors" (Closed)
Patch Set: Created 3 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
Download patch
« no previous file with comments | « no previous file | sdk/lib/html/dartium/html_dartium.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: sdk/lib/html/dart2js/html_dart2js.dart
diff --git a/sdk/lib/html/dart2js/html_dart2js.dart b/sdk/lib/html/dart2js/html_dart2js.dart
index 1d97319688cb55d36d733b7cfd648433126a63bc..a1e5a4c422af450fdad3006a0e037ad24de79107 100644
--- a/sdk/lib/html/dart2js/html_dart2js.dart
+++ b/sdk/lib/html/dart2js/html_dart2js.dart
@@ -160,7 +160,7 @@ class AnchorElement extends HtmlElement implements UrlUtils {
@DomName('HTMLAnchorElement.HTMLAnchorElement')
@DocsEditable()
factory AnchorElement({String href}) {
- AnchorElement e = JS('returns:AnchorElement;creates:AnchorElement;new:true', '#.createElement(#)', document, "a");
+ AnchorElement e = document.createElement("a");
if (href != null) e.href = href;
return e;
}
@@ -799,7 +799,7 @@ class AreaElement extends HtmlElement implements UrlUtils {
@DomName('HTMLAreaElement.HTMLAreaElement')
@DocsEditable()
- factory AreaElement() => JS('returns:AreaElement;creates:AreaElement;new:true', '#.createElement(#)', document, "area");
+ factory AreaElement() => document.createElement("area");
/**
* Constructor instantiated by the DOM when a custom element has been created.
*
@@ -1026,7 +1026,7 @@ class BRElement extends HtmlElement {
@DomName('HTMLBRElement.HTMLBRElement')
@DocsEditable()
- factory BRElement() => JS('returns:BRElement;creates:BRElement;new:true', '#.createElement(#)', document, "br");
+ factory BRElement() => document.createElement("br");
/**
* Constructor instantiated by the DOM when a custom element has been created.
*
@@ -1066,7 +1066,7 @@ class BaseElement extends HtmlElement {
@DomName('HTMLBaseElement.HTMLBaseElement')
@DocsEditable()
- factory BaseElement() => JS('returns:BaseElement;creates:BaseElement;new:true', '#.createElement(#)', document, "base");
+ factory BaseElement() => document.createElement("base");
/**
* Constructor instantiated by the DOM when a custom element has been created.
*
@@ -1590,7 +1590,7 @@ class BodyElement extends HtmlElement implements WindowEventHandlers {
@DomName('HTMLBodyElement.HTMLBodyElement')
@DocsEditable()
- factory BodyElement() => JS('returns:BodyElement;creates:BodyElement;new:true', '#.createElement(#)', document, "body");
+ factory BodyElement() => document.createElement("body");
/**
* Constructor instantiated by the DOM when a custom element has been created.
*
@@ -1677,7 +1677,7 @@ class ButtonElement extends HtmlElement {
@DomName('HTMLButtonElement.HTMLButtonElement')
@DocsEditable()
- factory ButtonElement() => JS('returns:ButtonElement;creates:ButtonElement;new:true', '#.createElement(#)', document, "button");
+ factory ButtonElement() => document.createElement("button");
/**
* Constructor instantiated by the DOM when a custom element has been created.
*
@@ -1863,7 +1863,7 @@ class CanvasElement extends HtmlElement implements CanvasImageSource {
@DomName('HTMLCanvasElement.HTMLCanvasElement')
@DocsEditable()
factory CanvasElement({int width, int height}) {
- CanvasElement e = JS('returns:CanvasElement;creates:CanvasElement;new:true', '#.createElement(#)', document, "canvas");
+ CanvasElement e = document.createElement("canvas");
if (width != null) e.width = width;
if (height != null) e.height = height;
return e;
@@ -4051,7 +4051,7 @@ class CssStyleDeclaration extends Interceptor with
factory CssStyleDeclaration() => new CssStyleDeclaration.css('');
factory CssStyleDeclaration.css(String css) {
- final style = new DivElement().style;
+ final style = new Element.tag('div').style;
style.cssText = css;
return style;
}
@@ -8936,7 +8936,7 @@ class DListElement extends HtmlElement {
@DomName('HTMLDListElement.HTMLDListElement')
@DocsEditable()
- factory DListElement() => JS('returns:DListElement;creates:DListElement;new:true', '#.createElement(#)', document, "dl");
+ factory DListElement() => document.createElement("dl");
/**
* Constructor instantiated by the DOM when a custom element has been created.
*
@@ -9758,7 +9758,7 @@ class DivElement extends HtmlElement {
@DomName('HTMLDivElement.HTMLDivElement')
@DocsEditable()
- factory DivElement() => JS('returns:DivElement;creates:DivElement;new:true', '#.createElement(#)', document, "div");
+ factory DivElement() => document.createElement("div");
/**
* Constructor instantiated by the DOM when a custom element has been created.
*
@@ -10746,7 +10746,7 @@ class DocumentFragment extends Node implements NonElementParentNode, ParentNode
String get innerHtml {
- final e = new DivElement();
+ final e = new Element.tag("div");
e.append(this.clone(true));
return e.innerHtml;
}
@@ -13029,14 +13029,9 @@ class Element extends Node implements NonDocumentTypeChildNode, GlobalEventHandl
* var myElement = new Element.tag('unknownTag');
* print(myElement is UnknownElement); // 'true'
*
- * For standard elements it is better to use the element type constructors:
- *
+ * For standard elements it is more preferable to use the type constructors:
* var element = new DivElement();
*
- * It is better to use e.g `new CanvasElement()` because the type of the
- * expression is `CanvasElement`, whereas the type of `Element.tag` is the
- * less specific `Element`.
- *
* See also:
*
* * [isTagSupported]
@@ -13046,147 +13041,147 @@ class Element extends Node implements NonDocumentTypeChildNode, GlobalEventHandl
/// Creates a new `<a>` element.
///
- /// This is equivalent to calling `new Element.tag('a')`.
- factory Element.a() => new AnchorElement();
+ /// This is identical to calling `new Element.tag('a')`.
+ factory Element.a() => new Element.tag('a');
/// Creates a new `<article>` element.
///
- /// This is equivalent to calling `new Element.tag('article')`.
+ /// This is identical to calling `new Element.tag('article')`.
factory Element.article() => new Element.tag('article');
/// Creates a new `<aside>` element.
///
- /// This is equivalent to calling `new Element.tag('aside')`.
+ /// This is identical to calling `new Element.tag('aside')`.
factory Element.aside() => new Element.tag('aside');
/// Creates a new `<audio>` element.
///
- /// This is equivalent to calling `new Element.tag('audio')`.
+ /// This is identical to calling `new Element.tag('audio')`.
factory Element.audio() => new Element.tag('audio');
/// Creates a new `<br>` element.
///
- /// This is equivalent to calling `new Element.tag('br')`.
- factory Element.br() => new BRElement();
+ /// This is identical to calling `new Element.tag('br')`.
+ factory Element.br() => new Element.tag('br');
/// Creates a new `<canvas>` element.
///
- /// This is equivalent to calling `new Element.tag('canvas')`.
- factory Element.canvas() => new CanvasElement();
+ /// This is identical to calling `new Element.tag('canvas')`.
+ factory Element.canvas() => new Element.tag('canvas');
/// Creates a new `<div>` element.
///
- /// This is equivalent to calling `new Element.tag('div')`.
- factory Element.div() => new DivElement();
+ /// This is identical to calling `new Element.tag('div')`.
+ factory Element.div() => new Element.tag('div');
/// Creates a new `<footer>` element.
///
- /// This is equivalent to calling `new Element.tag('footer')`.
+ /// This is identical to calling `new Element.tag('footer')`.
factory Element.footer() => new Element.tag('footer');
/// Creates a new `<header>` element.
///
- /// This is equivalent to calling `new Element.tag('header')`.
+ /// This is identical to calling `new Element.tag('header')`.
factory Element.header() => new Element.tag('header');
/// Creates a new `<hr>` element.
///
- /// This is equivalent to calling `new Element.tag('hr')`.
+ /// This is identical to calling `new Element.tag('hr')`.
factory Element.hr() => new Element.tag('hr');
/// Creates a new `<iframe>` element.
///
- /// This is equivalent to calling `new Element.tag('iframe')`.
+ /// This is identical to calling `new Element.tag('iframe')`.
factory Element.iframe() => new Element.tag('iframe');
/// Creates a new `<img>` element.
///
- /// This is equivalent to calling `new Element.tag('img')`.
+ /// This is identical to calling `new Element.tag('img')`.
factory Element.img() => new Element.tag('img');
/// Creates a new `<li>` element.
///
- /// This is equivalent to calling `new Element.tag('li')`.
+ /// This is identical to calling `new Element.tag('li')`.
factory Element.li() => new Element.tag('li');
/// Creates a new `<nav>` element.
///
- /// This is equivalent to calling `new Element.tag('nav')`.
+ /// This is identical to calling `new Element.tag('nav')`.
factory Element.nav() => new Element.tag('nav');
/// Creates a new `<ol>` element.
///
- /// This is equivalent to calling `new Element.tag('ol')`.
+ /// This is identical to calling `new Element.tag('ol')`.
factory Element.ol() => new Element.tag('ol');
/// Creates a new `<option>` element.
///
- /// This is equivalent to calling `new Element.tag('option')`.
+ /// This is identical to calling `new Element.tag('option')`.
factory Element.option() => new Element.tag('option');
/// Creates a new `<p>` element.
///
- /// This is equivalent to calling `new Element.tag('p')`.
+ /// This is identical to calling `new Element.tag('p')`.
factory Element.p() => new Element.tag('p');
/// Creates a new `<pre>` element.
///
- /// This is equivalent to calling `new Element.tag('pre')`.
+ /// This is identical to calling `new Element.tag('pre')`.
factory Element.pre() => new Element.tag('pre');
/// Creates a new `<section>` element.
///
- /// This is equivalent to calling `new Element.tag('section')`.
+ /// This is identical to calling `new Element.tag('section')`.
factory Element.section() => new Element.tag('section');
/// Creates a new `<select>` element.
///
- /// This is equivalent to calling `new Element.tag('select')`.
+ /// This is identical to calling `new Element.tag('select')`.
factory Element.select() => new Element.tag('select');
/// Creates a new `<span>` element.
///
- /// This is equivalent to calling `new Element.tag('span')`.
+ /// This is identical to calling `new Element.tag('span')`.
factory Element.span() => new Element.tag('span');
/// Creates a new `<svg>` element.
///
- /// This is equivalent to calling `new Element.tag('svg')`.
+ /// This is identical to calling `new Element.tag('svg')`.
factory Element.svg() => new Element.tag('svg');
/// Creates a new `<table>` element.
///
- /// This is equivalent to calling `new Element.tag('table')`.
+ /// This is identical to calling `new Element.tag('table')`.
factory Element.table() => new Element.tag('table');
/// Creates a new `<td>` element.
///
- /// This is equivalent to calling `new Element.tag('td')`.
+ /// This is identical to calling `new Element.tag('td')`.
factory Element.td() => new Element.tag('td');
/// Creates a new `<textarea>` element.
///
- /// This is equivalent to calling `new Element.tag('textarea')`.
+ /// This is identical to calling `new Element.tag('textarea')`.
factory Element.textarea() => new Element.tag('textarea');
/// Creates a new `<th>` element.
///
- /// This is equivalent to calling `new Element.tag('th')`.
+ /// This is identical to calling `new Element.tag('th')`.
factory Element.th() => new Element.tag('th');
/// Creates a new `<tr>` element.
///
- /// This is equivalent to calling `new Element.tag('tr')`.
+ /// This is identical to calling `new Element.tag('tr')`.
factory Element.tr() => new Element.tag('tr');
/// Creates a new `<ul>` element.
///
- /// This is equivalent to calling `new Element.tag('ul')`.
+ /// This is identical to calling `new Element.tag('ul')`.
factory Element.ul() => new Element.tag('ul');
/// Creates a new `<video>` element.
///
- /// This is equivalent to calling `new Element.tag('video')`.
+ /// This is identical to calling `new Element.tag('video')`.
factory Element.video() => new Element.tag('video');
/**
@@ -16630,7 +16625,7 @@ class FieldSetElement extends HtmlElement {
@DomName('HTMLFieldSetElement.HTMLFieldSetElement')
@DocsEditable()
- factory FieldSetElement() => JS('returns:FieldSetElement;creates:FieldSetElement;new:true', '#.createElement(#)', document, "fieldset");
+ factory FieldSetElement() => document.createElement("fieldset");
/**
* Constructor instantiated by the DOM when a custom element has been created.
*
@@ -17560,7 +17555,7 @@ class FormElement extends HtmlElement {
@DomName('HTMLFormElement.HTMLFormElement')
@DocsEditable()
- factory FormElement() => JS('returns:FormElement;creates:FormElement;new:true', '#.createElement(#)', document, "form");
+ factory FormElement() => document.createElement("form");
/**
* Constructor instantiated by the DOM when a custom element has been created.
*
@@ -18573,7 +18568,7 @@ class HRElement extends HtmlElement {
@DomName('HTMLHRElement.HTMLHRElement')
@DocsEditable()
- factory HRElement() => JS('returns:HRElement;creates:HRElement;new:true', '#.createElement(#)', document, "hr");
+ factory HRElement() => document.createElement("hr");
/**
* Constructor instantiated by the DOM when a custom element has been created.
*
@@ -18659,7 +18654,7 @@ class HeadElement extends HtmlElement {
@DomName('HTMLHeadElement.HTMLHeadElement')
@DocsEditable()
- factory HeadElement() => JS('returns:HeadElement;creates:HeadElement;new:true', '#.createElement(#)', document, "head");
+ factory HeadElement() => document.createElement("head");
/**
* Constructor instantiated by the DOM when a custom element has been created.
*
@@ -18717,27 +18712,27 @@ class HeadingElement extends HtmlElement {
@DomName('HTMLHeadingElement.HTMLHeadingElement')
@DocsEditable()
- factory HeadingElement.h1() => JS('returns:HeadingElement;creates:HeadingElement;new:true', '#.createElement(#)', document, "h1");
+ factory HeadingElement.h1() => document.createElement("h1");
@DomName('HTMLHeadingElement.HTMLHeadingElement')
@DocsEditable()
- factory HeadingElement.h2() => JS('returns:HeadingElement;creates:HeadingElement;new:true', '#.createElement(#)', document, "h2");
+ factory HeadingElement.h2() => document.createElement("h2");
@DomName('HTMLHeadingElement.HTMLHeadingElement')
@DocsEditable()
- factory HeadingElement.h3() => JS('returns:HeadingElement;creates:HeadingElement;new:true', '#.createElement(#)', document, "h3");
+ factory HeadingElement.h3() => document.createElement("h3");
@DomName('HTMLHeadingElement.HTMLHeadingElement')
@DocsEditable()
- factory HeadingElement.h4() => JS('returns:HeadingElement;creates:HeadingElement;new:true', '#.createElement(#)', document, "h4");
+ factory HeadingElement.h4() => document.createElement("h4");
@DomName('HTMLHeadingElement.HTMLHeadingElement')
@DocsEditable()
- factory HeadingElement.h5() => JS('returns:HeadingElement;creates:HeadingElement;new:true', '#.createElement(#)', document, "h5");
+ factory HeadingElement.h5() => document.createElement("h5");
@DomName('HTMLHeadingElement.HTMLHeadingElement')
@DocsEditable()
- factory HeadingElement.h6() => JS('returns:HeadingElement;creates:HeadingElement;new:true', '#.createElement(#)', document, "h6");
+ factory HeadingElement.h6() => document.createElement("h6");
/**
* Constructor instantiated by the DOM when a custom element has been created.
*
@@ -19220,7 +19215,7 @@ class HtmlHtmlElement extends HtmlElement {
@DomName('HTMLHtmlElement.HTMLHtmlElement')
@DocsEditable()
- factory HtmlHtmlElement() => JS('returns:HtmlHtmlElement;creates:HtmlHtmlElement;new:true', '#.createElement(#)', document, "html");
+ factory HtmlHtmlElement() => document.createElement("html");
/**
* Constructor instantiated by the DOM when a custom element has been created.
*
@@ -20120,7 +20115,7 @@ class IFrameElement extends HtmlElement {
@DomName('HTMLIFrameElement.HTMLIFrameElement')
@DocsEditable()
- factory IFrameElement() => JS('returns:IFrameElement;creates:IFrameElement;new:true', '#.createElement(#)', document, "iframe");
+ factory IFrameElement() => document.createElement("iframe");
/**
* Constructor instantiated by the DOM when a custom element has been created.
*
@@ -20248,7 +20243,7 @@ class ImageElement extends HtmlElement implements CanvasImageSource {
@DomName('HTMLImageElement.HTMLImageElement')
@DocsEditable()
factory ImageElement({String src, int width, int height}) {
- ImageElement e = JS('returns:ImageElement;creates:ImageElement;new:true', '#.createElement(#)', document, "img");
+ ImageElement e = document.createElement("img");
if (src != null) e.src = src;
if (width != null) e.width = width;
if (height != null) e.height = height;
@@ -21528,7 +21523,7 @@ class LIElement extends HtmlElement {
@DomName('HTMLLIElement.HTMLLIElement')
@DocsEditable()
- factory LIElement() => JS('returns:LIElement;creates:LIElement;new:true', '#.createElement(#)', document, "li");
+ factory LIElement() => document.createElement("li");
/**
* Constructor instantiated by the DOM when a custom element has been created.
*
@@ -21554,7 +21549,7 @@ class LabelElement extends HtmlElement {
@DomName('HTMLLabelElement.HTMLLabelElement')
@DocsEditable()
- factory LabelElement() => JS('returns:LabelElement;creates:LabelElement;new:true', '#.createElement(#)', document, "label");
+ factory LabelElement() => document.createElement("label");
/**
* Constructor instantiated by the DOM when a custom element has been created.
*
@@ -21588,7 +21583,7 @@ class LegendElement extends HtmlElement {
@DomName('HTMLLegendElement.HTMLLegendElement')
@DocsEditable()
- factory LegendElement() => JS('returns:LegendElement;creates:LegendElement;new:true', '#.createElement(#)', document, "legend");
+ factory LegendElement() => document.createElement("legend");
/**
* Constructor instantiated by the DOM when a custom element has been created.
*
@@ -21614,7 +21609,7 @@ class LinkElement extends HtmlElement {
@DomName('HTMLLinkElement.HTMLLinkElement')
@DocsEditable()
- factory LinkElement() => JS('returns:LinkElement;creates:LinkElement;new:true', '#.createElement(#)', document, "link");
+ factory LinkElement() => document.createElement("link");
/**
* Constructor instantiated by the DOM when a custom element has been created.
*
@@ -21766,7 +21761,7 @@ class MapElement extends HtmlElement {
@DomName('HTMLMapElement.HTMLMapElement')
@DocsEditable()
- factory MapElement() => JS('returns:MapElement;creates:MapElement;new:true', '#.createElement(#)', document, "map");
+ factory MapElement() => document.createElement("map");
/**
* Constructor instantiated by the DOM when a custom element has been created.
*
@@ -23185,7 +23180,7 @@ class MenuElement extends HtmlElement {
@DomName('HTMLMenuElement.HTMLMenuElement')
@DocsEditable()
- factory MenuElement() => JS('returns:MenuElement;creates:MenuElement;new:true', '#.createElement(#)', document, "menu");
+ factory MenuElement() => document.createElement("menu");
/**
* Constructor instantiated by the DOM when a custom element has been created.
*
@@ -23432,7 +23427,7 @@ class MetaElement extends HtmlElement {
@DomName('HTMLMetaElement.HTMLMetaElement')
@DocsEditable()
- factory MetaElement() => JS('returns:MetaElement;creates:MetaElement;new:true', '#.createElement(#)', document, "meta");
+ factory MetaElement() => document.createElement("meta");
/**
* Constructor instantiated by the DOM when a custom element has been created.
*
@@ -25773,7 +25768,7 @@ class OListElement extends HtmlElement {
@DomName('HTMLOListElement.HTMLOListElement')
@DocsEditable()
- factory OListElement() => JS('returns:OListElement;creates:OListElement;new:true', '#.createElement(#)', document, "ol");
+ factory OListElement() => document.createElement("ol");
/**
* Constructor instantiated by the DOM when a custom element has been created.
*
@@ -25897,7 +25892,7 @@ class OptGroupElement extends HtmlElement {
@DomName('HTMLOptGroupElement.HTMLOptGroupElement')
@DocsEditable()
- factory OptGroupElement() => JS('returns:OptGroupElement;creates:OptGroupElement;new:true', '#.createElement(#)', document, "optgroup");
+ factory OptGroupElement() => document.createElement("optgroup");
/**
* Constructor instantiated by the DOM when a custom element has been created.
*
@@ -26111,7 +26106,7 @@ class ParagraphElement extends HtmlElement {
@DomName('HTMLParagraphElement.HTMLParagraphElement')
@DocsEditable()
- factory ParagraphElement() => JS('returns:ParagraphElement;creates:ParagraphElement;new:true', '#.createElement(#)', document, "p");
+ factory ParagraphElement() => document.createElement("p");
/**
* Constructor instantiated by the DOM when a custom element has been created.
*
@@ -26134,7 +26129,7 @@ class ParamElement extends HtmlElement {
@DomName('HTMLParamElement.HTMLParamElement')
@DocsEditable()
- factory ParamElement() => JS('returns:ParamElement;creates:ParamElement;new:true', '#.createElement(#)', document, "param");
+ factory ParamElement() => document.createElement("param");
/**
* Constructor instantiated by the DOM when a custom element has been created.
*
@@ -27249,7 +27244,7 @@ class PreElement extends HtmlElement {
@DomName('HTMLPreElement.HTMLPreElement')
@DocsEditable()
- factory PreElement() => JS('returns:PreElement;creates:PreElement;new:true', '#.createElement(#)', document, "pre");
+ factory PreElement() => document.createElement("pre");
/**
* Constructor instantiated by the DOM when a custom element has been created.
*
@@ -27674,7 +27669,7 @@ class QuoteElement extends HtmlElement {
@DomName('HTMLQuoteElement.HTMLQuoteElement')
@DocsEditable()
- factory QuoteElement() => JS('returns:QuoteElement;creates:QuoteElement;new:true', '#.createElement(#)', document, "q");
+ factory QuoteElement() => document.createElement("q");
/**
* Constructor instantiated by the DOM when a custom element has been created.
*
@@ -28925,7 +28920,7 @@ class ScriptElement extends HtmlElement {
@DomName('HTMLScriptElement.HTMLScriptElement')
@DocsEditable()
- factory ScriptElement() => JS('returns:ScriptElement;creates:ScriptElement;new:true', '#.createElement(#)', document, "script");
+ factory ScriptElement() => document.createElement("script");
/**
* Constructor instantiated by the DOM when a custom element has been created.
*
@@ -29159,7 +29154,7 @@ class SelectElement extends HtmlElement {
@DomName('HTMLSelectElement.HTMLSelectElement')
@DocsEditable()
- factory SelectElement() => JS('returns:SelectElement;creates:SelectElement;new:true', '#.createElement(#)', document, "select");
+ factory SelectElement() => document.createElement("select");
/**
* Constructor instantiated by the DOM when a custom element has been created.
*
@@ -29872,7 +29867,7 @@ class ShadowElement extends HtmlElement {
@DomName('HTMLShadowElement.HTMLShadowElement')
@DocsEditable()
- factory ShadowElement() => JS('returns:ShadowElement;creates:ShadowElement;new:true', '#.createElement(#)', document, "shadow");
+ factory ShadowElement() => document.createElement("shadow");
/**
* Constructor instantiated by the DOM when a custom element has been created.
*
@@ -30243,7 +30238,7 @@ class SourceElement extends HtmlElement {
@DomName('HTMLSourceElement.HTMLSourceElement')
@DocsEditable()
- factory SourceElement() => JS('returns:SourceElement;creates:SourceElement;new:true', '#.createElement(#)', document, "source");
+ factory SourceElement() => document.createElement("source");
/**
* Constructor instantiated by the DOM when a custom element has been created.
*
@@ -30320,7 +30315,7 @@ class SpanElement extends HtmlElement {
@DomName('HTMLSpanElement.HTMLSpanElement')
@DocsEditable()
- factory SpanElement() => JS('returns:SpanElement;creates:SpanElement;new:true', '#.createElement(#)', document, "span");
+ factory SpanElement() => document.createElement("span");
/**
* Constructor instantiated by the DOM when a custom element has been created.
*
@@ -31415,7 +31410,7 @@ class StyleElement extends HtmlElement {
@DomName('HTMLStyleElement.HTMLStyleElement')
@DocsEditable()
- factory StyleElement() => JS('returns:StyleElement;creates:StyleElement;new:true', '#.createElement(#)', document, "style");
+ factory StyleElement() => document.createElement("style");
/**
* Constructor instantiated by the DOM when a custom element has been created.
*
@@ -31613,7 +31608,7 @@ class TableCaptionElement extends HtmlElement {
@DomName('HTMLTableCaptionElement.HTMLTableCaptionElement')
@DocsEditable()
- factory TableCaptionElement() => JS('returns:TableCaptionElement;creates:TableCaptionElement;new:true', '#.createElement(#)', document, "caption");
+ factory TableCaptionElement() => document.createElement("caption");
/**
* Constructor instantiated by the DOM when a custom element has been created.
*
@@ -31635,7 +31630,7 @@ class TableCellElement extends HtmlElement {
@DomName('HTMLTableCellElement.HTMLTableCellElement')
@DocsEditable()
- factory TableCellElement() => JS('returns:TableCellElement;creates:TableCellElement;new:true', '#.createElement(#)', document, "td");
+ factory TableCellElement() => document.createElement("td");
/**
* Constructor instantiated by the DOM when a custom element has been created.
*
@@ -31673,7 +31668,7 @@ class TableColElement extends HtmlElement {
@DomName('HTMLTableColElement.HTMLTableColElement')
@DocsEditable()
- factory TableColElement() => JS('returns:TableColElement;creates:TableColElement;new:true', '#.createElement(#)', document, "col");
+ factory TableColElement() => document.createElement("col");
/**
* Constructor instantiated by the DOM when a custom element has been created.
*
@@ -31746,7 +31741,7 @@ class TableElement extends HtmlElement {
@DomName('HTMLTableElement.HTMLTableElement')
@DocsEditable()
- factory TableElement() => JS('returns:TableElement;creates:TableElement;new:true', '#.createElement(#)', document, "table");
+ factory TableElement() => document.createElement("table");
/**
* Constructor instantiated by the DOM when a custom element has been created.
*
@@ -31856,7 +31851,7 @@ class TableRowElement extends HtmlElement {
@DomName('HTMLTableRowElement.HTMLTableRowElement')
@DocsEditable()
- factory TableRowElement() => JS('returns:TableRowElement;creates:TableRowElement;new:true', '#.createElement(#)', document, "tr");
+ factory TableRowElement() => document.createElement("tr");
/**
* Constructor instantiated by the DOM when a custom element has been created.
*
@@ -32044,7 +32039,7 @@ class TextAreaElement extends HtmlElement {
@DomName('HTMLTextAreaElement.HTMLTextAreaElement')
@DocsEditable()
- factory TextAreaElement() => JS('returns:TextAreaElement;creates:TextAreaElement;new:true', '#.createElement(#)', document, "textarea");
+ factory TextAreaElement() => document.createElement("textarea");
/**
* Constructor instantiated by the DOM when a custom element has been created.
*
@@ -32654,7 +32649,7 @@ class TitleElement extends HtmlElement {
@DomName('HTMLTitleElement.HTMLTitleElement')
@DocsEditable()
- factory TitleElement() => JS('returns:TitleElement;creates:TitleElement;new:true', '#.createElement(#)', document, "title");
+ factory TitleElement() => document.createElement("title");
/**
* Constructor instantiated by the DOM when a custom element has been created.
*
@@ -33309,7 +33304,7 @@ class UListElement extends HtmlElement {
@DomName('HTMLUListElement.HTMLUListElement')
@DocsEditable()
- factory UListElement() => JS('returns:UListElement;creates:UListElement;new:true', '#.createElement(#)', document, "ul");
+ factory UListElement() => document.createElement("ul");
/**
* Constructor instantiated by the DOM when a custom element has been created.
*
@@ -33729,7 +33724,7 @@ class VideoElement extends MediaElement implements CanvasImageSource {
@DomName('HTMLVideoElement.HTMLVideoElement')
@DocsEditable()
- factory VideoElement() => JS('returns:VideoElement;creates:VideoElement;new:true', '#.createElement(#)', document, "video");
+ factory VideoElement() => document.createElement("video");
/**
* Constructor instantiated by the DOM when a custom element has been created.
*
« no previous file with comments | « no previous file | sdk/lib/html/dartium/html_dartium.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698