From a8b9cf2122e9e59c142d0573b7103910126be061 Mon Sep 17 00:00:00 2001 From: Hunter Trujillo Date: Fri, 29 Aug 2014 03:21:21 -0600 Subject: [PATCH 1/2] Alphabetize HTML.knownElementNames. --- packages/htmljs/html.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/htmljs/html.js b/packages/htmljs/html.js index 1b1281b47b..899395f5ec 100644 --- a/packages/htmljs/html.js +++ b/packages/htmljs/html.js @@ -307,7 +307,7 @@ HTML.getSymbolName = function (tagName) { * * An array of all known HTML5 and SVG element names in normalized case. */ -HTML.knownElementNames = 'a abbr acronym address applet area b base basefont bdo big blockquote body br button caption center cite code col colgroup dd del dfn dir div dl dt em fieldset font form frame frameset h1 h2 h3 h4 h5 h6 head hr html i iframe img input ins isindex kbd label legend li link map menu meta noframes noscript object ol optgroup option p param pre q s samp script select small span strike strong style sub sup table tbody td textarea tfoot th thead title tr tt u ul var article aside audio bdi canvas command data datagrid datalist details embed eventsource figcaption figure footer header hgroup keygen mark meter nav output progress ruby rp rt section source summary time track video wbr'.split(' '); +HTML.knownElementNames = 'a abbr acronym address applet area article aside audio b base basefont bdi bdo big blockquote body br button canvas caption center cite code col colgroup command data datagrid datalist dd del details dfn dir div dl dt em embed eventsource fieldset figcaption figure font footer form frame frameset h1 h2 h3 h4 h5 h6 head header hgroup hr html i iframe img input ins isindex kbd keygen label legend li link map mark menu meta meter nav noframes noscript object ol optgroup option output p param pre progress q rp rt ruby s samp script section select small source span strike strong style sub summary sup table tbody td textarea tfoot th thead time title tr track tt u ul var video wbr'.split(' '); // (we add the SVG ones below) /** From 902308af39907800e41fcba0d543e77359d0a5fa Mon Sep 17 00:00:00 2001 From: Hunter Trujillo Date: Fri, 29 Aug 2014 03:22:30 -0600 Subject: [PATCH 2/2] Add HTML5 `main` tag to list of known element names. --- packages/htmljs/html.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/htmljs/html.js b/packages/htmljs/html.js index 899395f5ec..30f71e564a 100644 --- a/packages/htmljs/html.js +++ b/packages/htmljs/html.js @@ -307,7 +307,7 @@ HTML.getSymbolName = function (tagName) { * * An array of all known HTML5 and SVG element names in normalized case. */ -HTML.knownElementNames = 'a abbr acronym address applet area article aside audio b base basefont bdi bdo big blockquote body br button canvas caption center cite code col colgroup command data datagrid datalist dd del details dfn dir div dl dt em embed eventsource fieldset figcaption figure font footer form frame frameset h1 h2 h3 h4 h5 h6 head header hgroup hr html i iframe img input ins isindex kbd keygen label legend li link map mark menu meta meter nav noframes noscript object ol optgroup option output p param pre progress q rp rt ruby s samp script section select small source span strike strong style sub summary sup table tbody td textarea tfoot th thead time title tr track tt u ul var video wbr'.split(' '); +HTML.knownElementNames = 'a abbr acronym address applet area article aside audio b base basefont bdi bdo big blockquote body br button canvas caption center cite code col colgroup command data datagrid datalist dd del details dfn dir div dl dt em embed eventsource fieldset figcaption figure font footer form frame frameset h1 h2 h3 h4 h5 h6 head header hgroup hr html i iframe img input ins isindex kbd keygen label legend li link main map mark menu meta meter nav noframes noscript object ol optgroup option output p param pre progress q rp rt ruby s samp script section select small source span strike strong style sub summary sup table tbody td textarea tfoot th thead time title tr track tt u ul var video wbr'.split(' '); // (we add the SVG ones below) /**