Comment #5 on issue 1111 by mikesamuel: "use subset" grammar in ES5 spec
changed from what we implemented.
http://code.google.com/p/google-caja/issues/detail?id=1111
This requires
(1) changing UseSubsetDirective to DirectivePrologue.
The former contains a set of strings like "strict" or "cajita".
DirectivePrologue should contain a set of strings like "use strict"
and
"use cajita" and should have a boolean uses(String name) method.
The set is the raw text of the strings parsed minus quotation marks.
(2) changing the parser to produce DirectivePrologues instead
of UseSubsetDirectives and update clients.
(3) changing the render method. The render method is problematic, since
where escape sequences appear is significant in use subset directives,
but we need to be able to normalize string literals, so our render
method
should just omit any parts for which the properly escaped version is
not
the same as the string.
(3) updating all uses of the old syntax.
(4) change quasiliteral uses of the UseSubsetDirective.
--
You received this message because you are listed in the owner
or CC fields of this issue, or because you starred this issue.
You may adjust your issue notification preferences at:
http://code.google.com/hosting/settings