Marko v3: Make tag def lookup case-insensitive

This commit is contained in:
Patrick Steele-Idem 2016-01-14 10:13:29 -07:00
parent 8d68296631
commit bb89e627b0

View File

@ -154,7 +154,7 @@ class TaglibLookup {
}
var tagName = element.tagName;
return tags[tagName];
return tags[tagName.toLowerCase()];
}
getAttribute(element, attr) {
@ -235,7 +235,7 @@ class TaglibLookup {
};
}
var tagName = element.tagName;
var tagName = element.tagName.toLowerCase();
/*
* If the node is an element node then we need to find all matching
* transformers based on the URI and the local name of the element.