From fed7e0ca3e762e207d534ff8706ffbbd90afa73e Mon Sep 17 00:00:00 2001 From: Jan-Niklas Jaeschke Date: Mon, 9 Nov 2026 10:25:06 +0000 Subject: [PATCH] Mozilla bug 2090862 - Mark custom element names with a null creator instead of NS_NewCustomElement. Differential Revision: https://phabricator.services.mozilla.com/D340870 --- src/nu/validator/htmlparser/impl/ElementName.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/nu/validator/htmlparser/impl/ElementName.java b/src/nu/validator/htmlparser/impl/ElementName.java index 89b48b90..60f6164d 100644 --- a/src/nu/validator/htmlparser/impl/ElementName.java +++ b/src/nu/validator/htmlparser/impl/ElementName.java @@ -297,7 +297,7 @@ public void destructor() { this.name = name; this.camelCaseName = name; // CPPONLY: if (custom) { - // CPPONLY: this.htmlCreator = NS_NewCustomElement; + // CPPONLY: this.htmlCreator = null; // CPPONLY: } else { // CPPONLY: this.htmlCreator = NS_NewHTMLUnknownElement; // CPPONLY: } @@ -308,7 +308,7 @@ public void destructor() { } // CPPONLY: @Inline public boolean isCustom() { - // CPPONLY: return this.htmlCreator == NS_NewCustomElement; + // CPPONLY: return this.htmlCreator == null; // CPPONLY: } public static final ElementName ANNOTATION_XML = new ElementName(