My favorites | Sign in
Project Logo
                
New issue | Search
for
| Advanced search | Search tips
Issue 7: Template name not replaced with repetition index in style and non-CDATA attributes
1 person starred this issue and may be notified of changes. Back to list
Status:  Duplicate
Owner:  WestonRuter
Closed:  Aug 2007
Type-Defect
Priority-High
Milestone-Release0.9


Sign in to add a comment
 
Reported by WestonRuter, Jan 16, 2007
What the specification calls for in 3.6.1.11 Addition, that the template
name be replaced with the current repetition index in all attributes of a
block, is not carried out for style attributes and non-CDATA attributes. 

The spec reads: If the template has a name and it is not being ignored (see
the previous two steps), then, for every attribute on the new element, and
for every attribute in every descendant of the new element: if the
attribute starts with a zero-width non-breaking space character (U+FEFF)
then that character is removed from the attribute; otherwise, any
occurrences of a string consisting of an opening square bracket (U+005B,
"[") or a modifier letter half triangular colon (U+02D1, "ˑ"), the
template's name, and a closing square bracket (U+005D, "]") or a middle dot
(U+00B7, "·"), are replaced by the new repetition block's index. This is
performed regardless of the types, names, or namespaces of attributes, and
is done to all descendants, even those inside nested forms, nested
repetition templates, and so forth.

This is related to Opera bug #230280 (?) which is demonstrated at
<http://simon.html5.org/test/webforms2/repetition/addition/001.htm>
Comment 1 by WestonRuter, Jan 16, 2007
Test case: http://weston.ruter.net/projects/repetition-model/testsuite/005.html
0 bytes Download
Comment 2 by WestonRuter, Jan 16, 2007
This issue does not seem to occur in Safari 2.0.4
Comment 3 by WestonRuter, Mar 28, 2007
Improvement in 0.8.2.2 which enables the correct behavior when the repetition index
appears within quoted property values, such as: background-image:url("[template].png")
Comment 4 by WestonRuter, Aug 15, 2007
See http://code.google.com/p/webforms2/issues/detail?id=2
Status: Duplicate
Sign in to add a comment

Hosted by Google Code