This commit is contained in:
Daniel Imms
2017-02-09 20:09:47 -08:00
parent 7167b06bf8
commit 3bf31aa478
+2 -2
View File
@@ -56,7 +56,8 @@ export class Linkifier {
} }
/** /**
* Attaches a handler for hypertext links, overriding default <a> behavior. * Attaches a handler for hypertext links, overriding default <a> behavior
* for standard http(s) links.
* @param {LinkHandler} handler The handler to use, this can be cleared with * @param {LinkHandler} handler The handler to use, this can be cleared with
* null. * null.
*/ */
@@ -133,7 +134,6 @@ export class Linkifier {
} }
const linkElement = this._createAnchorElement(uri, handler); const linkElement = this._createAnchorElement(uri, handler);
// TODO: Check if childNodes check is needed
if (node.textContent.trim().length === uri.length) { if (node.textContent.trim().length === uri.length) {
// Matches entire string // Matches entire string
if (node.nodeType === Node.TEXT_NODE) { if (node.nodeType === Node.TEXT_NODE) {