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

Summary: <script> tag content has always javascript embedding regardless the content of language attribute
Product: web Reporter: Marek Fukala <mfukala>
Component: HTML EditorAssignee: Marek Fukala <mfukala>
Status: RESOLVED FIXED    
Severity: blocker    
Priority: P3    
Version: 6.x   
Hardware: All   
OS: All   
Issue Type: DEFECT Exception Reporter:
Bug Depends on: 117450    
Bug Blocks:    

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