How to use the mdn-browser-compat-data/html/global_attributes.json.html function in mdn-browser-compat-data

To help you get started, we’ve selected a few mdn-browser-compat-data examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github frenic / csstype / src / attributes.ts View on Github external
export let getHtmlAttributes = () => {
  let attributes: ResolvedType[] = [];

  attributes = gatherAttributes(attributes, rawGlobalAttributes.html.global_attributes);
  attributes = loadCompatFiles(attributes, 'html', 'elements');

  // Cache
  getHtmlAttributes = () => attributes;

  return attributes;
};