This class has kludgy support for disabling JavaScript inclusion with <SCRIPT SRC=...>
element. jsBlockTrans
, whose primary use is translating JavaScript code block (inline <SCRIPT>, javascript:
URI in HREF
attribute, and event handler attributes), is also called with a value of SRC
attribute of <SCRIPT> tag. If jsBlockTrans
returns either null
or an empty String, <SCRIPT> element is disabled by changing SRC
to an empty value. Note that in this case jsBlockTrans
is used only for a test, and its return value is simply discarded. URL translation is done by a subsequent call to {@link URLStringTransformer} forjs_
context. This feature is very likely a subject of refactoring in the future.
|
|