This repository was archived by the owner on Apr 12, 2024. It is now read-only.
This repository was archived by the owner on Apr 12, 2024. It is now read-only.
jqLite dumps <tr-xxx> while running jqLiteBuildFragment #10617
Closed
Description
$compile
service will call jqLite to convert html to JQuery element. It's found that in jqLiteBuildFragment
function, if a customized directive tag like <tr-xxx>
will be wrapped to <table>...
due to this regexp var TAG_NAME_REGEXP = /<([\w:]+)/;
does not capture 'dash-delimited' tag name. And the fragment tr
is in wrapMap
which will be wrapped to a comprehensive table
html later.
As a result, the directive cannot be compiled successfully.
I wonder any reason behind this or it's a bug to be fixed, should I PR for this?
https://github.com/angular/angular.js/blob/master/src/jqLite.js#L145