@@ -620,21 +620,6 @@ const ARIA_PROPERTIES = [
620
620
621
621
const ARIA_PROPERTIES_SET = new Set ( ARIA_PROPERTIES ) ;
622
622
623
- // Map all dom property names and its lowercase name variant to original name, to avoid looping in getStandardName
624
- function buildDOMpropertyMap ( ) {
625
- const propertyMap = { } ;
626
-
627
- for ( let i = 0 ; i < DOM_PROPERTY_NAMES . length ; i ++ ) {
628
- const propName = DOM_PROPERTY_NAMES [ i ] ;
629
-
630
- propertyMap [ propName . toLowerCase ( ) ] = propName ;
631
- }
632
-
633
- return propertyMap ;
634
- }
635
-
636
- const LOWER_CASED_DOM_PROPERTY_NAMES_MAP = buildDOMpropertyMap ( ) ;
637
-
638
623
// ------------------------------------------------------------------------------
639
624
// Helpers
640
625
// ------------------------------------------------------------------------------
@@ -735,28 +720,9 @@ function tagNameHasDot(node) {
735
720
) ;
736
721
}
737
722
738
- /**
739
- * Get the standard name of the attribute.
740
- * @param {string } name - Name of the attribute.
741
- * @returns {string | undefined } The standard name of the attribute, or undefined if no standard name was found.
742
- */
743
- // function getStandardName(name) {
744
- // if (DOM_PROPERTY_NAMES_SET.has(name)) {
745
- // return DOM_PROPERTY_NAMES_SET.get(/** @type {keyof LOWER_CASED_DOM_PROPERTY_NAMES_MAP } */ (name));
746
- // }
747
- //
748
- // // const lowerCasedName = name.toLowerCase();
749
- // //
750
- // // if (Object.hasOwn(LOWER_CASED_DOM_PROPERTY_NAMES_MAP, lowerCasedName)) {
751
- // // return LOWER_CASED_DOM_PROPERTY_NAMES_MAP[lowerCasedName];
752
- // // }
753
- //
754
- // return null;
755
- // }
756
-
757
723
function isComponent ( node ) {
758
724
return (
759
- node
725
+ ! ! node
760
726
&& node . name
761
727
&& ( node . name . type === 'JSXIdentifier' || node . name . type === 'JSXMemberExpression' )
762
728
&& ! jsxUtil . isDOMComponent ( node )
@@ -831,7 +797,7 @@ module.exports = {
831
797
}
832
798
}
833
799
834
- const name = actualName ; //normalizeAttributeCase(actualName);
800
+ const name = actualName ;
835
801
836
802
// Ignore tags like <Foo.bar />
837
803
if ( tagNameHasDot ( node ) ) {
0 commit comments