Loading toolkit/components/microformats/src/Microformats.js +6 −4 Original line number Diff line number Diff line Loading @@ -16,7 +16,8 @@ var Microformats = { * @param name The name of the microformat (required) * @param rootElement The DOM element at which to start searching (required) * @param options Literal object with the following options: * recurseFrames - Whether or not to search child frames * recurseExternalFrames - Whether or not to search child frames * that reference external pages (with a src attribute) * for microformats (optional - defaults to true) * showHidden - Whether or not to add hidden microformat * (optional - defaults to false) Loading Loading @@ -48,8 +49,8 @@ var Microformats = { var defaultView = rootElement.defaultView || rootElement.ownerDocument.defaultView; var rootDocument = rootElement.ownerDocument || rootElement; /* If recurseFrames is undefined or true, look through all child frames for microformats */ if (!options || !options.hasOwnProperty("recurseFrames") || options.recurseFrames) { /* If recurseExternalFrames is undefined or true, look through all child frames for microformats */ if (!options || !options.hasOwnProperty("recurseExternalFrames") || options.recurseExternalFrames) { if (defaultView && defaultView.frames.length > 0) { for (let i=0; i < defaultView.frames.length; i++) { if (isAncestor(rootDocument, defaultView.frames[i].frameElement)) { Loading Loading @@ -118,7 +119,8 @@ var Microformats = { * @param name The name of the microformat (required) * @param rootElement The DOM element at which to start searching (required) * @param options Literal object with the following options: * recurseFrames - Whether or not to search child frames * recurseExternalFrames - Whether or not to search child frames * that reference external pages (with a src attribute) * for microformats (optional - defaults to true) * showHidden - Whether or not to add hidden microformat * (optional - defaults to false) Loading Loading
toolkit/components/microformats/src/Microformats.js +6 −4 Original line number Diff line number Diff line Loading @@ -16,7 +16,8 @@ var Microformats = { * @param name The name of the microformat (required) * @param rootElement The DOM element at which to start searching (required) * @param options Literal object with the following options: * recurseFrames - Whether or not to search child frames * recurseExternalFrames - Whether or not to search child frames * that reference external pages (with a src attribute) * for microformats (optional - defaults to true) * showHidden - Whether or not to add hidden microformat * (optional - defaults to false) Loading Loading @@ -48,8 +49,8 @@ var Microformats = { var defaultView = rootElement.defaultView || rootElement.ownerDocument.defaultView; var rootDocument = rootElement.ownerDocument || rootElement; /* If recurseFrames is undefined or true, look through all child frames for microformats */ if (!options || !options.hasOwnProperty("recurseFrames") || options.recurseFrames) { /* If recurseExternalFrames is undefined or true, look through all child frames for microformats */ if (!options || !options.hasOwnProperty("recurseExternalFrames") || options.recurseExternalFrames) { if (defaultView && defaultView.frames.length > 0) { for (let i=0; i < defaultView.frames.length; i++) { if (isAncestor(rootDocument, defaultView.frames[i].frameElement)) { Loading Loading @@ -118,7 +119,8 @@ var Microformats = { * @param name The name of the microformat (required) * @param rootElement The DOM element at which to start searching (required) * @param options Literal object with the following options: * recurseFrames - Whether or not to search child frames * recurseExternalFrames - Whether or not to search child frames * that reference external pages (with a src attribute) * for microformats (optional - defaults to true) * showHidden - Whether or not to add hidden microformat * (optional - defaults to false) Loading