Reviewers: metaweta,

Description:
HTML allows some valueless attributes.
  <input checked>
is equivalent to
  <input checked="checked">

The HTML schema table distinguishes these by putting the attribute
name as the only allowed value.

This change modifies the perl script that derives the JSON doc, and the
JSON HTML attributes, and it adds programmatic support via the
HTML.Attrib
class.

It also changes the value criterion used to check untyped HTML
attributes
values to allow the value criteria to be converted to Javascript regular
expressions so that they can be evaluated client side.

Please review this at http://codereview.appspot.com/111042

Affected files:
  M     src/com/google/caja/lang/html/HTML.java
  M     src/com/google/caja/lang/html/HtmlDefinitions.java
  M     src/com/google/caja/lang/html/HtmlSchema.java
  A     src/com/google/caja/lang/html/RegularCriterion.java
  M     src/com/google/caja/lang/html/html4-attributes-defs.json
  M     src/com/google/caja/lang/html/html4-attributes.json
  M     src/com/google/caja/lang/html/html4-attributes.pl


Reply via email to