Community
Participate
Working Groups
The scripting event tags attribute values as defined at: http://www.w3.org/TR/html4/interact/scripts.html#events are erroneously reported as HTML_DEFAULT by StructuredTextPartitionerForHTML.
Created attachment 60722 [details] Patch for StructuredTextPartitionerForHTML to include SCRIPT partitioning of EVENT attribute tags. Patch for StructuredTextPartitionerForHTML to include fix SCRIPT partitioning of EVENT tags attribute value text region.
Created attachment 81041 [details] alternate patch The original patch would end up creating too many garbage strings, I think, with all of those substrings being used. This patch updates it slightly to do a character array comparison in the partitioner if possible. I tried long and hard to make the comparison in the parser's region factory so that the partitioner could just check the text region implementation class, but it became too big a change to also work in JSP files. This one's actually a compromise between the the original and my own first pass.
Released for M3.
verified using wtp3.0M3 20071111084533 sdk except i found 4 tag scripting events that are still not considered script partitions. i opened bug 209737 to track the outstanding issue.