Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add support for non-standard structures inside elements #3

Open
danielfernandez opened this issue Feb 12, 2014 · 1 comment
Open

Add support for non-standard structures inside elements #3

danielfernandez opened this issue Feb 12, 2014 · 1 comment

Comments

@danielfernandez
Copy link
Member

Reference: thymeleaf/thymeleaf#261

It seems some client-side technologies like ember.js can include macros inside tags themselves (see http://emberjs.com/guides/templates/binding-element-attributes/ ) which would result in a parsing error.

At first sight, this does not seem like a blocking problem because most times these templates will be inside <script> tags, and other solutions could be possible (like ignoring <script> contents or using a CDATA block). But anyway, it would be nice if attoparser could detect such unknown structures and just ignore them as a sort of "unknown inner block", passed as-is to the event system.

For example, the following blocks could be ignored:

  • {...}, for any number of consecutive {'s.
  • [...], for any number of consecutive ['s.
  • (...), for any number of consecutive ('s.
  • <...>, for any number of consecutive <'s.
@danielfernandez danielfernandez self-assigned this Feb 12, 2014
@danielfernandez danielfernandez added this to the attoparser 1.4 milestone Feb 12, 2014
@ghost
Copy link

ghost commented Apr 7, 2015

Please add this feature if its possible.

@danielfernandez danielfernandez removed this from the attoparser 1.4.0 milestone Jun 4, 2015
@danielfernandez danielfernandez removed their assignment Jun 4, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant