Created
August 4, 2016 16:21
-
-
Save garlicnation/404f3405d0c8ca0a6a93e3242665fb96 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
while(htmlImportRemaining()) { | |
// Get the first inlinable HTML import | |
let nextImport = getNextImport(); | |
// Resolve the paths relative to the current document URL | |
let resolvedImport = resolvePaths( | |
thisDocument, | |
nextImport.href, | |
nextImport.document | |
) | |
// Replace <link rel="import"> with the document's DOM | |
dom5.replace(nextImport, resolvedImport) | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment