From a819c93944b2800c99afbc6ad4948fc1af87e00b Mon Sep 17 00:00:00 2001 From: Colin Kuskie Date: Tue, 5 May 2009 16:46:30 +0000 Subject: [PATCH] Fix wrong attribute for script tag in Dataform. --- docs/changelog/7.x.x.txt | 1 + lib/WebGUI/Form/Textarea.pm | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/docs/changelog/7.x.x.txt b/docs/changelog/7.x.x.txt index ed8557461..8fa5cb22f 100644 --- a/docs/changelog/7.x.x.txt +++ b/docs/changelog/7.x.x.txt @@ -3,6 +3,7 @@ - Added support for template attachments; scripts and stylesheets that will be included using style->setScript and setLink instead of just using raw head tags. + - fixed: #10322: Dataform: wrong attr on script tag 7.7.5 - Adding StoryManager. diff --git a/lib/WebGUI/Form/Textarea.pm b/lib/WebGUI/Form/Textarea.pm index f3de5d977..ded05ad35 100644 --- a/lib/WebGUI/Form/Textarea.pm +++ b/lib/WebGUI/Form/Textarea.pm @@ -153,7 +153,7 @@ sub toHtml { # Add the maxlength script $style->setScript( $url->extras( 'yui/build/yahoo-dom-event/yahoo-dom-event.js' ), - { text => 'text/javascript' }, + { type => 'text/javascript' }, ); $style->setScript( $url->extras( 'yui-webgui/build/form/textarea.js' ),