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 235794 - way how to detect the "gap"? Incorrect html lexing of attribute if an upper level language construct present in the tag
Summary: way how to detect the "gap"? Incorrect html lexing of attribute if an upper l...
Status: RESOLVED WONTFIX
Alias: None
Product: editor
Classification: Unclassified
Component: Lexer (show other bugs)
Version: 7.4
Hardware: PC Mac OS X
: P3 normal (vote)
Assignee: Miloslav Metelka
URL:
Keywords:
Depends on: 235795
Blocks:
  Show dependency tree
 
Reported: 2013-09-11 09:09 UTC by Marek Fukala
Modified: 2016-07-07 07:26 UTC (History)
1 user (show)

See Also:
Issue Type: ENHANCEMENT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Marek Fukala 2013-09-11 09:09:57 UTC
extracted from issue #235633 - see my comment#10:

Sample TPL code:

<table id={$table_id} class=...

Bug: The class attribute is considered as value of the id attribute.

The html lexer sees the input as continuous sequence of characters.  What appears in the sequence is determined (correctly) by the superordinate TPL lexer. 

The html lexer in this cases sees <table id= class="table... which means the class is considered as the value of the id attribute (correctly according to html spec). 

If there was a way how to detect the "gap" which is not visible in the html lexer input, then I could do some magic in the html lexer and lex the class as an attribute and not as the attribute value as it is now. However currently it seems to be impossible to detect that situation.
Comment 1 Martin Balin 2016-07-07 07:26:36 UTC
This old bug may not be relevant anymore. If you can still reproduce it in 8.2 development builds please reopen this issue.

Thanks for your cooperation,
NetBeans IDE 8.2 Release Boss