Skip to content

Maximum tag name limit #2020

Open
Open
@blueyed

Description

@blueyed

I have noticed that html parser might create very long tags, if it comes across some HTML templates, e.g. in the form <h3>{{ foo }}</h3>, where "{{ foo }}" might be much longer and cross multiple lines.

This might even cause Vim to fail parsing the tags file (vim/vim#4051).

Therefore I think it would make sense to have some generic maximum tag name limit like 200 (which might be configurable).

This could then either truncate the name, or skip it (with a warning).

The tag in question comes from: https://github.com/django/django/blob/65ef5f467ba84c26392a157de1622d805401ec7d/django/contrib/admin/templates/admin/edit_inline/stacked.html#L12-L16 - it does not really make sense to have it altogether indexed (completely).

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions