This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.

Bug 239527 - HTML validation treats twig variables in attributes as whitespace
Summary: HTML validation treats twig variables in attributes as whitespace
Status: NEW
Alias: None
Product: php
Classification: Unclassified
Component: Twig (show other bugs)
Version: 7.4
Hardware: All All
: P4 normal (vote)
Assignee: Ondrej Brejla
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2013-12-16 14:57 UTC by rustedwolf
Modified: 2013-12-16 15:22 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
screenshot of the issue (11.59 KB, image/png)
2013-12-16 14:57 UTC, rustedwolf
Details

Note You need to log in before you can comment on or make changes to this bug.
Description rustedwolf 2013-12-16 14:57:39 UTC
Created attachment 143218 [details]
screenshot of the issue

When placing a twig variable in an attribute in a .twig document, the validation engine treats it as a whitespace and throws an error.
Comment 1 Ondrej Brejla 2013-12-16 15:01:55 UTC
HTML validation shouldn't be used in files which are not pure html (that's why it's disabled by default).
Comment 2 rustedwolf 2013-12-16 15:22:04 UTC
I'm afraid it's not. I have fresh install of NB 7.4 and the html validation was enabled already.
Secondly, this is a .twig template file, which is usually consists mostly of html and some twig code. I this case it needs some sort of validation, since it's front end work.