User:Mkaply:Fx-Docs:Microformats/Architecture: Difference between revisions

no edit summary
No edit summary
No edit summary
 
Line 56: Line 56:
   *        names, otherwise returns nothing
   *        names, otherwise returns nothing
   */
   */
   Microformats.getMicroformatNamesFromNode(node);
   Microformats.getNamesFromNode(node);


The following APIs will be available as helper APIs, primarily for working with the data in a microformat. These will mainly be used by actions.
The following APIs will be available as helper APIs, primarily for working with the data in a microformat. These will mainly be used by actions.
Line 83: Line 83:


The following APIs are specific to the creation of new microformats. They are used in the definition of microformats to retrieve data. Most of these APIs are on the parser object in Microformats.
The following APIs are specific to the creation of new microformats. They are used in the definition of microformats to retrieve data. Most of these APIs are on the parser object in Microformats.
  /**
  * Adds microformats to the microformat module
  *
  * @param  microformat          The name of the microformat that is being added
  * @param  microformatDefinition A JavaScript structure describing the microformat
  *
  * Note: we always replace an existing definition with a new one.
  * The structure of the microformat definition will be documented separately.
  */
  Microformats.add(microformat, microformatDefinition);


     /**
     /**
219

edits