[CUBBY-150] カスタムタグで属性値が全て自動的にエスケープされる問題を修正。[Seasar-user:14925] Created: 2008-07-08  Updated: 2009-07-05  Resolved: 2008-07-08

Status: Closed
Project: Cubby
Component/s: Core
Affects Version/s: 1.0.3
Fix Version/s: 1.0.4, 1.1.0-rc1

Type: Bug Priority: Critical
Reporter: agata Assignee: agata
Resolution: Fixed Votes: 0
Labels: None


 Description   

[Seasar-user:14925][cubby, mayaa] inputタグで ' の表示より

cubby+mayaa で、

<input type="text" name="cardId1" id="cardId1"
onkeyup="cardIdInputHelp(this.value, 'cardId2')" />

このようなinputタグを出力したいので、mayaa で

<t:input m:id="cardId1" type="text" name="cardId1"
onkeyup="cardIdInputHelp(this.value, 'cardId2')" />

このように書いても

<t:input m:id="cardId1" type="text" name="cardId1"
onkeyup="cardIdInputHelp(this.value, 'cardId2')" />

このように書いても、

出力結果は、

<input type="text" name="cardId1" value=""
onkeyup="cardIdInputHelp(this.value, 'cardId2')" />

こうなりました。
-----------------------------------------------
Firefox3でJavascriptが動かなくなりました。
IE7で試したところ、IE7では問題なく動きました。

firefox3固有の問題なんですかね。。
-----------------------------------------------
それは、問題ですね。対策を検討します。
おそらく、カスタムタグで特別に出力する属性
(例えば、optionのvalue属性など)以外は、
エスケープせずに出力する仕様になりそうです。
今しばらくお待ちくださいませ。



 Comments   
Comment by agata [ 2008-07-08 ]

r1055で対応。braunches/1.0.x

Generated at Fri Mar 29 00:21:31 JST 2024 using Jira 9.13.0#9130001-sha1:94297e63fec900085df7b42441d17146fe025bb5.