From 1c79b181e5705b903d354282776755fc29fe6571 Mon Sep 17 00:00:00 2001 From: Adam Vandolder Date: Wed, 15 May 2024 16:40:20 +0000 Subject: [PATCH] Bug 1890428 - Add shadowrootserializable attribute. r=dom-core,hsivonen Differential Revision: https://phabricator.services.mozilla.com/D206954 --- parser/html/javasrc/AttributeName.java | 709 +++++++++--------- parser/html/javasrc/TreeBuilder.java | 5 +- parser/html/nsHtml5AttributeName.cpp | 433 +++++------ parser/html/nsHtml5AttributeName.h | 1 + parser/html/nsHtml5TreeBuilder.cpp | 5 +- parser/html/nsHtml5TreeBuilderCppSupplement.h | 2 +- parser/html/nsHtml5TreeBuilderHSupplement.h | 1 + .../meta/html/dom/idlharness.https.html.ini | 6 - xpcom/ds/HTMLAtoms.py | 2 + 9 files changed, 587 insertions(+), 577 deletions(-) diff --git a/parser/html/javasrc/AttributeName.java b/parser/html/javasrc/AttributeName.java index fa608ac60d56..16e3de553982 100644 --- a/parser/html/javasrc/AttributeName.java +++ b/parser/html/javasrc/AttributeName.java @@ -801,6 +801,7 @@ public final class AttributeName public static final AttributeName SHADOWROOTMODE = new AttributeName(ALL_NO_NS, "shadowrootmode", "shadowrootmode", "shadowrootmode", "shadowrootmode", ALL_NO_PREFIX, NCNAME_HTML | NCNAME_FOREIGN | NCNAME_LANG); public static final AttributeName SEED = new AttributeName(ALL_NO_NS, "seed", "seed", "seed", "seed", ALL_NO_PREFIX, NCNAME_HTML | NCNAME_FOREIGN | NCNAME_LANG); public static final AttributeName SHADOWROOTCLONABLE = new AttributeName(ALL_NO_NS, "shadowrootclonable", "shadowrootclonable", "shadowrootclonable", "shadowrootclonable", ALL_NO_PREFIX, NCNAME_HTML | NCNAME_FOREIGN | NCNAME_LANG); + public static final AttributeName SHADOWROOTSERIALIZABLE = new AttributeName(ALL_NO_NS, "shadowrootserializable", "shadowrootserializable", "shadowrootserializable", "shadowrootserializable", ALL_NO_PREFIX, NCNAME_HTML | NCNAME_FOREIGN | NCNAME_LANG); public static final AttributeName SRCDOC = new AttributeName(ALL_NO_NS, "srcdoc", "srcdoc", "srcdoc", "srcdoc", ALL_NO_PREFIX, NCNAME_HTML | NCNAME_FOREIGN | NCNAME_LANG); public static final AttributeName STDDEVIATION = new AttributeName(ALL_NO_NS, "stddeviation", "stddeviation", "stdDeviation", "stddeviation", ALL_NO_PREFIX, NCNAME_HTML | NCNAME_FOREIGN | NCNAME_LANG); public static final AttributeName SANDBOX = new AttributeName(ALL_NO_NS, "sandbox", "sandbox", "sandbox", "sandbox", ALL_NO_PREFIX, NCNAME_HTML | NCNAME_FOREIGN | NCNAME_LANG); @@ -1196,30 +1197,30 @@ public final class AttributeName public static final AttributeName RY = new AttributeName(ALL_NO_NS, "ry", "ry", "ry", "ry", ALL_NO_PREFIX, NCNAME_HTML | NCNAME_FOREIGN | NCNAME_LANG); public static final AttributeName REFY = new AttributeName(ALL_NO_NS, "refy", "refy", "refY", "refy", ALL_NO_PREFIX, NCNAME_HTML | NCNAME_FOREIGN | NCNAME_LANG); private final static @NoLength AttributeName[] ATTRIBUTE_NAMES = { - AMPLITUDE, - CODE, + MASKCONTENTUNITS, + BASE, WRAP, CLEAR, - ALIGNMENT_BASELINE, + ALIGN, AUTOFOCUS, FONT_VARIANT, ARIA_DISABLED, OPACITY, - ORIENTATION, - ACTIONTYPE, - EVENT, + ORIENT, + ALTIMG, + IN, STROKE_LINECAP, CLOSE, COLUMNWIDTH, Y, ARIA_MULTISELECTABLE, ROTATE, - SRCDOC, - LINETHICKNESS, - SIZES, - TARGET, - SCRIPTSIZEMULTIPLIER, - AZIMUTH, + SHADOWROOTSERIALIZABLE, + LABEL, + SELECTED, + PING, + SCRIPTLEVEL, + TITLE, STANDBY, ONMOUSEWHEEL, GLYPH_ORIENTATION_VERTICAL, @@ -1234,17 +1235,17 @@ public final class AttributeName LOCAL, ONABORT, HIDDEN, - ACCENT, - EDGE, - ORDER, - ONRESIZE, - DIFFUSECONSTANT, - LANG, - MATHVARIANT, - LIMITINGCONEANGLE, - MARKERHEIGHT, - ONCLICK, - PRIMITIVEUNITS, + ACCESSKEY, + EDGEMODE, + ONSELECT, + ONKEYDOWN, + TYPE, + LANGUAGE, + METHOD, + DEFINITIONURL, + MARKER_MID, + MAXLENGTH, + PROMPT, ONEND, XLINK_ARCROLE, ENCODING, @@ -1273,28 +1274,28 @@ public final class AttributeName FETCHPRIORITY, BORDER, RENDERING_INTENT, - WORD_SPACING, - BASELINE_SHIFT, - DEFER, - INTERCEPT, - ONBEFOREUNLOAD, - ONMESSAGE, - ONKEYPRESS, - ROLE, - SPREADMETHOD, - PROFILE, - IMAGESIZES, - MARGINHEIGHT, - HIGH, - ONCHANGE, - BEGIN, - OPTIMUM, - VISIBILITY, - MARKERWIDTH, - FILL_RULE, - SCALE, - FRAMESPACING, - ZOOMANDPAN, + SHADOWROOTDELEGATESFOCUS, + BASEFREQUENCY, + CITE, + INDEX, + NORESIZE, + ONREADYSTATECHANGE, + ONBEFOREPASTE, + RULES, + SCHEME, + ONAFTERPRINT, + HEIGHT, + LENGTHADJUST, + ARCHIVE, + NOSHADE, + ADDITIVE, + ONFINISH, + VALIGN, + MARKER_START, + DECLARE, + ROWLINES, + FRAME, + USEMAP, KERNELUNITLENGTH, POINTSATX, WHEN, @@ -1351,50 +1352,50 @@ public final class AttributeName GRADIENTTRANSFORM, LOADING, SEED, - SANDBOX, - ACCEPT_CHARSET, - BEVELLED, - BASELINE, - CODEBASE, - DIRECTION, - FACE, - LINEBREAK, - NAME, - OBJECT, - ONRESET, - ONBEFOREPRINT, - ONSELECTSTART, - ONBEFORECUT, - REFERRERPOLICY, - REPEATDUR, - STRETCHY, - SIZE, - HREFLANG, - XREF, - DRAGGABLE, - IMAGE_RENDERING, - LONGDESC, - ORIGIN, - TARGETY, - MATHBACKGROUND, - MATHSIZE, - PATH, - ACTIVE, - DIVISOR, - MANIFEST, - RADIUS, - TABINDEX, - LINK, - MASK, - MARKERUNITS, - CELLPADDING, - FILL_OPACITY, - REPLACE, - TABLEVALUES, - FRAMEBORDER, - FORM, - SUMMARY, - ALINK, + STDDEVIATION, + ACCENTUNDER, + ACCEPT, + BASEPROFILE, + CODETYPE, + DATETIME, + ENTERKEYHINT, + INTEGRITY, + MODE, + ONREPEAT, + OTHER, + ONBEGIN, + ONBEFORECOPY, + ONKEYUP, + REPEAT, + REPEATCOUNT, + SUPERSCRIPTSHIFT, + SELECTION, + HREF, + SURFACESCALE, + ALIGNMENTSCOPE, + IMAGESRCSET, + LARGEOP, + MARGINWIDTH, + TARGETX, + LIGHTING_COLOR, + MATHCOLOR, + PATHLENGTH, + ACTION, + DOMINANT_BASELINE, + MEDIA, + RADIOGROUP, + SCRIPTMINSIZE, + BACKGROUND, + MARKER_END, + MASKUNITS, + CELLSPACING, + FILL, + ONBLUR, + STYLE, + FORMAT, + FROM, + SYMMETRIC, + ASYNC, KERNELMATRIX, OPEN, POINTER_EVENTS, @@ -1507,94 +1508,94 @@ public final class AttributeName READONLY, SHADOWROOTMODE, SHADOWROOTCLONABLE, - STDDEVIATION, - SHADOWROOTDELEGATESFOCUS, - ACCENTUNDER, - ACCESSKEY, - ACCEPT, - BASEFREQUENCY, - BASEPROFILE, - BASE, - CODETYPE, - CITE, - DATETIME, - EDGEMODE, - ENTERKEYHINT, - INDEX, - INTEGRITY, - LABEL, - MODE, - NORESIZE, - ONREPEAT, - ONSELECT, - OTHER, - ONREADYSTATECHANGE, - ONBEGIN, - ORIENT, - ONBEFORECOPY, - ONBEFOREPASTE, - ONKEYUP, - ONKEYDOWN, - REPEAT, - RULES, - REPEATCOUNT, - SELECTED, - SUPERSCRIPTSHIFT, - SCHEME, - SELECTION, - TYPE, - HREF, - ONAFTERPRINT, - SURFACESCALE, - ALIGN, - ALIGNMENTSCOPE, - HEIGHT, - IMAGESRCSET, - LANGUAGE, - LARGEOP, - LENGTHADJUST, - MARGINWIDTH, - PING, - TARGETX, - ARCHIVE, - LIGHTING_COLOR, - METHOD, - MATHCOLOR, - NOSHADE, - PATHLENGTH, - ALTIMG, - ACTION, - ADDITIVE, - DOMINANT_BASELINE, - DEFINITIONURL, - MEDIA, - ONFINISH, - RADIOGROUP, - SCRIPTLEVEL, - SCRIPTMINSIZE, - VALIGN, - BACKGROUND, - MARKER_MID, - MARKER_END, - MARKER_START, - MASKUNITS, - MASKCONTENTUNITS, - CELLSPACING, - DECLARE, - FILL, - MAXLENGTH, - ONBLUR, - ROWLINES, - STYLE, - TITLE, - FORMAT, - FRAME, - FROM, - PROMPT, - SYMMETRIC, - USEMAP, - ASYNC, - IN, + SRCDOC, + SANDBOX, + WORD_SPACING, + ACCEPT_CHARSET, + ACCENT, + BEVELLED, + BASELINE_SHIFT, + BASELINE, + CODE, + CODEBASE, + DEFER, + DIRECTION, + EDGE, + FACE, + INTERCEPT, + LINEBREAK, + LINETHICKNESS, + NAME, + ONBEFOREUNLOAD, + OBJECT, + ORDER, + ONRESET, + ONMESSAGE, + ONBEFOREPRINT, + ORIENTATION, + ONSELECTSTART, + ONKEYPRESS, + ONBEFORECUT, + ONRESIZE, + REFERRERPOLICY, + ROLE, + REPEATDUR, + SIZES, + STRETCHY, + SPREADMETHOD, + SIZE, + DIFFUSECONSTANT, + HREFLANG, + PROFILE, + XREF, + ALIGNMENT_BASELINE, + DRAGGABLE, + IMAGESIZES, + IMAGE_RENDERING, + LANG, + LONGDESC, + MARGINHEIGHT, + ORIGIN, + TARGET, + TARGETY, + HIGH, + MATHBACKGROUND, + MATHVARIANT, + MATHSIZE, + ONCHANGE, + PATH, + ACTIONTYPE, + ACTIVE, + BEGIN, + DIVISOR, + LIMITINGCONEANGLE, + MANIFEST, + OPTIMUM, + RADIUS, + SCRIPTSIZEMULTIPLIER, + TABINDEX, + VISIBILITY, + LINK, + MARKERHEIGHT, + MASK, + MARKERWIDTH, + MARKERUNITS, + AMPLITUDE, + CELLPADDING, + FILL_RULE, + FILL_OPACITY, + ONCLICK, + REPLACE, + SCALE, + TABLEVALUES, + AZIMUTH, + FRAMEBORDER, + FRAMESPACING, + FORM, + PRIMITIVEUNITS, + SUMMARY, + ZOOMANDPAN, + ALINK, ICON, KERNING, ONUNLOAD, @@ -1703,30 +1704,30 @@ public final class AttributeName REFX, }; private final static int[] ATTRIBUTE_HASHES = { - 1864698185, - 1748306996, + 1854497008, + 1748021284, 1943317364, 1681174213, - 1780975314, + 1780879045, 1915341049, 2001732764, 1680165421, 1721347639, - 1754798923, - 1814558026, - 1900548965, + 1754794646, + 1814517574, + 1900544002, 1924443742, 1983432389, 2017010843, 71827457, 1680282148, 1689324870, - 1740096054, - 1753297133, - 1756737685, - 1790814502, - 1823841492, - 1881750231, + 1740045862, + 1753049109, + 1756704824, + 1788842244, + 1823829083, + 1874788501, 1907701479, 1922400908, 1934917290, @@ -1741,17 +1742,17 @@ public final class AttributeName 1685882101, 1704526375, 1734182982, - 1747446838, - 1749399124, - 1754643237, - 1754958648, - 1765800271, - 1786740932, - 1804069019, - 1820262641, - 1854302364, - 1872034503, - 1889633006, + 1747309881, + 1749350104, + 1754612424, + 1754927689, + 1757421892, + 1786622296, + 1804054854, + 1816178925, + 1854285018, + 1871251689, + 1889569526, 1905754853, 1910441773, 1917295176, @@ -1780,28 +1781,28 @@ public final class AttributeName 1716623661, 1731048742, 1739583824, - 1742183484, - 1747839118, - 1748869205, - 1751679545, - 1754546894, - 1754647353, - 1754872618, - 1756302628, - 1756874572, - 1772032615, - 1785051290, - 1787193500, - 1801312388, - 1804978712, - 1814986837, - 1822002839, - 1825677514, - 1854474395, - 1867448617, - 1874261045, - 1884267068, - 1894552650, + 1740222216, + 1747800157, + 1748566068, + 1751507685, + 1754434872, + 1754647074, + 1754860061, + 1756219733, + 1756836998, + 1771569964, + 1784574102, + 1786851500, + 1797886599, + 1804405895, + 1814656840, + 1821958888, + 1825437894, + 1854466380, + 1866496199, + 1873656984, + 1884246821, + 1891937366, 1903759600, 1906419001, 1909819252, @@ -1858,50 +1859,50 @@ public final class AttributeName 1733874289, 1736416327, 1739927860, - 1740130375, - 1747299630, - 1747792072, - 1747939528, - 1748552744, - 1749027145, - 1749856356, - 1752985897, - 1754214628, - 1754606246, - 1754645079, - 1754792749, - 1754858317, - 1754907227, - 1756190926, - 1756471625, - 1756804936, - 1757053236, - 1767875272, - 1776114564, - 1782518297, - 1785174319, - 1786821704, - 1788254870, - 1791070327, - 1804036350, - 1804235064, - 1805715716, - 1814656326, - 1816144023, - 1820928104, - 1823580230, - 1824377064, - 1853862084, - 1854464212, - 1854497003, - 1865910347, - 1867620412, - 1873590471, - 1874698443, - 1884142379, - 1884343396, - 1891186903, - 1898428101, + 1740119884, + 1747295467, + 1747479606, + 1747906667, + 1748503880, + 1748971848, + 1749549708, + 1751755561, + 1753550036, + 1754579720, + 1754644293, + 1754698327, + 1754835516, + 1754899031, + 1756147974, + 1756360955, + 1756762256, + 1756889417, + 1767725700, + 1773606972, + 1781007934, + 1785053243, + 1786775671, + 1787365531, + 1791068279, + 1803561214, + 1804081401, + 1805715690, + 1814560070, + 1816104145, + 1820727381, + 1823574314, + 1824159037, + 1848600826, + 1854366938, + 1854497001, + 1865910331, + 1867462756, + 1872343590, + 1874270021, + 1884079398, + 1884295780, + 1890996553, + 1898415413, 1903612236, 1905628916, 1906408542, @@ -2014,94 +2015,94 @@ public final class AttributeName 1739561208, 1739914974, 1740045858, - 1740119884, - 1740222216, - 1747295467, - 1747309881, - 1747479606, - 1747800157, - 1747906667, - 1748021284, - 1748503880, - 1748566068, - 1748971848, - 1749350104, - 1749549708, - 1751507685, - 1751755561, - 1753049109, - 1753550036, - 1754434872, - 1754579720, - 1754612424, - 1754644293, - 1754647074, - 1754698327, - 1754794646, - 1754835516, - 1754860061, - 1754899031, - 1754927689, - 1756147974, - 1756219733, - 1756360955, - 1756704824, - 1756762256, - 1756836998, - 1756889417, - 1757421892, - 1767725700, - 1771569964, - 1773606972, - 1780879045, - 1781007934, - 1784574102, - 1785053243, - 1786622296, - 1786775671, - 1786851500, - 1787365531, - 1788842244, - 1791068279, - 1797886599, - 1803561214, - 1804054854, - 1804081401, - 1804405895, - 1805715690, - 1814517574, - 1814560070, - 1814656840, - 1816104145, - 1816178925, - 1820727381, - 1821958888, - 1823574314, - 1823829083, - 1824159037, - 1825437894, - 1848600826, - 1854285018, - 1854366938, - 1854466380, - 1854497001, - 1854497008, - 1865910331, - 1866496199, - 1867462756, - 1871251689, - 1872343590, - 1873656984, - 1874270021, - 1874788501, - 1884079398, - 1884246821, - 1884295780, - 1889569526, - 1890996553, - 1891937366, - 1898415413, - 1900544002, + 1740096054, + 1740130375, + 1742183484, + 1747299630, + 1747446838, + 1747792072, + 1747839118, + 1747939528, + 1748306996, + 1748552744, + 1748869205, + 1749027145, + 1749399124, + 1749856356, + 1751679545, + 1752985897, + 1753297133, + 1754214628, + 1754546894, + 1754606246, + 1754643237, + 1754645079, + 1754647353, + 1754792749, + 1754798923, + 1754858317, + 1754872618, + 1754907227, + 1754958648, + 1756190926, + 1756302628, + 1756471625, + 1756737685, + 1756804936, + 1756874572, + 1757053236, + 1765800271, + 1767875272, + 1772032615, + 1776114564, + 1780975314, + 1782518297, + 1785051290, + 1785174319, + 1786740932, + 1786821704, + 1787193500, + 1788254870, + 1790814502, + 1791070327, + 1801312388, + 1804036350, + 1804069019, + 1804235064, + 1804978712, + 1805715716, + 1814558026, + 1814656326, + 1814986837, + 1816144023, + 1820262641, + 1820928104, + 1822002839, + 1823580230, + 1823841492, + 1824377064, + 1825677514, + 1853862084, + 1854302364, + 1854464212, + 1854474395, + 1854497003, + 1864698185, + 1865910347, + 1867448617, + 1867620412, + 1872034503, + 1873590471, + 1874261045, + 1874698443, + 1881750231, + 1884142379, + 1884267068, + 1884343396, + 1889633006, + 1891186903, + 1894552650, + 1898428101, 1902640276, 1903659239, 1905541832, diff --git a/parser/html/javasrc/TreeBuilder.java b/parser/html/javasrc/TreeBuilder.java index c190b7fd2020..076caeff9788 100644 --- a/parser/html/javasrc/TreeBuilder.java +++ b/parser/html/javasrc/TreeBuilder.java @@ -2990,8 +2990,9 @@ public abstract class TreeBuilder implements TokenHandler, } boolean shadowRootIsClonable = attributes.contains(AttributeName.SHADOWROOTCLONABLE); + boolean shadowRootIsSerializable = attributes.contains(AttributeName.SHADOWROOTSERIALIZABLE); boolean shadowRootDelegatesFocus = attributes.contains(AttributeName.SHADOWROOTDELEGATESFOCUS); - return getShadowRootFromHost(currentNode, templateNode, shadowRootMode, shadowRootIsClonable, shadowRootDelegatesFocus); + return getShadowRootFromHost(currentNode, templateNode, shadowRootMode, shadowRootIsClonable, shadowRootIsSerializable, shadowRootDelegatesFocus); } /** @@ -5439,7 +5440,7 @@ public abstract class TreeBuilder implements TokenHandler, } T getShadowRootFromHost(T host, T template, String shadowRootMode, - boolean shadowRootIsClonable, boolean shadowRootDelegatesFocus) { + boolean shadowRootIsClonable, boolean shadowRootIsSerializable, boolean shadowRootDelegatesFocus) { return null; } diff --git a/parser/html/nsHtml5AttributeName.cpp b/parser/html/nsHtml5AttributeName.cpp index 0915a8cd6db6..8b2c4f10289b 100644 --- a/parser/html/nsHtml5AttributeName.cpp +++ b/parser/html/nsHtml5AttributeName.cpp @@ -197,6 +197,8 @@ nsHtml5AttributeName* nsHtml5AttributeName::ATTR_RENDERING_INTENT = nullptr; nsHtml5AttributeName* nsHtml5AttributeName::ATTR_SHADOWROOTMODE = nullptr; nsHtml5AttributeName* nsHtml5AttributeName::ATTR_SEED = nullptr; nsHtml5AttributeName* nsHtml5AttributeName::ATTR_SHADOWROOTCLONABLE = nullptr; +nsHtml5AttributeName* nsHtml5AttributeName::ATTR_SHADOWROOTSERIALIZABLE = + nullptr; nsHtml5AttributeName* nsHtml5AttributeName::ATTR_SRCDOC = nullptr; nsHtml5AttributeName* nsHtml5AttributeName::ATTR_STDDEVIATION = nullptr; nsHtml5AttributeName* nsHtml5AttributeName::ATTR_SANDBOX = nullptr; @@ -597,23 +599,23 @@ nsHtml5AttributeName* nsHtml5AttributeName::ATTR_RY = nullptr; nsHtml5AttributeName* nsHtml5AttributeName::ATTR_REFY = nullptr; nsHtml5AttributeName** nsHtml5AttributeName::ATTRIBUTE_NAMES = 0; static int32_t const ATTRIBUTE_HASHES_DATA[] = { - 1864698185, 1748306996, 1943317364, 1681174213, 1780975314, 1915341049, - 2001732764, 1680165421, 1721347639, 1754798923, 1814558026, 1900548965, + 1854497008, 1748021284, 1943317364, 1681174213, 1780879045, 1915341049, + 2001732764, 1680165421, 1721347639, 1754794646, 1814517574, 1900544002, 1924443742, 1983432389, 2017010843, 71827457, 1680282148, 1689324870, - 1740096054, 1753297133, 1756737685, 1790814502, 1823841492, 1881750231, + 1740045862, 1753049109, 1756704824, 1788842244, 1823829083, 1874788501, 1907701479, 1922400908, 1934917290, 1972908839, 1993343287, 2007064819, 2065694722, 57205395, 911736834, 1680181996, 1680368221, 1685882101, - 1704526375, 1734182982, 1747446838, 1749399124, 1754643237, 1754958648, - 1765800271, 1786740932, 1804069019, 1820262641, 1854302364, 1872034503, - 1889633006, 1905754853, 1910441773, 1917295176, 1922665179, 1924773438, + 1704526375, 1734182982, 1747309881, 1749350104, 1754612424, 1754927689, + 1757421892, 1786622296, 1804054854, 1816178925, 1854285018, 1871251689, + 1889569526, 1905754853, 1910441773, 1917295176, 1922665179, 1924773438, 1941286708, 1972151670, 1982254612, 1989522022, 2001527900, 2005342360, 2009231684, 2024794274, 2082471938, 53006051, 60345635, 885522434, 1680095865, 1680165533, 1680229115, 1680343801, 1680437801, 1682440540, - 1687620127, 1692408896, 1716623661, 1731048742, 1739583824, 1742183484, - 1747839118, 1748869205, 1751679545, 1754546894, 1754647353, 1754872618, - 1756302628, 1756874572, 1772032615, 1785051290, 1787193500, 1801312388, - 1804978712, 1814986837, 1822002839, 1825677514, 1854474395, 1867448617, - 1874261045, 1884267068, 1894552650, 1903759600, 1906419001, 1909819252, + 1687620127, 1692408896, 1716623661, 1731048742, 1739583824, 1740222216, + 1747800157, 1748566068, 1751507685, 1754434872, 1754647074, 1754860061, + 1756219733, 1756836998, 1771569964, 1784574102, 1786851500, 1797886599, + 1804405895, 1814656840, 1821958888, 1825437894, 1854466380, 1866496199, + 1873656984, 1884246821, 1891937366, 1903759600, 1906419001, 1909819252, 1910527802, 1916247343, 1921061206, 1922566877, 1922679610, 1924583073, 1933123337, 1937336473, 1941440197, 1966384692, 1972744954, 1972996699, 1983290011, 1987422362, 1991220282, 2000160071, 2001669449, 2001898809, @@ -622,15 +624,15 @@ static int32_t const ATTRIBUTE_HASHES_DATA[] = { 901775362, 1037879561, 1680159327, 1680165437, 1680165692, 1680198203, 1680231247, 1680315086, 1680345965, 1680413393, 1680452349, 1681879063, 1683805446, 1686731997, 1689048326, 1689839946, 1699185409, 1714763319, - 1721189160, 1723336432, 1733874289, 1736416327, 1739927860, 1740130375, - 1747299630, 1747792072, 1747939528, 1748552744, 1749027145, 1749856356, - 1752985897, 1754214628, 1754606246, 1754645079, 1754792749, 1754858317, - 1754907227, 1756190926, 1756471625, 1756804936, 1757053236, 1767875272, - 1776114564, 1782518297, 1785174319, 1786821704, 1788254870, 1791070327, - 1804036350, 1804235064, 1805715716, 1814656326, 1816144023, 1820928104, - 1823580230, 1824377064, 1853862084, 1854464212, 1854497003, 1865910347, - 1867620412, 1873590471, 1874698443, 1884142379, 1884343396, 1891186903, - 1898428101, 1903612236, 1905628916, 1906408542, 1906423097, 1908462185, + 1721189160, 1723336432, 1733874289, 1736416327, 1739927860, 1740119884, + 1747295467, 1747479606, 1747906667, 1748503880, 1748971848, 1749549708, + 1751755561, 1753550036, 1754579720, 1754644293, 1754698327, 1754835516, + 1754899031, 1756147974, 1756360955, 1756762256, 1756889417, 1767725700, + 1773606972, 1781007934, 1785053243, 1786775671, 1787365531, 1791068279, + 1803561214, 1804081401, 1805715690, 1814560070, 1816104145, 1820727381, + 1823574314, 1824159037, 1848600826, 1854366938, 1854497001, 1865910331, + 1867462756, 1872343590, 1874270021, 1884079398, 1884295780, 1890996553, + 1898415413, 1903612236, 1905628916, 1906408542, 1906423097, 1908462185, 1910441627, 1910503637, 1915025672, 1915757815, 1916286197, 1917857531, 1921977416, 1922413307, 1922607670, 1922677495, 1923088386, 1924517489, 1924629705, 1932959284, 1933369607, 1934970504, 1939976792, 1941435445, @@ -648,22 +650,22 @@ static int32_t const ATTRIBUTE_HASHES_DATA[] = { 1681969220, 1682587945, 1684319541, 1685902598, 1687164232, 1687751191, 1689130184, 1689788441, 1691145478, 1692933184, 1704262346, 1714745560, 1716303957, 1720503541, 1721305962, 1723309623, 1723336528, 1732771842, - 1733919469, 1734404167, 1739561208, 1739914974, 1740045858, 1740119884, - 1740222216, 1747295467, 1747309881, 1747479606, 1747800157, 1747906667, - 1748021284, 1748503880, 1748566068, 1748971848, 1749350104, 1749549708, - 1751507685, 1751755561, 1753049109, 1753550036, 1754434872, 1754579720, - 1754612424, 1754644293, 1754647074, 1754698327, 1754794646, 1754835516, - 1754860061, 1754899031, 1754927689, 1756147974, 1756219733, 1756360955, - 1756704824, 1756762256, 1756836998, 1756889417, 1757421892, 1767725700, - 1771569964, 1773606972, 1780879045, 1781007934, 1784574102, 1785053243, - 1786622296, 1786775671, 1786851500, 1787365531, 1788842244, 1791068279, - 1797886599, 1803561214, 1804054854, 1804081401, 1804405895, 1805715690, - 1814517574, 1814560070, 1814656840, 1816104145, 1816178925, 1820727381, - 1821958888, 1823574314, 1823829083, 1824159037, 1825437894, 1848600826, - 1854285018, 1854366938, 1854466380, 1854497001, 1854497008, 1865910331, - 1866496199, 1867462756, 1871251689, 1872343590, 1873656984, 1874270021, - 1874788501, 1884079398, 1884246821, 1884295780, 1889569526, 1890996553, - 1891937366, 1898415413, 1900544002, 1902640276, 1903659239, 1905541832, + 1733919469, 1734404167, 1739561208, 1739914974, 1740045858, 1740096054, + 1740130375, 1742183484, 1747299630, 1747446838, 1747792072, 1747839118, + 1747939528, 1748306996, 1748552744, 1748869205, 1749027145, 1749399124, + 1749856356, 1751679545, 1752985897, 1753297133, 1754214628, 1754546894, + 1754606246, 1754643237, 1754645079, 1754647353, 1754792749, 1754798923, + 1754858317, 1754872618, 1754907227, 1754958648, 1756190926, 1756302628, + 1756471625, 1756737685, 1756804936, 1756874572, 1757053236, 1765800271, + 1767875272, 1772032615, 1776114564, 1780975314, 1782518297, 1785051290, + 1785174319, 1786740932, 1786821704, 1787193500, 1788254870, 1790814502, + 1791070327, 1801312388, 1804036350, 1804069019, 1804235064, 1804978712, + 1805715716, 1814558026, 1814656326, 1814986837, 1816144023, 1820262641, + 1820928104, 1822002839, 1823580230, 1823841492, 1824377064, 1825677514, + 1853862084, 1854302364, 1854464212, 1854474395, 1854497003, 1864698185, + 1865910347, 1867448617, 1867620412, 1872034503, 1873590471, 1874261045, + 1874698443, 1881750231, 1884142379, 1884267068, 1884343396, 1889633006, + 1891186903, 1894552650, 1898428101, 1902640276, 1903659239, 1905541832, 1905672729, 1905902311, 1906408598, 1906421049, 1907660596, 1908316832, 1909438149, 1910328970, 1910441770, 1910487243, 1910507338, 1910572893, 1915295948, 1915394254, 1916210285, 1916278099, 1916337499, 1917327080, @@ -1027,6 +1029,10 @@ void nsHtml5AttributeName::initializeStatics() { ATTR_SHADOWROOTCLONABLE = new nsHtml5AttributeName( ALL_NO_NS, nsGkAtoms::shadowrootclonable, nsGkAtoms::shadowrootclonable, nsGkAtoms::shadowrootclonable, ALL_NO_PREFIX); + ATTR_SHADOWROOTSERIALIZABLE = new nsHtml5AttributeName( + ALL_NO_NS, nsGkAtoms::shadowrootserializable, + nsGkAtoms::shadowrootserializable, nsGkAtoms::shadowrootserializable, + ALL_NO_PREFIX); ATTR_SRCDOC = new nsHtml5AttributeName(ALL_NO_NS, nsGkAtoms::srcdoc, nsGkAtoms::srcdoc, nsGkAtoms::srcdoc, ALL_NO_PREFIX); @@ -2201,30 +2207,30 @@ void nsHtml5AttributeName::initializeStatics() { new nsHtml5AttributeName(ALL_NO_NS, nsGkAtoms::refy, nsGkAtoms::refy, nsGkAtoms::refY, ALL_NO_PREFIX); ATTRIBUTE_NAMES = new nsHtml5AttributeName*[505]; - ATTRIBUTE_NAMES[0] = ATTR_AMPLITUDE; - ATTRIBUTE_NAMES[1] = ATTR_CODE; + ATTRIBUTE_NAMES[0] = ATTR_MASKCONTENTUNITS; + ATTRIBUTE_NAMES[1] = ATTR_BASE; ATTRIBUTE_NAMES[2] = ATTR_WRAP; ATTRIBUTE_NAMES[3] = ATTR_CLEAR; - ATTRIBUTE_NAMES[4] = ATTR_ALIGNMENT_BASELINE; + ATTRIBUTE_NAMES[4] = ATTR_ALIGN; ATTRIBUTE_NAMES[5] = ATTR_AUTOFOCUS; ATTRIBUTE_NAMES[6] = ATTR_FONT_VARIANT; ATTRIBUTE_NAMES[7] = ATTR_ARIA_DISABLED; ATTRIBUTE_NAMES[8] = ATTR_OPACITY; - ATTRIBUTE_NAMES[9] = ATTR_ORIENTATION; - ATTRIBUTE_NAMES[10] = ATTR_ACTIONTYPE; - ATTRIBUTE_NAMES[11] = ATTR_EVENT; + ATTRIBUTE_NAMES[9] = ATTR_ORIENT; + ATTRIBUTE_NAMES[10] = ATTR_ALTIMG; + ATTRIBUTE_NAMES[11] = ATTR_IN; ATTRIBUTE_NAMES[12] = ATTR_STROKE_LINECAP; ATTRIBUTE_NAMES[13] = ATTR_CLOSE; ATTRIBUTE_NAMES[14] = ATTR_COLUMNWIDTH; ATTRIBUTE_NAMES[15] = ATTR_Y; ATTRIBUTE_NAMES[16] = ATTR_ARIA_MULTISELECTABLE; ATTRIBUTE_NAMES[17] = ATTR_ROTATE; - ATTRIBUTE_NAMES[18] = ATTR_SRCDOC; - ATTRIBUTE_NAMES[19] = ATTR_LINETHICKNESS; - ATTRIBUTE_NAMES[20] = ATTR_SIZES; - ATTRIBUTE_NAMES[21] = ATTR_TARGET; - ATTRIBUTE_NAMES[22] = ATTR_SCRIPTSIZEMULTIPLIER; - ATTRIBUTE_NAMES[23] = ATTR_AZIMUTH; + ATTRIBUTE_NAMES[18] = ATTR_SHADOWROOTSERIALIZABLE; + ATTRIBUTE_NAMES[19] = ATTR_LABEL; + ATTRIBUTE_NAMES[20] = ATTR_SELECTED; + ATTRIBUTE_NAMES[21] = ATTR_PING; + ATTRIBUTE_NAMES[22] = ATTR_SCRIPTLEVEL; + ATTRIBUTE_NAMES[23] = ATTR_TITLE; ATTRIBUTE_NAMES[24] = ATTR_STANDBY; ATTRIBUTE_NAMES[25] = ATTR_ONMOUSEWHEEL; ATTRIBUTE_NAMES[26] = ATTR_GLYPH_ORIENTATION_VERTICAL; @@ -2239,17 +2245,17 @@ void nsHtml5AttributeName::initializeStatics() { ATTRIBUTE_NAMES[35] = ATTR_LOCAL; ATTRIBUTE_NAMES[36] = ATTR_ONABORT; ATTRIBUTE_NAMES[37] = ATTR_HIDDEN; - ATTRIBUTE_NAMES[38] = ATTR_ACCENT; - ATTRIBUTE_NAMES[39] = ATTR_EDGE; - ATTRIBUTE_NAMES[40] = ATTR_ORDER; - ATTRIBUTE_NAMES[41] = ATTR_ONRESIZE; - ATTRIBUTE_NAMES[42] = ATTR_DIFFUSECONSTANT; - ATTRIBUTE_NAMES[43] = ATTR_LANG; - ATTRIBUTE_NAMES[44] = ATTR_MATHVARIANT; - ATTRIBUTE_NAMES[45] = ATTR_LIMITINGCONEANGLE; - ATTRIBUTE_NAMES[46] = ATTR_MARKERHEIGHT; - ATTRIBUTE_NAMES[47] = ATTR_ONCLICK; - ATTRIBUTE_NAMES[48] = ATTR_PRIMITIVEUNITS; + ATTRIBUTE_NAMES[38] = ATTR_ACCESSKEY; + ATTRIBUTE_NAMES[39] = ATTR_EDGEMODE; + ATTRIBUTE_NAMES[40] = ATTR_ONSELECT; + ATTRIBUTE_NAMES[41] = ATTR_ONKEYDOWN; + ATTRIBUTE_NAMES[42] = ATTR_TYPE; + ATTRIBUTE_NAMES[43] = ATTR_LANGUAGE; + ATTRIBUTE_NAMES[44] = ATTR_METHOD; + ATTRIBUTE_NAMES[45] = ATTR_DEFINITIONURL; + ATTRIBUTE_NAMES[46] = ATTR_MARKER_MID; + ATTRIBUTE_NAMES[47] = ATTR_MAXLENGTH; + ATTRIBUTE_NAMES[48] = ATTR_PROMPT; ATTRIBUTE_NAMES[49] = ATTR_ONEND; ATTRIBUTE_NAMES[50] = ATTR_XLINK_ARCROLE; ATTRIBUTE_NAMES[51] = ATTR_ENCODING; @@ -2278,28 +2284,28 @@ void nsHtml5AttributeName::initializeStatics() { ATTRIBUTE_NAMES[74] = ATTR_FETCHPRIORITY; ATTRIBUTE_NAMES[75] = ATTR_BORDER; ATTRIBUTE_NAMES[76] = ATTR_RENDERING_INTENT; - ATTRIBUTE_NAMES[77] = ATTR_WORD_SPACING; - ATTRIBUTE_NAMES[78] = ATTR_BASELINE_SHIFT; - ATTRIBUTE_NAMES[79] = ATTR_DEFER; - ATTRIBUTE_NAMES[80] = ATTR_INTERCEPT; - ATTRIBUTE_NAMES[81] = ATTR_ONBEFOREUNLOAD; - ATTRIBUTE_NAMES[82] = ATTR_ONMESSAGE; - ATTRIBUTE_NAMES[83] = ATTR_ONKEYPRESS; - ATTRIBUTE_NAMES[84] = ATTR_ROLE; - ATTRIBUTE_NAMES[85] = ATTR_SPREADMETHOD; - ATTRIBUTE_NAMES[86] = ATTR_PROFILE; - ATTRIBUTE_NAMES[87] = ATTR_IMAGESIZES; - ATTRIBUTE_NAMES[88] = ATTR_MARGINHEIGHT; - ATTRIBUTE_NAMES[89] = ATTR_HIGH; - ATTRIBUTE_NAMES[90] = ATTR_ONCHANGE; - ATTRIBUTE_NAMES[91] = ATTR_BEGIN; - ATTRIBUTE_NAMES[92] = ATTR_OPTIMUM; - ATTRIBUTE_NAMES[93] = ATTR_VISIBILITY; - ATTRIBUTE_NAMES[94] = ATTR_MARKERWIDTH; - ATTRIBUTE_NAMES[95] = ATTR_FILL_RULE; - ATTRIBUTE_NAMES[96] = ATTR_SCALE; - ATTRIBUTE_NAMES[97] = ATTR_FRAMESPACING; - ATTRIBUTE_NAMES[98] = ATTR_ZOOMANDPAN; + ATTRIBUTE_NAMES[77] = ATTR_SHADOWROOTDELEGATESFOCUS; + ATTRIBUTE_NAMES[78] = ATTR_BASEFREQUENCY; + ATTRIBUTE_NAMES[79] = ATTR_CITE; + ATTRIBUTE_NAMES[80] = ATTR_INDEX; + ATTRIBUTE_NAMES[81] = ATTR_NORESIZE; + ATTRIBUTE_NAMES[82] = ATTR_ONREADYSTATECHANGE; + ATTRIBUTE_NAMES[83] = ATTR_ONBEFOREPASTE; + ATTRIBUTE_NAMES[84] = ATTR_RULES; + ATTRIBUTE_NAMES[85] = ATTR_SCHEME; + ATTRIBUTE_NAMES[86] = ATTR_ONAFTERPRINT; + ATTRIBUTE_NAMES[87] = ATTR_HEIGHT; + ATTRIBUTE_NAMES[88] = ATTR_LENGTHADJUST; + ATTRIBUTE_NAMES[89] = ATTR_ARCHIVE; + ATTRIBUTE_NAMES[90] = ATTR_NOSHADE; + ATTRIBUTE_NAMES[91] = ATTR_ADDITIVE; + ATTRIBUTE_NAMES[92] = ATTR_ONFINISH; + ATTRIBUTE_NAMES[93] = ATTR_VALIGN; + ATTRIBUTE_NAMES[94] = ATTR_MARKER_START; + ATTRIBUTE_NAMES[95] = ATTR_DECLARE; + ATTRIBUTE_NAMES[96] = ATTR_ROWLINES; + ATTRIBUTE_NAMES[97] = ATTR_FRAME; + ATTRIBUTE_NAMES[98] = ATTR_USEMAP; ATTRIBUTE_NAMES[99] = ATTR_KERNELUNITLENGTH; ATTRIBUTE_NAMES[100] = ATTR_POINTSATX; ATTRIBUTE_NAMES[101] = ATTR_WHEN; @@ -2356,50 +2362,50 @@ void nsHtml5AttributeName::initializeStatics() { ATTRIBUTE_NAMES[152] = ATTR_GRADIENTTRANSFORM; ATTRIBUTE_NAMES[153] = ATTR_LOADING; ATTRIBUTE_NAMES[154] = ATTR_SEED; - ATTRIBUTE_NAMES[155] = ATTR_SANDBOX; - ATTRIBUTE_NAMES[156] = ATTR_ACCEPT_CHARSET; - ATTRIBUTE_NAMES[157] = ATTR_BEVELLED; - ATTRIBUTE_NAMES[158] = ATTR_BASELINE; - ATTRIBUTE_NAMES[159] = ATTR_CODEBASE; - ATTRIBUTE_NAMES[160] = ATTR_DIRECTION; - ATTRIBUTE_NAMES[161] = ATTR_FACE; - ATTRIBUTE_NAMES[162] = ATTR_LINEBREAK; - ATTRIBUTE_NAMES[163] = ATTR_NAME; - ATTRIBUTE_NAMES[164] = ATTR_OBJECT; - ATTRIBUTE_NAMES[165] = ATTR_ONRESET; - ATTRIBUTE_NAMES[166] = ATTR_ONBEFOREPRINT; - ATTRIBUTE_NAMES[167] = ATTR_ONSELECTSTART; - ATTRIBUTE_NAMES[168] = ATTR_ONBEFORECUT; - ATTRIBUTE_NAMES[169] = ATTR_REFERRERPOLICY; - ATTRIBUTE_NAMES[170] = ATTR_REPEATDUR; - ATTRIBUTE_NAMES[171] = ATTR_STRETCHY; - ATTRIBUTE_NAMES[172] = ATTR_SIZE; - ATTRIBUTE_NAMES[173] = ATTR_HREFLANG; - ATTRIBUTE_NAMES[174] = ATTR_XREF; - ATTRIBUTE_NAMES[175] = ATTR_DRAGGABLE; - ATTRIBUTE_NAMES[176] = ATTR_IMAGE_RENDERING; - ATTRIBUTE_NAMES[177] = ATTR_LONGDESC; - ATTRIBUTE_NAMES[178] = ATTR_ORIGIN; - ATTRIBUTE_NAMES[179] = ATTR_TARGETY; - ATTRIBUTE_NAMES[180] = ATTR_MATHBACKGROUND; - ATTRIBUTE_NAMES[181] = ATTR_MATHSIZE; - ATTRIBUTE_NAMES[182] = ATTR_PATH; - ATTRIBUTE_NAMES[183] = ATTR_ACTIVE; - ATTRIBUTE_NAMES[184] = ATTR_DIVISOR; - ATTRIBUTE_NAMES[185] = ATTR_MANIFEST; - ATTRIBUTE_NAMES[186] = ATTR_RADIUS; - ATTRIBUTE_NAMES[187] = ATTR_TABINDEX; - ATTRIBUTE_NAMES[188] = ATTR_LINK; - ATTRIBUTE_NAMES[189] = ATTR_MASK; - ATTRIBUTE_NAMES[190] = ATTR_MARKERUNITS; - ATTRIBUTE_NAMES[191] = ATTR_CELLPADDING; - ATTRIBUTE_NAMES[192] = ATTR_FILL_OPACITY; - ATTRIBUTE_NAMES[193] = ATTR_REPLACE; - ATTRIBUTE_NAMES[194] = ATTR_TABLEVALUES; - ATTRIBUTE_NAMES[195] = ATTR_FRAMEBORDER; - ATTRIBUTE_NAMES[196] = ATTR_FORM; - ATTRIBUTE_NAMES[197] = ATTR_SUMMARY; - ATTRIBUTE_NAMES[198] = ATTR_ALINK; + ATTRIBUTE_NAMES[155] = ATTR_STDDEVIATION; + ATTRIBUTE_NAMES[156] = ATTR_ACCENTUNDER; + ATTRIBUTE_NAMES[157] = ATTR_ACCEPT; + ATTRIBUTE_NAMES[158] = ATTR_BASEPROFILE; + ATTRIBUTE_NAMES[159] = ATTR_CODETYPE; + ATTRIBUTE_NAMES[160] = ATTR_DATETIME; + ATTRIBUTE_NAMES[161] = ATTR_ENTERKEYHINT; + ATTRIBUTE_NAMES[162] = ATTR_INTEGRITY; + ATTRIBUTE_NAMES[163] = ATTR_MODE; + ATTRIBUTE_NAMES[164] = ATTR_ONREPEAT; + ATTRIBUTE_NAMES[165] = ATTR_OTHER; + ATTRIBUTE_NAMES[166] = ATTR_ONBEGIN; + ATTRIBUTE_NAMES[167] = ATTR_ONBEFORECOPY; + ATTRIBUTE_NAMES[168] = ATTR_ONKEYUP; + ATTRIBUTE_NAMES[169] = ATTR_REPEAT; + ATTRIBUTE_NAMES[170] = ATTR_REPEATCOUNT; + ATTRIBUTE_NAMES[171] = ATTR_SUPERSCRIPTSHIFT; + ATTRIBUTE_NAMES[172] = ATTR_SELECTION; + ATTRIBUTE_NAMES[173] = ATTR_HREF; + ATTRIBUTE_NAMES[174] = ATTR_SURFACESCALE; + ATTRIBUTE_NAMES[175] = ATTR_ALIGNMENTSCOPE; + ATTRIBUTE_NAMES[176] = ATTR_IMAGESRCSET; + ATTRIBUTE_NAMES[177] = ATTR_LARGEOP; + ATTRIBUTE_NAMES[178] = ATTR_MARGINWIDTH; + ATTRIBUTE_NAMES[179] = ATTR_TARGETX; + ATTRIBUTE_NAMES[180] = ATTR_LIGHTING_COLOR; + ATTRIBUTE_NAMES[181] = ATTR_MATHCOLOR; + ATTRIBUTE_NAMES[182] = ATTR_PATHLENGTH; + ATTRIBUTE_NAMES[183] = ATTR_ACTION; + ATTRIBUTE_NAMES[184] = ATTR_DOMINANT_BASELINE; + ATTRIBUTE_NAMES[185] = ATTR_MEDIA; + ATTRIBUTE_NAMES[186] = ATTR_RADIOGROUP; + ATTRIBUTE_NAMES[187] = ATTR_SCRIPTMINSIZE; + ATTRIBUTE_NAMES[188] = ATTR_BACKGROUND; + ATTRIBUTE_NAMES[189] = ATTR_MARKER_END; + ATTRIBUTE_NAMES[190] = ATTR_MASKUNITS; + ATTRIBUTE_NAMES[191] = ATTR_CELLSPACING; + ATTRIBUTE_NAMES[192] = ATTR_FILL; + ATTRIBUTE_NAMES[193] = ATTR_ONBLUR; + ATTRIBUTE_NAMES[194] = ATTR_STYLE; + ATTRIBUTE_NAMES[195] = ATTR_FORMAT; + ATTRIBUTE_NAMES[196] = ATTR_FROM; + ATTRIBUTE_NAMES[197] = ATTR_SYMMETRIC; + ATTRIBUTE_NAMES[198] = ATTR_ASYNC; ATTRIBUTE_NAMES[199] = ATTR_KERNELMATRIX; ATTRIBUTE_NAMES[200] = ATTR_OPEN; ATTRIBUTE_NAMES[201] = ATTR_POINTER_EVENTS; @@ -2512,94 +2518,94 @@ void nsHtml5AttributeName::initializeStatics() { ATTRIBUTE_NAMES[308] = ATTR_READONLY; ATTRIBUTE_NAMES[309] = ATTR_SHADOWROOTMODE; ATTRIBUTE_NAMES[310] = ATTR_SHADOWROOTCLONABLE; - ATTRIBUTE_NAMES[311] = ATTR_STDDEVIATION; - ATTRIBUTE_NAMES[312] = ATTR_SHADOWROOTDELEGATESFOCUS; - ATTRIBUTE_NAMES[313] = ATTR_ACCENTUNDER; - ATTRIBUTE_NAMES[314] = ATTR_ACCESSKEY; - ATTRIBUTE_NAMES[315] = ATTR_ACCEPT; - ATTRIBUTE_NAMES[316] = ATTR_BASEFREQUENCY; - ATTRIBUTE_NAMES[317] = ATTR_BASEPROFILE; - ATTRIBUTE_NAMES[318] = ATTR_BASE; - ATTRIBUTE_NAMES[319] = ATTR_CODETYPE; - ATTRIBUTE_NAMES[320] = ATTR_CITE; - ATTRIBUTE_NAMES[321] = ATTR_DATETIME; - ATTRIBUTE_NAMES[322] = ATTR_EDGEMODE; - ATTRIBUTE_NAMES[323] = ATTR_ENTERKEYHINT; - ATTRIBUTE_NAMES[324] = ATTR_INDEX; - ATTRIBUTE_NAMES[325] = ATTR_INTEGRITY; - ATTRIBUTE_NAMES[326] = ATTR_LABEL; - ATTRIBUTE_NAMES[327] = ATTR_MODE; - ATTRIBUTE_NAMES[328] = ATTR_NORESIZE; - ATTRIBUTE_NAMES[329] = ATTR_ONREPEAT; - ATTRIBUTE_NAMES[330] = ATTR_ONSELECT; - ATTRIBUTE_NAMES[331] = ATTR_OTHER; - ATTRIBUTE_NAMES[332] = ATTR_ONREADYSTATECHANGE; - ATTRIBUTE_NAMES[333] = ATTR_ONBEGIN; - ATTRIBUTE_NAMES[334] = ATTR_ORIENT; - ATTRIBUTE_NAMES[335] = ATTR_ONBEFORECOPY; - ATTRIBUTE_NAMES[336] = ATTR_ONBEFOREPASTE; - ATTRIBUTE_NAMES[337] = ATTR_ONKEYUP; - ATTRIBUTE_NAMES[338] = ATTR_ONKEYDOWN; - ATTRIBUTE_NAMES[339] = ATTR_REPEAT; - ATTRIBUTE_NAMES[340] = ATTR_RULES; - ATTRIBUTE_NAMES[341] = ATTR_REPEATCOUNT; - ATTRIBUTE_NAMES[342] = ATTR_SELECTED; - ATTRIBUTE_NAMES[343] = ATTR_SUPERSCRIPTSHIFT; - ATTRIBUTE_NAMES[344] = ATTR_SCHEME; - ATTRIBUTE_NAMES[345] = ATTR_SELECTION; - ATTRIBUTE_NAMES[346] = ATTR_TYPE; - ATTRIBUTE_NAMES[347] = ATTR_HREF; - ATTRIBUTE_NAMES[348] = ATTR_ONAFTERPRINT; - ATTRIBUTE_NAMES[349] = ATTR_SURFACESCALE; - ATTRIBUTE_NAMES[350] = ATTR_ALIGN; - ATTRIBUTE_NAMES[351] = ATTR_ALIGNMENTSCOPE; - ATTRIBUTE_NAMES[352] = ATTR_HEIGHT; - ATTRIBUTE_NAMES[353] = ATTR_IMAGESRCSET; - ATTRIBUTE_NAMES[354] = ATTR_LANGUAGE; - ATTRIBUTE_NAMES[355] = ATTR_LARGEOP; - ATTRIBUTE_NAMES[356] = ATTR_LENGTHADJUST; - ATTRIBUTE_NAMES[357] = ATTR_MARGINWIDTH; - ATTRIBUTE_NAMES[358] = ATTR_PING; - ATTRIBUTE_NAMES[359] = ATTR_TARGETX; - ATTRIBUTE_NAMES[360] = ATTR_ARCHIVE; - ATTRIBUTE_NAMES[361] = ATTR_LIGHTING_COLOR; - ATTRIBUTE_NAMES[362] = ATTR_METHOD; - ATTRIBUTE_NAMES[363] = ATTR_MATHCOLOR; - ATTRIBUTE_NAMES[364] = ATTR_NOSHADE; - ATTRIBUTE_NAMES[365] = ATTR_PATHLENGTH; - ATTRIBUTE_NAMES[366] = ATTR_ALTIMG; - ATTRIBUTE_NAMES[367] = ATTR_ACTION; - ATTRIBUTE_NAMES[368] = ATTR_ADDITIVE; - ATTRIBUTE_NAMES[369] = ATTR_DOMINANT_BASELINE; - ATTRIBUTE_NAMES[370] = ATTR_DEFINITIONURL; - ATTRIBUTE_NAMES[371] = ATTR_MEDIA; - ATTRIBUTE_NAMES[372] = ATTR_ONFINISH; - ATTRIBUTE_NAMES[373] = ATTR_RADIOGROUP; - ATTRIBUTE_NAMES[374] = ATTR_SCRIPTLEVEL; - ATTRIBUTE_NAMES[375] = ATTR_SCRIPTMINSIZE; - ATTRIBUTE_NAMES[376] = ATTR_VALIGN; - ATTRIBUTE_NAMES[377] = ATTR_BACKGROUND; - ATTRIBUTE_NAMES[378] = ATTR_MARKER_MID; - ATTRIBUTE_NAMES[379] = ATTR_MARKER_END; - ATTRIBUTE_NAMES[380] = ATTR_MARKER_START; - ATTRIBUTE_NAMES[381] = ATTR_MASKUNITS; - ATTRIBUTE_NAMES[382] = ATTR_MASKCONTENTUNITS; - ATTRIBUTE_NAMES[383] = ATTR_CELLSPACING; - ATTRIBUTE_NAMES[384] = ATTR_DECLARE; - ATTRIBUTE_NAMES[385] = ATTR_FILL; - ATTRIBUTE_NAMES[386] = ATTR_MAXLENGTH; - ATTRIBUTE_NAMES[387] = ATTR_ONBLUR; - ATTRIBUTE_NAMES[388] = ATTR_ROWLINES; - ATTRIBUTE_NAMES[389] = ATTR_STYLE; - ATTRIBUTE_NAMES[390] = ATTR_TITLE; - ATTRIBUTE_NAMES[391] = ATTR_FORMAT; - ATTRIBUTE_NAMES[392] = ATTR_FRAME; - ATTRIBUTE_NAMES[393] = ATTR_FROM; - ATTRIBUTE_NAMES[394] = ATTR_PROMPT; - ATTRIBUTE_NAMES[395] = ATTR_SYMMETRIC; - ATTRIBUTE_NAMES[396] = ATTR_USEMAP; - ATTRIBUTE_NAMES[397] = ATTR_ASYNC; - ATTRIBUTE_NAMES[398] = ATTR_IN; + ATTRIBUTE_NAMES[311] = ATTR_SRCDOC; + ATTRIBUTE_NAMES[312] = ATTR_SANDBOX; + ATTRIBUTE_NAMES[313] = ATTR_WORD_SPACING; + ATTRIBUTE_NAMES[314] = ATTR_ACCEPT_CHARSET; + ATTRIBUTE_NAMES[315] = ATTR_ACCENT; + ATTRIBUTE_NAMES[316] = ATTR_BEVELLED; + ATTRIBUTE_NAMES[317] = ATTR_BASELINE_SHIFT; + ATTRIBUTE_NAMES[318] = ATTR_BASELINE; + ATTRIBUTE_NAMES[319] = ATTR_CODE; + ATTRIBUTE_NAMES[320] = ATTR_CODEBASE; + ATTRIBUTE_NAMES[321] = ATTR_DEFER; + ATTRIBUTE_NAMES[322] = ATTR_DIRECTION; + ATTRIBUTE_NAMES[323] = ATTR_EDGE; + ATTRIBUTE_NAMES[324] = ATTR_FACE; + ATTRIBUTE_NAMES[325] = ATTR_INTERCEPT; + ATTRIBUTE_NAMES[326] = ATTR_LINEBREAK; + ATTRIBUTE_NAMES[327] = ATTR_LINETHICKNESS; + ATTRIBUTE_NAMES[328] = ATTR_NAME; + ATTRIBUTE_NAMES[329] = ATTR_ONBEFOREUNLOAD; + ATTRIBUTE_NAMES[330] = ATTR_OBJECT; + ATTRIBUTE_NAMES[331] = ATTR_ORDER; + ATTRIBUTE_NAMES[332] = ATTR_ONRESET; + ATTRIBUTE_NAMES[333] = ATTR_ONMESSAGE; + ATTRIBUTE_NAMES[334] = ATTR_ONBEFOREPRINT; + ATTRIBUTE_NAMES[335] = ATTR_ORIENTATION; + ATTRIBUTE_NAMES[336] = ATTR_ONSELECTSTART; + ATTRIBUTE_NAMES[337] = ATTR_ONKEYPRESS; + ATTRIBUTE_NAMES[338] = ATTR_ONBEFORECUT; + ATTRIBUTE_NAMES[339] = ATTR_ONRESIZE; + ATTRIBUTE_NAMES[340] = ATTR_REFERRERPOLICY; + ATTRIBUTE_NAMES[341] = ATTR_ROLE; + ATTRIBUTE_NAMES[342] = ATTR_REPEATDUR; + ATTRIBUTE_NAMES[343] = ATTR_SIZES; + ATTRIBUTE_NAMES[344] = ATTR_STRETCHY; + ATTRIBUTE_NAMES[345] = ATTR_SPREADMETHOD; + ATTRIBUTE_NAMES[346] = ATTR_SIZE; + ATTRIBUTE_NAMES[347] = ATTR_DIFFUSECONSTANT; + ATTRIBUTE_NAMES[348] = ATTR_HREFLANG; + ATTRIBUTE_NAMES[349] = ATTR_PROFILE; + ATTRIBUTE_NAMES[350] = ATTR_XREF; + ATTRIBUTE_NAMES[351] = ATTR_ALIGNMENT_BASELINE; + ATTRIBUTE_NAMES[352] = ATTR_DRAGGABLE; + ATTRIBUTE_NAMES[353] = ATTR_IMAGESIZES; + ATTRIBUTE_NAMES[354] = ATTR_IMAGE_RENDERING; + ATTRIBUTE_NAMES[355] = ATTR_LANG; + ATTRIBUTE_NAMES[356] = ATTR_LONGDESC; + ATTRIBUTE_NAMES[357] = ATTR_MARGINHEIGHT; + ATTRIBUTE_NAMES[358] = ATTR_ORIGIN; + ATTRIBUTE_NAMES[359] = ATTR_TARGET; + ATTRIBUTE_NAMES[360] = ATTR_TARGETY; + ATTRIBUTE_NAMES[361] = ATTR_HIGH; + ATTRIBUTE_NAMES[362] = ATTR_MATHBACKGROUND; + ATTRIBUTE_NAMES[363] = ATTR_MATHVARIANT; + ATTRIBUTE_NAMES[364] = ATTR_MATHSIZE; + ATTRIBUTE_NAMES[365] = ATTR_ONCHANGE; + ATTRIBUTE_NAMES[366] = ATTR_PATH; + ATTRIBUTE_NAMES[367] = ATTR_ACTIONTYPE; + ATTRIBUTE_NAMES[368] = ATTR_ACTIVE; + ATTRIBUTE_NAMES[369] = ATTR_BEGIN; + ATTRIBUTE_NAMES[370] = ATTR_DIVISOR; + ATTRIBUTE_NAMES[371] = ATTR_LIMITINGCONEANGLE; + ATTRIBUTE_NAMES[372] = ATTR_MANIFEST; + ATTRIBUTE_NAMES[373] = ATTR_OPTIMUM; + ATTRIBUTE_NAMES[374] = ATTR_RADIUS; + ATTRIBUTE_NAMES[375] = ATTR_SCRIPTSIZEMULTIPLIER; + ATTRIBUTE_NAMES[376] = ATTR_TABINDEX; + ATTRIBUTE_NAMES[377] = ATTR_VISIBILITY; + ATTRIBUTE_NAMES[378] = ATTR_LINK; + ATTRIBUTE_NAMES[379] = ATTR_MARKERHEIGHT; + ATTRIBUTE_NAMES[380] = ATTR_MASK; + ATTRIBUTE_NAMES[381] = ATTR_MARKERWIDTH; + ATTRIBUTE_NAMES[382] = ATTR_MARKERUNITS; + ATTRIBUTE_NAMES[383] = ATTR_AMPLITUDE; + ATTRIBUTE_NAMES[384] = ATTR_CELLPADDING; + ATTRIBUTE_NAMES[385] = ATTR_FILL_RULE; + ATTRIBUTE_NAMES[386] = ATTR_FILL_OPACITY; + ATTRIBUTE_NAMES[387] = ATTR_ONCLICK; + ATTRIBUTE_NAMES[388] = ATTR_REPLACE; + ATTRIBUTE_NAMES[389] = ATTR_SCALE; + ATTRIBUTE_NAMES[390] = ATTR_TABLEVALUES; + ATTRIBUTE_NAMES[391] = ATTR_AZIMUTH; + ATTRIBUTE_NAMES[392] = ATTR_FRAMEBORDER; + ATTRIBUTE_NAMES[393] = ATTR_FRAMESPACING; + ATTRIBUTE_NAMES[394] = ATTR_FORM; + ATTRIBUTE_NAMES[395] = ATTR_PRIMITIVEUNITS; + ATTRIBUTE_NAMES[396] = ATTR_SUMMARY; + ATTRIBUTE_NAMES[397] = ATTR_ZOOMANDPAN; + ATTRIBUTE_NAMES[398] = ATTR_ALINK; ATTRIBUTE_NAMES[399] = ATTR_ICON; ATTRIBUTE_NAMES[400] = ATTR_KERNING; ATTRIBUTE_NAMES[401] = ATTR_ONUNLOAD; @@ -2828,6 +2834,7 @@ void nsHtml5AttributeName::releaseStatics() { delete ATTR_SHADOWROOTMODE; delete ATTR_SEED; delete ATTR_SHADOWROOTCLONABLE; + delete ATTR_SHADOWROOTSERIALIZABLE; delete ATTR_SRCDOC; delete ATTR_STDDEVIATION; delete ATTR_SANDBOX; diff --git a/parser/html/nsHtml5AttributeName.h b/parser/html/nsHtml5AttributeName.h index 057c53dbcc82..4e1f6ccd4783 100644 --- a/parser/html/nsHtml5AttributeName.h +++ b/parser/html/nsHtml5AttributeName.h @@ -284,6 +284,7 @@ class nsHtml5AttributeName { static nsHtml5AttributeName* ATTR_SHADOWROOTMODE; static nsHtml5AttributeName* ATTR_SEED; static nsHtml5AttributeName* ATTR_SHADOWROOTCLONABLE; + static nsHtml5AttributeName* ATTR_SHADOWROOTSERIALIZABLE; static nsHtml5AttributeName* ATTR_SRCDOC; static nsHtml5AttributeName* ATTR_STDDEVIATION; static nsHtml5AttributeName* ATTR_SANDBOX; diff --git a/parser/html/nsHtml5TreeBuilder.cpp b/parser/html/nsHtml5TreeBuilder.cpp index 9ef9a519f7cc..ef4de158fec5 100644 --- a/parser/html/nsHtml5TreeBuilder.cpp +++ b/parser/html/nsHtml5TreeBuilder.cpp @@ -2122,10 +2122,13 @@ nsIContentHandle* nsHtml5TreeBuilder::getDeclarativeShadowRoot( } bool shadowRootIsClonable = attributes->contains(nsHtml5AttributeName::ATTR_SHADOWROOTCLONABLE); + bool shadowRootIsSerializable = + attributes->contains(nsHtml5AttributeName::ATTR_SHADOWROOTSERIALIZABLE); bool shadowRootDelegatesFocus = attributes->contains(nsHtml5AttributeName::ATTR_SHADOWROOTDELEGATESFOCUS); return getShadowRootFromHost(currentNode, templateNode, shadowRootMode, - shadowRootIsClonable, shadowRootDelegatesFocus); + shadowRootIsClonable, shadowRootIsSerializable, + shadowRootDelegatesFocus); } nsHtml5String nsHtml5TreeBuilder::extractCharsetFromContent( diff --git a/parser/html/nsHtml5TreeBuilderCppSupplement.h b/parser/html/nsHtml5TreeBuilderCppSupplement.h index 23a0b587d97d..f691e98be800 100644 --- a/parser/html/nsHtml5TreeBuilderCppSupplement.h +++ b/parser/html/nsHtml5TreeBuilderCppSupplement.h @@ -1709,7 +1709,7 @@ void nsHtml5TreeBuilder::setDocumentFragmentForTemplate( nsIContentHandle* nsHtml5TreeBuilder::getShadowRootFromHost( nsIContentHandle* aHost, nsIContentHandle* aTemplateNode, nsHtml5String aShadowRootMode, bool aShadowRootIsClonable, - bool aShadowRootDelegatesFocus) { + bool aShadowRootIsSerializable, bool aShadowRootDelegatesFocus) { mozilla::dom::ShadowRootMode mode; if (aShadowRootMode.LowerCaseEqualsASCII("open")) { mode = mozilla::dom::ShadowRootMode::Open; diff --git a/parser/html/nsHtml5TreeBuilderHSupplement.h b/parser/html/nsHtml5TreeBuilderHSupplement.h index cb0bd5af50fa..00755c5d570e 100644 --- a/parser/html/nsHtml5TreeBuilderHSupplement.h +++ b/parser/html/nsHtml5TreeBuilderHSupplement.h @@ -65,6 +65,7 @@ nsIContentHandle* getShadowRootFromHost(nsIContentHandle* aHost, nsIContentHandle* aTemplateNode, nsHtml5String aShadowRootMode, bool aShadowRootIsClonable, + bool aShadowRootIsSerializable, bool aShadowRootDelegatesFocus); nsIContentHandle* getFormPointerForContext(nsIContentHandle* aContext); diff --git a/testing/web-platform/meta/html/dom/idlharness.https.html.ini b/testing/web-platform/meta/html/dom/idlharness.https.html.ini index 8acbca146215..8f9c43a7feaa 100644 --- a/testing/web-platform/meta/html/dom/idlharness.https.html.ini +++ b/testing/web-platform/meta/html/dom/idlharness.https.html.ini @@ -912,9 +912,3 @@ prefs: [dom.security.featurePolicy.experimental.enabled:true, dom.security.featu [HTMLFrameSetElement interface: document.createElement("frameset") must inherit property "onpageswap" with the proper type] expected: FAIL - - [HTMLTemplateElement interface: attribute shadowRootSerializable] - expected: FAIL - - [HTMLTemplateElement interface: document.createElement("template") must inherit property "shadowRootSerializable" with the proper type] - expected: FAIL diff --git a/xpcom/ds/HTMLAtoms.py b/xpcom/ds/HTMLAtoms.py index 927be525e3a1..8575992a1661 100644 --- a/xpcom/ds/HTMLAtoms.py +++ b/xpcom/ds/HTMLAtoms.py @@ -43,6 +43,8 @@ HTML_PARSER_ATOMS = [ # ATOM GENERATED BY HTML PARSER TRANSLATOR (WILL BE AUTOMATICALLY OVERWRITTEN): Atom("shadowrootclonable", "shadowrootclonable"), # ATOM GENERATED BY HTML PARSER TRANSLATOR (WILL BE AUTOMATICALLY OVERWRITTEN): + Atom("shadowrootserializable", "shadowrootserializable"), + # ATOM GENERATED BY HTML PARSER TRANSLATOR (WILL BE AUTOMATICALLY OVERWRITTEN): Atom("stddeviation", "stddeviation"), # ATOM GENERATED BY HTML PARSER TRANSLATOR (WILL BE AUTOMATICALLY OVERWRITTEN): Atom("shadowrootdelegatesfocus", "shadowrootdelegatesfocus"),