Bug #16039 [Opn]: getAttributesString() uses ENT_QUOTES which breaks IE

From: Date: Tue, 17 Mar 2009 09:08:22 +0000
Subject: Bug #16039 [Opn]: getAttributesString() uses ENT_QUOTES which breaks IE
References: 1  Groups: php.pear.bugs 
Request: Send a blank email to pear-bugs+get-201@lists.php.net to get a copy of this message
Edit report at http://pear.php.net/bugs/bug.php?id=16039&edit=1 ID: 16039 Updated by: cweiske@php.net Reported By: cweiske at php dot net Summary: getAttributesString() uses ENT_QUOTES which breaks IE Status: Open Type: Bug Package: HTML_Common2 Package Version: 2.0.0beta1 PHP Version: 5.2.9 Roadmap Versions: New Comment: This problem occured when using attributes like the following: 'onchange' => 'document.getElementById(\'showCabins\').click()', Previous Comments: ------------------------------------------------------------------------ [2009-03-17 09:07:46] cweiske Description: ------------ HTML_Common2::getAttributesString() uses > htmlspecialchars($value, ENT_QUOTES, $charset) This is breaks Javascript onchange actions in Internet Explorer 6 at least because single quotes get escaped as '''. This is technically correct, but buggy in IE. When changing it to ENT_COMPAT, it works in IE. There should be also no problems since double quotes get still escaped - and HTML_Common2 uses double quotes as attribute delimiters. ------------------------------------------------------------------------ -- Edit this bug report at http://pear.php.net/bugs/bug.php?id=16039&edit=1

« previous php.pear.bugs (#201) next »