attributes.js — react Source File
Architecture documentation for attributes.js, a javascript file in the react codebase. 0 imports, 1 dependents.
Entity Profile
Dependency Diagram
graph LR 8151fcb2_8fa7_231b_84c1_67e281fb0ca7["attributes.js"] 444f4239_c2fb_3bc5_1037_eb595d98f6e1["App.js"] 444f4239_c2fb_3bc5_1037_eb595d98f6e1 --> 8151fcb2_8fa7_231b_84c1_67e281fb0ca7 style 8151fcb2_8fa7_231b_84c1_67e281fb0ca7 fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
function getProperty(propertyName) {
return el => el[propertyName];
}
function getAttribute(attributeName) {
return el => {
if (el.namespaceURI === '') {
throw new Error('Not an HTML element.');
}
return el.getAttribute(attributeName);
};
}
function getSVGProperty(propertyName) {
return el => el[propertyName];
}
function getSVGAttribute(attributeName) {
return el => {
if (el.namespaceURI !== 'http://www.w3.org/2000/svg') {
throw new Error('Not an SVG element.');
}
return el.getAttribute(attributeName);
};
}
const attributes = [
{name: 'about', read: getAttribute('about')},
{name: 'aBoUt', read: getAttribute('about')},
{
name: 'accent-Height',
containerTagName: 'svg',
tagName: 'font-face',
read: getSVGAttribute('accent-height'),
},
{
name: 'accent-height',
containerTagName: 'svg',
tagName: 'font-face',
read: getSVGAttribute('accent-height'),
},
{
name: 'accentHeight',
containerTagName: 'svg',
tagName: 'font-face',
read: getSVGAttribute('accent-height'),
},
{name: 'accept', tagName: 'input'},
{name: 'accept-charset', tagName: 'form', read: getProperty('acceptCharset')},
{name: 'accept-Charset', tagName: 'form', read: getProperty('acceptCharset')},
{name: 'acceptCharset', tagName: 'form'},
{name: 'accessKey'},
{
name: 'accumulate',
containerTagName: 'svg',
tagName: 'animate',
read: getSVGAttribute('accumulate'),
},
{name: 'action', tagName: 'form', overrideStringValue: 'https://reactjs.com'},
{
// ... (2340 more lines)
Domain
Subdomains
Imported By
Source
Frequently Asked Questions
What does attributes.js do?
attributes.js is a source file in the react codebase, written in javascript. It belongs to the BabelCompiler domain, Optimization subdomain.
What functions are defined in attributes.js?
attributes.js defines 4 function(s): getAttribute, getProperty, getSVGAttribute, getSVGProperty.
What files import attributes.js?
attributes.js is imported by 1 file(s): App.js.
Where is attributes.js in the architecture?
attributes.js is located at fixtures/attribute-behavior/src/attributes.js (domain: BabelCompiler, subdomain: Optimization, directory: fixtures/attribute-behavior/src).
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free