mirror of
https://github.com/marko-js/marko.git
synced 2025-12-08 19:26:05 +00:00
Marko v3: Make tag def lookup case-insensitive
This commit is contained in:
parent
8d68296631
commit
bb89e627b0
@ -154,7 +154,7 @@ class TaglibLookup {
|
|||||||
}
|
}
|
||||||
|
|
||||||
var tagName = element.tagName;
|
var tagName = element.tagName;
|
||||||
return tags[tagName];
|
return tags[tagName.toLowerCase()];
|
||||||
}
|
}
|
||||||
|
|
||||||
getAttribute(element, attr) {
|
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
|
* 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.
|
* transformers based on the URI and the local name of the element.
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user