fix(compiler): attribute case in IE9

Closes #4743
This commit is contained in:
Marc Laval
2015-10-14 18:04:38 +02:00
parent 7dde18b181
commit b89c5bc581
2 changed files with 11 additions and 1 deletions
@@ -81,6 +81,14 @@ export function main() {
]);
});
it('should parse and lower case attributes on regular elements', () => {
expect(humanizeDom(parser.parse('<div FoO="bar"></div>', 'TestComp')))
.toEqual([
[HtmlElementAst, 'div', 'TestComp > div:nth-child(0)'],
[HtmlAttrAst, 'foo', 'bar', 'TestComp > div:nth-child(0)[foo=bar]']
]);
});
it('should parse attributes on template elements', () => {
expect(humanizeDom(parser.parse('<template k="v"></template>', 'TestComp')))
.toEqual([