зеркало из https://github.com/mozilla/gecko-dev.git
Bug 820508 part 4 - Make <main> have the HTMLElement DOM interface. r=smaug.
This commit is contained in:
Родитель
470885f7b0
Коммит
2dd2903185
|
@ -171,6 +171,7 @@ HTML_TAG("legend", "Legend");
|
|||
HTML_TAG("li", "LI");
|
||||
HTML_TAG("link", "Link", [ "nsIDOMLinkStyle" ]);
|
||||
HTML_TAG("listing", "");
|
||||
HTML_TAG("main", "");
|
||||
HTML_TAG("map", "Map");
|
||||
HTML_TAG("mark", "");
|
||||
HTML_TAG("marquee", "Div");
|
||||
|
|
|
@ -114,6 +114,7 @@ EDITOR_ATOM(keygen, "keygen")
|
|||
EDITOR_ATOM(label, "label")
|
||||
EDITOR_ATOM(legend, "legend")
|
||||
EDITOR_ATOM(li, "li")
|
||||
EDITOR_ATOM(main, "main")
|
||||
EDITOR_ATOM(map, "map")
|
||||
EDITOR_ATOM(mark, "mark")
|
||||
EDITOR_ATOM(meter, "meter")
|
||||
|
|
|
@ -534,7 +534,7 @@ nsHTMLEditUtils::SupportsAlignAttr(nsIDOMNode* aNode)
|
|||
|
||||
// address, applet, article, aside, blockquote, button, center, del, dir, div,
|
||||
// dl, fieldset, figure, footer, form, h1, h2, h3, h4, h5, h6, header, hgroup,
|
||||
// hr, iframe, ins, map, menu, nav, noframes, noscript, object, ol, p,
|
||||
// hr, iframe, ins, main, map, menu, nav, noframes, noscript, object, ol, p,
|
||||
// pre, table, section, ul
|
||||
#define GROUP_BLOCK (1 << 7)
|
||||
|
||||
|
@ -697,6 +697,7 @@ static const nsElementInfo kElements[eHTMLTag_userdefined] = {
|
|||
ELEM(li, true, false, GROUP_LI, GROUP_FLOW_ELEMENT),
|
||||
ELEM(link, false, false, GROUP_HEAD_CONTENT, GROUP_NONE),
|
||||
ELEM(listing, false, false, GROUP_NONE, GROUP_NONE),
|
||||
ELEM(main, true, true, GROUP_BLOCK, GROUP_FLOW_ELEMENT),
|
||||
ELEM(map, true, true, GROUP_SPECIAL, GROUP_BLOCK | GROUP_MAP_CONTENT),
|
||||
ELEM(mark, true, true, GROUP_PHRASE, GROUP_INLINE_ELEMENT),
|
||||
ELEM(marquee, false, false, GROUP_NONE, GROUP_NONE),
|
||||
|
|
|
@ -106,6 +106,7 @@ HTML_TAG(legend, Legend)
|
|||
HTML_TAG(li, LI)
|
||||
HTML_TAG(link, Link)
|
||||
HTML_HTMLELEMENT_TAG(listing)
|
||||
HTML_HTMLELEMENT_TAG(main)
|
||||
HTML_TAG(map, Map)
|
||||
HTML_HTMLELEMENT_TAG(mark)
|
||||
HTML_TAG(marquee, Div)
|
||||
|
|
|
@ -786,6 +786,15 @@ const nsHTMLElement gHTMLElements[] = {
|
|||
/*special props, prop-range*/ 0,kDefaultPropRange,
|
||||
/*special parents,kids*/ 0,0,
|
||||
},
|
||||
{
|
||||
/*tag*/ eHTMLTag_main,
|
||||
/*req-parent excl-parent*/ eHTMLTag_unknown,eHTMLTag_unknown,
|
||||
/*rootnodes,endrootnodes*/ &gRootTags,&gRootTags,
|
||||
/*autoclose starttags and endtags*/ 0,0,0,0,
|
||||
/*parent,incl,exclgroups*/ kBlock, (kSelf|kFlowEntity), kNone,
|
||||
/*special props, prop-range*/ 0,kDefaultPropRange,
|
||||
/*special parents,kids*/ 0,0,
|
||||
},
|
||||
{
|
||||
/*tag*/ eHTMLTag_map,
|
||||
/*req-parent excl-parent*/ eHTMLTag_unknown,eHTMLTag_unknown,
|
||||
|
|
|
@ -161,6 +161,8 @@ static const PRUnichar sHTMLTagUnicodeName_link[] =
|
|||
{'l', 'i', 'n', 'k', '\0'};
|
||||
static const PRUnichar sHTMLTagUnicodeName_listing[] =
|
||||
{'l', 'i', 's', 't', 'i', 'n', 'g', '\0'};
|
||||
static const PRUnichar sHTMLTagUnicodeName_main[] =
|
||||
{'m', 'a', 'i', 'n', '\0'};
|
||||
static const PRUnichar sHTMLTagUnicodeName_map[] =
|
||||
{'m', 'a', 'p', '\0'};
|
||||
static const PRUnichar sHTMLTagUnicodeName_mark[] =
|
||||
|
|
Загрузка…
Ссылка в новой задаче