function getDOMPropertyNames(context) {
  return [].concat(
    DOM_PROPERTY_NAMES_TWO_WORDS,
    DOM_PROPERTY_NAMES_ONE_WORD,

    testReactVersion(context, '>= 16.1.0') ? [].concat(
      testReactVersion(context, '>= 16.4.0') ? [].concat(
        // these were added in React v16.4.0, see https://reactjs.org/blog/2018/05/23/react-v-16-4.html and https://github.com/facebook/react/pull/12507
        REACT_ON_PROPS,
        testReactVersion(context, '>= 19') ? [
          // precedence was added in React v19, see https://react.dev/blog/2024/04/25/react-19#support-for-stylesheets
          'precedence',
        ] : []
      ) : []
    ) : [
      // this was removed in React v16.1+, see https://github.com/facebook/react/pull/10823
      'allowTransparency',
    ]
  );
}
@fileoverview Prevent usage of unknown DOM property
@author Yannick Croissant