Skip to content

Commit fd43a8c

Browse files
committed
Implement shadowrootcustomelementregistry
1 parent b5b1812 commit fd43a8c

File tree

2 files changed

+5
-2
lines changed

2 files changed

+5
-2
lines changed

src/nu/validator/htmlparser/impl/AttributeName.java

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -806,6 +806,7 @@ boolean equalsAnother(AttributeName another) {
806806
public static final AttributeName SRCDOC = new AttributeName(ALL_NO_NS, "srcdoc", "srcdoc", "srcdoc", "srcdoc", ALL_NO_PREFIX, NCNAME_HTML | NCNAME_FOREIGN | NCNAME_LANG);
807807
public static final AttributeName STDDEVIATION = new AttributeName(ALL_NO_NS, "stddeviation", "stddeviation", "stdDeviation", "stddeviation", ALL_NO_PREFIX, NCNAME_HTML | NCNAME_FOREIGN | NCNAME_LANG);
808808
public static final AttributeName SANDBOX = new AttributeName(ALL_NO_NS, "sandbox", "sandbox", "sandbox", "sandbox", ALL_NO_PREFIX, NCNAME_HTML | NCNAME_FOREIGN | NCNAME_LANG);
809+
public static final AttributeName SHADOWROOTCUSTOMELEMENTREGISTRY = new AttributeName(ALL_NO_NS, "shadowrootcustomelementregistry", "shadowrootcustomelementregistry", "shadowrootcustomelementregistry", "shadowrootcustomelementregistry", ALL_NO_PREFIX, NCNAME_HTML | NCNAME_FOREIGN | NCNAME_LANG);
809810
public static final AttributeName SHADOWROOTDELEGATESFOCUS = new AttributeName(ALL_NO_NS, "shadowrootdelegatesfocus", "shadowrootdelegatesfocus", "shadowrootdelegatesfocus", "shadowrootdelegatesfocus", ALL_NO_PREFIX, NCNAME_HTML | NCNAME_FOREIGN | NCNAME_LANG);
810811
public static final AttributeName WORD_SPACING = new AttributeName(ALL_NO_NS, "word-spacing", "word-spacing", "word-spacing", "word-spacing", ALL_NO_PREFIX, NCNAME_HTML | NCNAME_FOREIGN | NCNAME_LANG);
811812
public static final AttributeName ACCENTUNDER = new AttributeName(ALL_NO_NS, "accentunder", "accentunder", "accentunder", "accentunder", ALL_NO_PREFIX, NCNAME_HTML | NCNAME_FOREIGN | NCNAME_LANG);
@@ -1512,6 +1513,7 @@ boolean equalsAnother(AttributeName another) {
15121513
SHADOWROOTREFERENCETARGET,
15131514
SHADOWROOTSERIALIZABLE,
15141515
STDDEVIATION,
1516+
SHADOWROOTCUSTOMELEMENTREGISTRY,
15151517
SHADOWROOTDELEGATESFOCUS,
15161518
ACCENTUNDER,
15171519
ACCESSKEY,

src/nu/validator/htmlparser/impl/TreeBuilder.java

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2996,9 +2996,10 @@ private T getDeclarativeShadowRoot(T currentNode, T templateNode, HtmlAttributes
29962996
boolean shadowRootIsClonable = attributes.contains(AttributeName.SHADOWROOTCLONABLE);
29972997
boolean shadowRootIsSerializable = attributes.contains(AttributeName.SHADOWROOTSERIALIZABLE);
29982998
boolean shadowRootDelegatesFocus = attributes.contains(AttributeName.SHADOWROOTDELEGATESFOCUS);
2999+
boolean shadowRootCustomElementRegistry = attributes.contains(AttributeName.SHADOWROOTCUSTOMELEMENTREGISTRY);
29993000
String shadowRootReferenceTarget = attributes.getValue(AttributeName.SHADOWROOTREFERENCETARGET);
30003001

3001-
return getShadowRootFromHost(currentNode, templateNode, shadowRootMode, shadowRootIsClonable, shadowRootIsSerializable, shadowRootDelegatesFocus, shadowRootReferenceTarget);
3002+
return getShadowRootFromHost(currentNode, templateNode, shadowRootMode, shadowRootIsClonable, shadowRootIsSerializable, shadowRootDelegatesFocus, shadowRootCustomElementRegistry, shadowRootReferenceTarget);
30023003
}
30033004

30043005
/**
@@ -5379,7 +5380,7 @@ void setDocumentFragmentForTemplate(T template, T fragment) {
53795380

53805381
T getShadowRootFromHost(T host, T template, String shadowRootMode,
53815382
boolean shadowRootIsClonable, boolean shadowRootIsSerializable, boolean shadowRootDelegatesFocus,
5382-
String shadowRootReferenceTarget) {
5383+
boolean shadowRootCustomElementRegistry, String shadowRootReferenceTarget) {
53835384
return null;
53845385
}
53855386

0 commit comments

Comments
 (0)