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 121881 - <script> tag content has always javascript embedding regardless the content of language attribute
Summary: <script> tag content has always javascript embedding regardless the content o...
Status: RESOLVED FIXED
Alias: None
Product: web
Classification: Unclassified
Component: HTML Editor (show other bugs)
Version: 6.x
Hardware: All All
: P3 blocker (vote)
Assignee: Marek Fukala
URL:
Keywords:
Depends on: 117450
Blocks:
  Show dependency tree
 
Reported: 2007-11-14 11:05 UTC by Marek Fukala
Modified: 2009-05-18 10:47 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 2007-11-14 11:05:14 UTC
The embedding type of the script tag content should be driven by the language attribute content. Now javascript content
is always presumed.

The key problem is that due to issue #117450 - Provide unified LexerInput across multiple joined embedded sections I
need to lex the script tag token as a special script token and create the embedding statically in the
Language.embedding() method. Once the issue is fixed, I'll return to the original solution - dynamic embedding creation
based on parser result which allows to determine the language attribute value easily.
Comment 1 Marek Fukala 2007-11-22 19:26:14 UTC
needs to be fixed in 6.1 in the EmbeddingUpdater, actually the code is not in the class now, it is hacked in the
HTMLLexer, but this will change in 6.1
Comment 2 Marek Fukala 2008-05-14 10:17:08 UTC
already fixed