summaryrefslogtreecommitdiff
path: root/editor/libeditor
diff options
context:
space:
mode:
authorGaming4JC <g4jc@hyperbola.info>2020-01-07 08:22:36 -0500
committerGaming4JC <g4jc@hyperbola.info>2020-01-07 18:33:22 -0500
commit2e3b937f4ee13e70584c881e0c65200e439ff7fa (patch)
treeca4e3f45a92f969f49ee6d4bcfd4243cff370569 /editor/libeditor
parentc0326517787e12bb5904d8f55386499628806b42 (diff)
downloaduxp-2e3b937f4ee13e70584c881e0c65200e439ff7fa.tar.gz
Bug 1322938 - Basic implementation of HTMLDialogElement.
Tag #1343
Diffstat (limited to 'editor/libeditor')
-rw-r--r--editor/libeditor/HTMLEditUtils.cpp7
1 files changed, 4 insertions, 3 deletions
diff --git a/editor/libeditor/HTMLEditUtils.cpp b/editor/libeditor/HTMLEditUtils.cpp
index a701c06ec0..0adc5d5113 100644
--- a/editor/libeditor/HTMLEditUtils.cpp
+++ b/editor/libeditor/HTMLEditUtils.cpp
@@ -517,9 +517,9 @@ HTMLEditUtils::SupportsAlignAttr(nsIDOMNode* aNode)
#define GROUP_FORMCONTROL (1 << 6)
// address, applet, article, aside, blockquote, button, center, del, details,
-// dir, div, dl, fieldset, figure, footer, form, h1, h2, h3, h4, h5, h6, header,
-// hgroup, hr, iframe, ins, main, map, menu, nav, noframes, noscript, object,
-// ol, p, pre, table, section, summary, ul
+// dialog, dir, div, dl, fieldset, figure, footer, form, h1, h2, h3, h4, h5,
+// h6, header, hgroup, hr, iframe, ins, main, map, menu, nav, noframes,
+// noscript, object, ol, p, pre, table, section, summary, ul
#define GROUP_BLOCK (1 << 7)
// frame, frameset
@@ -638,6 +638,7 @@ static const ElementInfo kElements[eHTMLTag_userdefined] = {
ELEM(del, true, true, GROUP_PHRASE | GROUP_BLOCK, GROUP_FLOW_ELEMENT),
ELEM(details, true, true, GROUP_BLOCK, GROUP_FLOW_ELEMENT),
ELEM(dfn, true, true, GROUP_PHRASE, GROUP_INLINE_ELEMENT),
+ ELEM(dialog, true, true, GROUP_BLOCK, GROUP_FLOW_ELEMENT),
ELEM(dir, true, false, GROUP_BLOCK, GROUP_LI),
ELEM(div, true, true, GROUP_BLOCK, GROUP_FLOW_ELEMENT),
ELEM(dl, true, false, GROUP_BLOCK, GROUP_DL_CONTENT),