http://codereview.appspot.com/90071/diff/1/3
File src/com/google/caja/lang/html/html4-attributes-defs.json (right):
http://codereview.appspot.com/90071/diff/1/3#newcode510
Line 510: "mimeTypes": "image/*", "type": "URI", "optional": true },
When would you use an IMG without a SRC?
http://codereview.appspot.com/90071/diff/1/3#newcode558
Line 558: "optional": true },
Requiring TYPE for SCRIPT and STYLE seems like generally clean and
defensive and standards-based. It will default to "text/javascript" and
"text/css" respectively, but leaving them out just seems sloppy and
non-future-proof. Is there a real need for making these optional?
http://codereview.appspot.com/90071/diff/1/2
File tests/com/google/caja/plugin/templates/TemplateCompilerTest.java
(right):
http://codereview.appspot.com/90071/diff/1/2#newcode305
Line 305: public void test1056Textarea() throws Exception {
Once again, please do not name test cases after bug numbers! This test
could be called something like "testNonRequiredAttributesMissing" (if
this is not already tested elsewhere in this file, which it might
be...).
http://codereview.appspot.com/90071