refactor: rename AttributeMarker.ProjectOnly
to AttributeMarker.Bindings
(#29041)
PR Close #29041
This commit is contained in:

committed by
Kara Erickson

parent
c7e4931f32
commit
423ac01dcf
@ -272,7 +272,9 @@ export function injectAttributeImpl(tNode: TNode, attrNameToInject: string): str
|
||||
if (attrs) {
|
||||
for (let i = 0; i < attrs.length; i = i + 2) {
|
||||
const attrName = attrs[i];
|
||||
if (attrName === AttributeMarker.SelectOnly) break;
|
||||
if (attrName === AttributeMarker.Bindings) break;
|
||||
// TODO: What happens here if an attribute has a namespace?
|
||||
// TODO: What happens here if the attribute name happens to match a CSS class or style?
|
||||
if (attrName == attrNameToInject) {
|
||||
return attrs[i + 1] as string;
|
||||
}
|
||||
|
Reference in New Issue
Block a user