[UPDATED per http://permalink.gmane.org/gmane.comp.java.openlaszlo.devel/24533]

Change 20100525-ptw-1 by [email protected] on 2010-05-25 09:56:35 EDT
    in /Users/ptw/OpenLaszlo/trunk
    for http://svn.openlaszlo.org/openlaszlo/trunk

Summary: Correct quoting of string-typed attributes

Bugs Fixed: LPP-9027 pattern attribute on text doesn't work as expected in trunk

Technical Reviewer: [email protected] (pending)
QA Reviewer: [email protected] (pending)

Details:
    lztest-node:  Added tests to verify that setting a string
    attribute using a literal or expression is the same as setting an
    expression attribute to a literal string using the failing pattern
    from the bug (which verifies the use of \u escapes to specify
    unicode characters works).

    Schema, ViewSchema, NodeModel: Added real types for 'text' and
    'html', distinct from 'string', which affects how immediate values
    of those types are interpreted by the tag compiler: 'string'
    implies a Javascript string (i.e., interpreted as a Javascript
    string literal), 'text' implies XML CDATA (i.e., it is
    XML-escaped), 'html' implies XML content (i.e., it is not escaped
    at all).

Tests:
    ant lztest with new node attribute tests

Files:
M       test/lztest/lztest-node.lzx
M       WEB-INF/lps/server/src/org/openlaszlo/xml/internal/Schema.java
M       WEB-INF/lps/server/src/org/openlaszlo/compiler/ViewSchema.java
M       WEB-INF/lps/server/src/org/openlaszlo/compiler/NodeModel.java

Changeset: http://svn.openlaszlo.org/openlaszlo/patches/20100525-ptw-1.tar

Reply via email to