[OpenAjaxIDE] Proposed escaping strategy for the 'name' attribute on <property>
jferrai at us.ibm.com
Tue Jul 21 14:46:43 PDT 2009
At today's phone call, we resolved that we needed to figure out an escaping
strategy for the 'name' attribute on the <property> element. I wrote up a
proposal and put it into the spec in the section that documents the 'name'
attribute on the <property> element. (Along with red-colored comments about
* name="\n" ==> a name that consists of a single character (the
* name="\x20" ==> a name that consists of a single character (the
Here is what the spec says now:
The name attribute specifies the name for this property. Each different
property name MUST be unique within the scope of its parent.
sequence, such as \n (newline character) or \x20 (hexadecimal
representation of a space character). As a result, name="abc\ndef"
represents a 7-character name where the fourth character is a newline
The special value of "*" (as in name="*") indicates a property whose name
For the rare case where a property's static name is in fact the single
character "*" (e.g., myobject['*']), then the name attribute SHOULD
name="\*". Developer tools MUST check for the special value "*" before
unescaping the value of the name attribute.
2009-07-21 Jon: Per today's phone call, added name="*" and comments about
elsewhere in the spec, such as 'name' attribute on <parameter> and other
What do people think of this approach? Do we need to support escaping
elsewhere in the spec? My current thinking is no.
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the IDE