Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 144213

Summary: [parsing] DOMException on adding style rule to css jsp
Product: [WebTools] WTP Source Editing Reporter: Susumu Fukuda <fukudas>
Component: jst.jspAssignee: jst.jsp-triaged <jst.jsp-triaged>
Status: RESOLVED WONTFIX QA Contact: Nitin Dahyabhai <thatnitind>
Severity: normal    
Priority: P2 CC: itewksbu, nsand.dev
Version: 1.5Keywords: helpwanted
Target Milestone: Future   
Hardware: PC   
OS: Windows XP   
Whiteboard:

Description Susumu Fukuda CLA 2006-05-29 07:59:31 EDT
With css jsp model, DOMException occurs on appending a style rule
after <%@include %> directive.

1. Create a JSPed CSS file as follow:
---------
/* comment */
<%@ include file="./include.jspf" %>
--------- end of document ------
 NOTE: the include directive should not be a first region.

2. Append a style rule to the document throws an exception

* Snippet to reproduce *
 ICSSDocument doc = /* create a model form the file */;
 ICSSStyleRule rule = doc.createCSSStyleRule();
 rule.setSelectorText(selector);
 ((ICSSStyleSheet)doc).appendRule(rule);  <-- DOMException

Even with the exception, the rule looks added to the document.
Comment 1 David Williams CLA 2006-06-01 04:22:56 EDT
Now, Fukuda-san, I should not have to remind you how much we appreciate getting little JUnit tests attached for bugs like this! :) 
Comment 2 Ian Tewksbury CLA 2010-01-20 09:49:41 EST
After 4 years of no further complaints and no description of a bad user experience I vote for close.
Comment 3 Nick Sandonato CLA 2010-04-27 11:35:25 EDT
This has only had its target milestone slip once, twice since it probably won't get fixed in 3.3.
Comment 4 Nick Sandonato CLA 2011-11-09 17:08:19 EST
This is something we will not be addressing.