code: function figReqFigCaption(ele) {
  			if (!opts['fig-req-figcaption']) {
  				return [];
  			}
  
  			if (ele.name === 'figure') {
  				// get the children of this figure
  				var children = ele.children;
  
  				// check for a figcaption element
  				for (var i = 0; i < children.length; i++) {
  					if (children[i].name === 'figcaption') {
  						return [];
  					}
  				}
  			} else if (ele.name === 'figcaption') {
  				if (ele.parent && ele.parent.name === 'figure') {
  					return [];
  				}
  			}
  			return createProblem(ele.openrange, 'fig-req-figcaption', Messages['fig-req-figcaption'], opts['fig-req-figcaption']); //$NON-NLS-1$
  
  		}
docs: Require figcaption