Bug 125052 Ability to embed javascript in the html output.
The main reason behind this enhancement is to provide interactivity in a static report. For example, consider the scenario where an application uses the birt report engine to export the reports to an html file. The exported html file has no interactivity such as sorting, hover over text, etc. With the ability to embed javascript in the html output exploiters can provide interactive reports. I would like to have the ability to provide the html renderer javascript to embed in the report or embed the url where the javascript is located.
engine/org.eclipse.birt.report.engine/src/org/eclipse/birt/report/engine/parser/HTMLTextParser.java
/**
	 * Retrieves the child node by name
	 * 
	 * @param parent
	 *            the parent node
	 * @param childName
	 *            the name of the child node to retrieve
	 * @return null if such node does not exist, otherwise return the specified
	 *         node.
	 */
	private Node getNodeByName( Node parent, String childName )
	{
		for ( Node child = parent.getFirstChild( ); child != null; child = child
				.getNextSibling( ) )
		{
			if ( child.getNodeType( ) == Node.ELEMENT_NODE
					&& childName.equals( child.getNodeName( ) ) )
			{
				return child;
			}
		}
		return null;
	}
	/**
	 * Remove the unsupported tags and convert the JTidy DOM tree to W3C DOM
	 * tree recursively.
	 * 
	 * @param srcNode
	 *            the Node in the JTidy DOM tree
	 * @param desNode