Chromium Code Reviews| OLD | NEW |
|---|---|
| (Empty) | |
| 1 library polymer.html_element_names; | |
|
Siggi Cherem (dart-lang)
2014/09/17 20:45:55
+ copyright
jakemac
2014/09/17 21:38:25
Done.
| |
| 2 | |
| 3 /** | |
| 4 * HTML element to DOM type mapping. Source: | |
| 5 * <http://dev.w3.org/html5/spec/section-index.html#element-interfaces> | |
| 6 * | |
| 7 * The 'HTML' prefix has been removed to match `dart:html`, as per: | |
| 8 * <http://code.google.com/p/dart/source/browse/branches/bleeding_edge/dart/lib/ html/scripts/htmlrenamer.py> | |
| 9 * It does not appear any element types are being renamed other than the prefix. | |
| 10 * However there does not appear to be the last subtypes for the following tags: | |
| 11 * command, data, dialog, td, th, and time. | |
|
Siggi Cherem (dart-lang)
2014/09/17 20:45:55
I just checked, it seems that 'dialog' is ok now,
jakemac
2014/09/17 21:38:25
Done.
| |
| 12 */ | |
| 13 const HTML_ELEMENT_NAMES = const { | |
| 14 'a': 'AnchorElement', | |
| 15 'abbr': 'Element', | |
| 16 'address': 'Element', | |
| 17 'area': 'AreaElement', | |
| 18 'article': 'Element', | |
| 19 'aside': 'Element', | |
| 20 'audio': 'AudioElement', | |
| 21 'b': 'Element', | |
| 22 'base': 'BaseElement', | |
| 23 'bdi': 'Element', | |
| 24 'bdo': 'Element', | |
| 25 'blockquote': 'QuoteElement', | |
| 26 'body': 'BodyElement', | |
| 27 'br': 'BRElement', | |
| 28 'button': 'ButtonElement', | |
| 29 'canvas': 'CanvasElement', | |
| 30 'caption': 'TableCaptionElement', | |
| 31 'cite': 'Element', | |
| 32 'code': 'Element', | |
| 33 'col': 'TableColElement', | |
| 34 'colgroup': 'TableColElement', | |
| 35 'command': 'Element', // see doc comment, was: 'CommandElement' | |
| 36 'data': 'Element', // see doc comment, was: 'DataElement' | |
| 37 'datalist': 'DataListElement', | |
| 38 'dd': 'Element', | |
| 39 'del': 'ModElement', | |
| 40 'details': 'DetailsElement', | |
| 41 'dfn': 'Element', | |
| 42 'dialog': 'Element', // see doc comment, was: 'DialogElement' | |
|
Siggi Cherem (dart-lang)
2014/09/17 20:45:55
and simply change here to 'DialogElement'
jakemac
2014/09/17 21:38:25
Done.
| |
| 43 'div': 'DivElement', | |
| 44 'dl': 'DListElement', | |
| 45 'dt': 'Element', | |
| 46 'em': 'Element', | |
| 47 'embed': 'EmbedElement', | |
| 48 'fieldset': 'FieldSetElement', | |
| 49 'figcaption': 'Element', | |
| 50 'figure': 'Element', | |
| 51 'footer': 'Element', | |
| 52 'form': 'FormElement', | |
| 53 'h1': 'HeadingElement', | |
| 54 'h2': 'HeadingElement', | |
| 55 'h3': 'HeadingElement', | |
| 56 'h4': 'HeadingElement', | |
| 57 'h5': 'HeadingElement', | |
| 58 'h6': 'HeadingElement', | |
| 59 'head': 'HeadElement', | |
| 60 'header': 'Element', | |
| 61 'hgroup': 'Element', | |
| 62 'hr': 'HRElement', | |
| 63 'html': 'HtmlElement', | |
| 64 'i': 'Element', | |
| 65 'iframe': 'IFrameElement', | |
| 66 'img': 'ImageElement', | |
| 67 'input': 'InputElement', | |
| 68 'ins': 'ModElement', | |
| 69 'kbd': 'Element', | |
| 70 'keygen': 'KeygenElement', | |
| 71 'label': 'LabelElement', | |
| 72 'legend': 'LegendElement', | |
| 73 'li': 'LIElement', | |
| 74 'link': 'LinkElement', | |
| 75 'map': 'MapElement', | |
| 76 'mark': 'Element', | |
| 77 'menu': 'MenuElement', | |
| 78 'meta': 'MetaElement', | |
| 79 'meter': 'MeterElement', | |
| 80 'nav': 'Element', | |
| 81 'noscript': 'Element', | |
| 82 'object': 'ObjectElement', | |
| 83 'ol': 'OListElement', | |
| 84 'optgroup': 'OptGroupElement', | |
| 85 'option': 'OptionElement', | |
| 86 'output': 'OutputElement', | |
| 87 'p': 'ParagraphElement', | |
| 88 'param': 'ParamElement', | |
| 89 'pre': 'PreElement', | |
| 90 'progress': 'ProgressElement', | |
| 91 'q': 'QuoteElement', | |
| 92 'rp': 'Element', | |
| 93 'rt': 'Element', | |
| 94 'ruby': 'Element', | |
| 95 's': 'Element', | |
| 96 'samp': 'Element', | |
| 97 'script': 'ScriptElement', | |
| 98 'section': 'Element', | |
| 99 'select': 'SelectElement', | |
| 100 'small': 'Element', | |
| 101 'source': 'SourceElement', | |
| 102 'span': 'SpanElement', | |
| 103 'strong': 'Element', | |
| 104 'style': 'StyleElement', | |
| 105 'sub': 'Element', | |
| 106 'summary': 'Element', | |
| 107 'sup': 'Element', | |
| 108 'table': 'TableElement', | |
| 109 'tbody': 'TableSectionElement', | |
| 110 'td': 'TableCellElement', // see doc comment, was: 'TableDataCellElement' | |
| 111 'template': 'Element', // should be 'TemplateElement', but it is not yet | |
|
Siggi Cherem (dart-lang)
2014/09/17 20:45:55
seems that TemplateElement is in too, let's fix th
jakemac
2014/09/17 21:38:25
Done.
| |
| 112 // in dart:html | |
| 113 'textarea': 'TextAreaElement', | |
| 114 'tfoot': 'TableSectionElement', | |
| 115 'th': 'TableCellElement', // see doc comment, was: 'TableHeaderCellElement' | |
| 116 'thead': 'TableSectionElement', | |
| 117 'time': 'Element', // see doc comment, was: 'TimeElement' | |
| 118 'title': 'TitleElement', | |
| 119 'tr': 'TableRowElement', | |
| 120 'track': 'TrackElement', | |
| 121 'u': 'Element', | |
| 122 'ul': 'UListElement', | |
| 123 'var': 'Element', | |
| 124 'video': 'VideoElement', | |
| 125 'wbr': 'Element', | |
| 126 }; | |
| OLD | NEW |