Package home | Report new bug | New search | Development Roadmap Status: Open | Feedback | All | Closed Since Version 1.2.5

Bug #680 _getAttrString always return htmlencoded attributes
Submitted: 2004-02-04 15:07 UTC
From: timo dot hummel at 4fb dot de Assigned: mansion
Status: Bogus Package: HTML_Common
PHP Version: Irrelevant OS: any
Roadmaps: (Not assigned)    
Subscription  
Comments Add Comment Add patch


Anyone can comment on a bug. Have a simpler test case? Does it work for you on a different platform? Let us know! Just going to say 'Me too!'? Don't clutter the database with that please !
Your email address:
MUST BE VALID
Solve the problem : 24 + 24 = ?

 
 [2004-02-04 15:07 UTC] timo dot hummel at 4fb dot de
Description: ------------ the internal function _getAttrString returns all attributes as htmlencoded strings, thus making it impossible to set attributes in certain situations. Example: If setting an attribute "onload" with some JavaScript behind it, it might fail if the htmlencoded string confuses the interpreter.

Comments

 [2004-02-04 15:13 UTC] timo dot hummel at 4fb dot de
Additional note: It would be nice to disable htmlspecialchars for certain attributes.
 [2004-04-27 08:44 UTC] bmansion at mamasam dot com
Thank you for taking the time to write to us, but this is not a bug. I don't see what is wrong with this behavior, sorry. Unless you can provide a real example, this won't be changed for obvious security and xhtml compliance reasons.