elements schema: detect dangling attributes
See original GitHub issueIn the ideal world we should be able to detect “dangling” attributes. In the <div foo>
example we should report foo
as “dangling” when:
- foo is not a valid HTML attribute (how come should we identify valid attributes? From a spec / schema?)
- there is no matching directive
- it wasn’t consumed by a binding / event handler / var declaration / other ng-specific construct
- it is not prefixed with
data-
(?)
In practice “dangling” attributes in templates are most probably attributes are introduced due to:
- typos
- forgetting to add a directive (in the
directives
for the@View
annotation) that should match a given attribute
Issue Analytics
- State:
- Created 8 years ago
- Reactions:2
- Comments:23 (15 by maintainers)
Top Results From Across the Web
XML Schema Part 1: Structures - W3C
The purpose of an XML Schema: Structures schema is to define and describe a class of XML documents by using schema components to...
Read more >Schema Operations - Software AG Documentation
Changing Element and Attribute Values in the Physical Schema ... It is very difficult to detect all cases where a schema modification still...
Read more >xsd - xs:any wrapper xml schema validation - Stack Overflow
First, xs:any has a processContents attribute with values strict, lax, or skip. Strict means "validate the content; if you can't find a ...
Read more >AttributeGroupReference - Saxonica
An XML Schema Attribute Group Reference, corresponding to an xs:attributeGroup element with a 'ref' attribute. Constructor Summary. Constructors ...
Read more >Creating Variable Content Container Elements - xFront
Note that the <import> element does not have a schemaLocation attribute to identify a particular schema which implements sensor_type. (Stated differently, this ...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Per #25005, this should now track, at least, that doing something like
should throw an error (missing
[ ]
)This issue has been automatically locked due to inactivity. Please file a new issue if you are encountering a similar or related problem.
Read more about our automatic conversation locking policy.
This action has been performed automatically by a bot.