Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 329244 - HTML editor emits wrong warnings on <applet> tag's code parameters
Summary: HTML editor emits wrong warnings on <applet> tag's code parameters
Status: RESOLVED NOT_ECLIPSE
Alias: None
Product: WTP Source Editing
Classification: WebTools
Component: wst.html (show other bugs)
Version: unspecified   Edit
Hardware: PC Windows 7
: P3 minor (vote)
Target Milestone: ---   Edit
Assignee: wst.html CLA
QA Contact: Nick Sandonato CLA
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-11-02 05:51 EDT by Michael Moser CLA
Modified: 2010-11-02 09:41 EDT (History)
1 user (show)

See Also:


Attachments
Zipped eclipse project containing all files mentioned in the description. (7.83 KB, application/octet-stream)
2010-11-02 05:53 EDT, Michael Moser CLA
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description Michael Moser CLA 2010-11-02 05:51:48 EDT
The HTML editor obviously has some problems with the <applet ...>-tag's code="..." parameter. It puts "wiggles" under valid values (and emits warnings where it *should not*) and does *not* put wiggles (and does not emit warnings) for values where it *should*.

To give a reproducible example I have created a test project, where an HTLML file "test.html" tries to reference an applet "test.Test" that is available as plain class file (WebContent/WEB-INF/classes/test/Test.class) and packed into a .jar file (WebContent/WEB-INF/lib/test.jar):

<WebContent>
   WEB-INF
      classes
         test
            Test.class
      lib
     test.jar
 test.html

Note: project setup and directory names are the defaults chosen by the misc. project and file creation wizards.
      
The test.html files contains different variants of the code parameter. The actually *working* variants are 3, 4, 21, and 22, but the editor accepts the variants 5, 7, 14, 21, and 22, and emits warnings for all others, which means - except for the last two - the warnings *do not reflect* whether the parameter value is correct or not. 

To see the working variants, open the test.html file in your Java-enabled Browser. The working variants emit "Hello <nr>", all others hang for a while and/or yield exceptions.

Michael
Comment 1 Michael Moser CLA 2010-11-02 05:53:42 EDT
Created attachment 182195 [details]
Zipped eclipse project containing all files mentioned in the description.
Comment 2 Nitin Dahyabhai CLA 2010-11-02 08:48:18 EDT
Michael, can you list the messages themselves directly as well?  That will make it easier to understand what to look for.
Comment 3 Nick Sandonato CLA 2010-11-02 09:41:32 EDT
We do not do any validation of the code attribute for the applet tag. This is likely an adopter product creating these annotations.