You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@shindig.apache.org by "Kuntal Loya (JIRA)" <ji...@apache.org> on 2010/07/21 08:41:50 UTC
[jira] Created: (SHINDIG-1390) Enum should be used to refer to Html
tag names and attributes
Enum should be used to refer to Html tag names and attributes
-------------------------------------------------------------
Key: SHINDIG-1390
URL: https://issues.apache.org/jira/browse/SHINDIG-1390
Project: Shindig
Issue Type: Task
Components: Java
Reporter: Kuntal Loya
Priority: Minor
E.g In ProxyingVisitor, the tag names and attributes are specified in a list as strings. They should instead be referred to as some Enum.
Pointer from Chirag -
The Caja UrlPolicy document has a nice list of HTML attributes that can be rewritten.
http://code.google.com/p/google-caja/wiki/UrlPolicy
Pointer from Jasvir -
In addition to Chirag's pointer, programmatically, if you're looking for html attributes that take URIs, the attributes returned by com.google.caja.lang.html.HtmlSchema that take a uri have .getType() === HTML.Attribute.Type.URI.
The default list is derived from the w3c spec and I'd rather avoid recreating the list ad hoc.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.