Is the component an HTML5 attribute or protoype.js?

Is the component an HTML5 attribute or part of prototype.js? I do not know how to find information on the Internet about this. I think the component and attribute are too general terms to search for.

Example (from http://flixster.rottentomatoes.com/ ):

<li id="" class="active" component="NavigationButton">
    ...
</li>

Then consider the nav element and the li elements contained inside. Not sure how to insert HTML as an example here. Note: feel free to edit my code to give an example

+5
source share
1 answer

This is a custom attribute that is read by the Component Object Model, which is some kind of custom structure.

:

tags.each(function(tag) {
    var name = $(tag).readAttribute("component");
    try {
        new Component[name](tag);
    } catch (err) {
        console.error("Error initializing Component." + name + " - " + err);
    }
});

. .. component="Form", Component.Form . Flexy.

+3

All Articles