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 53417 - HTML Syntax parser produces bad tokens under some circumstances
Summary: HTML Syntax parser produces bad tokens under some circumstances
Status: CLOSED WORKSFORME
Alias: None
Product: web
Classification: Unclassified
Component: HTML Editor (show other bugs)
Version: 4.x
Hardware: PC All
: P3 blocker (vote)
Assignee: Marek Fukala
URL:
Keywords:
Depends on:
Blocks: 52909
  Show dependency tree
 
Reported: 2005-01-14 16:18 UTC by Marek Fukala
Modified: 2009-05-18 10:45 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Marek Fukala 2005-01-14 16:18:11 UTC
[20040114]
HTML syntax parser produces wrong token ids when
getTokenChain(...) is called on a specific offset.

to reproduce:
1) have a piece of text for example "<table>" in a
document
2) when getTokenChain  method is called for offset
0 in this string then tokens are OK.
3) when getTokenChain is called on position
between 'e' and '>' the syntax recognizes the '>'
as an open-tag instead of close-tag.
Comment 1 Marek Fukala 2005-02-22 13:39:01 UTC
Cannot reproduce it now - I have created a unit test
JspSyntaxSupportTest.testTokenChainInHTMLTag() which dumps token
chains on various offsets of a test file. It proves that tokenchain is
correct in the example mentioned in this issue.
Comment 2 Marek Fukala 2005-02-22 13:39:30 UTC
verified by the unit test