Reviewers: ihab.awad,
Description: The new html emitter is more aggressive about emitting default values for attributes that the html spec claims are not optional. 1. The spec for <textarea> says the cols= attribute isn't optional, but doesn't specify an acceptable default value. caja tries to emit a default anyway, which is an NPE. 2. It seems to me that caja should not be forcing default values if I haven't specified one. For example, <img> without alt= is meaningfully different from <img alt=''>. I don't see any reason for caja to normalize these attributes, rather than letting the browser do it naturally. Please review this at http://codereview.appspot.com/90071 Affected files: M src/com/google/caja/lang/html/html4-attributes-defs.json M src/com/google/caja/plugin/templates/TemplateCompiler.java M tests/com/google/caja/plugin/templates/TemplateCompilerTest.java
