You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@tapestry.apache.org by jk...@apache.org on 2006/08/19 18:38:04 UTC
svn commit: r432841 - in /tapestry/tapestry4/trunk/tapestry-framework/src:
java/org/apache/tapestry/html/Body.java scripts/TestSimple.xml
Author: jkuhnert
Date: Sat Aug 19 09:38:03 2006
New Revision: 432841
URL: http://svn.apache.org/viewvc?rev=432841&view=rev
Log:
Fixed made for TAPESTRY-1070. Added call to renderIdAttribute on Body component to make it friendlier for
client side scripting. (though I don't see the need, browsers support document.body natively...)
Modified:
tapestry/tapestry4/trunk/tapestry-framework/src/java/org/apache/tapestry/html/Body.java
tapestry/tapestry4/trunk/tapestry-framework/src/scripts/TestSimple.xml
Modified: tapestry/tapestry4/trunk/tapestry-framework/src/java/org/apache/tapestry/html/Body.java
URL: http://svn.apache.org/viewvc/tapestry/tapestry4/trunk/tapestry-framework/src/java/org/apache/tapestry/html/Body.java?rev=432841&r1=432840&r2=432841&view=diff
==============================================================================
--- tapestry/tapestry4/trunk/tapestry-framework/src/java/org/apache/tapestry/html/Body.java (original)
+++ tapestry/tapestry4/trunk/tapestry-framework/src/java/org/apache/tapestry/html/Body.java Sat Aug 19 09:38:03 2006
@@ -155,8 +155,11 @@
// Start the body tag.
writer.println();
writer.begin(getElement());
+
renderInformalParameters(writer, cycle);
-
+
+ renderIdAttribute(writer, cycle);
+
writer.println();
// Write the page's scripting. This is included scripts
Modified: tapestry/tapestry4/trunk/tapestry-framework/src/scripts/TestSimple.xml
URL: http://svn.apache.org/viewvc/tapestry/tapestry4/trunk/tapestry-framework/src/scripts/TestSimple.xml?rev=432841&r1=432840&r2=432841&view=diff
==============================================================================
--- tapestry/tapestry4/trunk/tapestry-framework/src/scripts/TestSimple.xml (original)
+++ tapestry/tapestry4/trunk/tapestry-framework/src/scripts/TestSimple.xml Sat Aug 19 09:38:03 2006
@@ -104,7 +104,7 @@
<assert-regexp name="Page Two: No message, yet">
<![CDATA[
- <body>\s*<p>This page
+ <body(\s*\w+=".*")*\s*>\s*<p>This page
]]>
</assert-regexp>
@@ -126,7 +126,7 @@
<assert-regexp name="Third request, message displayed">
<![CDATA[
- <body>\s*Note: You clicked the link!\s*<p>This page
+ <body(\s*\w+=".*")*\s*>\s*Note: You clicked the link!\s*<p>This page
]]>
</assert-regexp>