Fix wrong return type for readHref function

This commit is contained in:
Frederic Junod
2018-06-29 14:15:07 +02:00
parent bc60c8ec32
commit ddeb091871

View File

@@ -12,7 +12,7 @@ const NAMESPACE_URI = 'http://www.w3.org/1999/xlink';
/**
* @param {Node} node Node.
* @return {boolean|undefined} Boolean.
* @return {string|undefined} href.
*/
export function readHref(node) {
return node.getAttributeNS(NAMESPACE_URI, 'href');