diff options
author | janekptacijarabaci <janekptacijarabaci@seznam.cz> | 2017-04-13 19:23:21 +0200 |
---|---|---|
committer | janekptacijarabaci <janekptacijarabaci@seznam.cz> | 2017-04-13 19:23:21 +0200 |
commit | b2328d08dbe677ba92703a94406efd31309f25ab (patch) | |
tree | 92c80c673698a6f7854255f37937a907b17d7f42 /parser/htmlparser | |
parent | 82be21d70cde9b16ffc2ae44d87d9ef19051011a (diff) | |
download | palemoon-gre-b2328d08dbe677ba92703a94406efd31309f25ab.tar.gz |
HTML - support for elements: <details> and <summary> (basic)
Diffstat (limited to 'parser/htmlparser')
-rw-r--r-- | parser/htmlparser/nsElementTable.cpp | 9 | ||||
-rw-r--r-- | parser/htmlparser/nsHTMLTagList.h | 2 |
2 files changed, 10 insertions, 1 deletions
diff --git a/parser/htmlparser/nsElementTable.cpp b/parser/htmlparser/nsElementTable.cpp index 104afa9a7..fe69fb3e6 100644 --- a/parser/htmlparser/nsElementTable.cpp +++ b/parser/htmlparser/nsElementTable.cpp @@ -144,6 +144,10 @@ const nsHTMLElement gHTMLElements[] = { /*parent,leaf*/ kFlowEntity, false }, { + /*tag*/ eHTMLTag_details, + /*parent,leaf*/ kBlock, false + }, + { /*tag*/ eHTMLTag_dfn, /*parent,leaf*/ kPhrase, false }, @@ -476,7 +480,10 @@ const nsHTMLElement gHTMLElements[] = { /*parent,leaf*/ kSpecial, false }, { - /*tag*/ eHTMLTag_sup, + /*tag*/ eHTMLTag_summary, + /*parent,leaf*/ kBlock, false + }, + { /*tag*/ eHTMLTag_sup, /*parent,leaf*/ kSpecial, false }, { diff --git a/parser/htmlparser/nsHTMLTagList.h b/parser/htmlparser/nsHTMLTagList.h index 26110979d..76fe3b83c 100644 --- a/parser/htmlparser/nsHTMLTagList.h +++ b/parser/htmlparser/nsHTMLTagList.h @@ -66,6 +66,7 @@ HTML_TAG(data, Data) HTML_TAG(datalist, DataList) HTML_HTMLELEMENT_TAG(dd) HTML_TAG(del, Mod) +HTML_TAG(details, Details) HTML_HTMLELEMENT_TAG(dfn) HTML_TAG(dir, Shared) HTML_TAG(div, Div) @@ -149,6 +150,7 @@ HTML_HTMLELEMENT_TAG(strike) HTML_HTMLELEMENT_TAG(strong) HTML_TAG(style, Style) HTML_HTMLELEMENT_TAG(sub) +HTML_TAG(summary, Summary) HTML_HTMLELEMENT_TAG(sup) HTML_TAG(table, Table) HTML_TAG(tbody, TableSection) |