Bug Tracker

Custom Query (13852 matches)

Filters
 
Or
 
  
 
Columns

Show under each result:


Results (28 - 30 of 13852)

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20
Ticket Resolution Summary Owner Reporter
#12466 notabug Firefox 15.0 attr()/html() with special char not working [email protected]
Description

Since last update of firefox, I have a problem working with xml attribute and special characters.

With this code:

<!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML//EN">
<html><head>
<script type="text/javascript" src="http://code.jquery.com/jquery-1.8.1.js"></script>
</head>
<body>
<script type="text/javascript">
$(document).ready(function(){
  var xmlstr = '<test><val attr="&lt;popo" /></test>';
  var xmldoc = $(xmlstr);
  xmldoc.find('val').attr('pilou', '<toto>&');
  console.log(xmldoc.html());
});
</script>
</body></html>

In firefox < 15:

<val attr="&lt;popo" pilou="&lt;toto&gt;&amp;"></val> 

In firefox 15:

<val pilou="<toto>&amp;" attr="<popo"></val>

In Chrome:

<val attr="&lt;popo" pilou="&lt;toto&gt;&amp;"></val> 

It seems that firefox 15 a problem escaping special characters in xml attributes.

Regards,

Mathieu De Kermadec

#12475 notabug the ajax function post wrong arguments in ie7 [email protected] [email protected]
Description

if the" data" arguments in $.ajax function contain the option of a select and i write a wrong selector then the argument will be wrong.for example,a select named "dlGrade" and the data argument is " data: {'grade': $('#dlGrade').val()}",then the url will become "dlGrade[]=XXX"

#12485 notabug html() include javascript twice maxou518 maxou518
Description

Hi,

Since v1.6 (also right for 1.8.1 version), if I do something like that :

<!DOCTYPE html>
<html>
        <head>
                <meta charset="UTF-8">
                <script language="javascript" type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.6.0/jquery.min.js"></script>
                <script language="javascript" type="text/javascript">
                        $(document).ready(function() {
                                $.ajax({
                                        url: "testscript.txt",
                                        dataType: "html",
                                        success: function(html) {
                                                $("#receveur").html(html);
                                                hello();
                                        }
                                });
                        });
                </script>
        </head>
        <body>
                <div id="receveur">
                </div>
        </body>
</html>

... where testscript.txt contains :

<div>
        <script language="javascript" type="text/javascript">
                function hello() {
                        confirm("Hello");
                }
        </script>
        <h2>This is a title</h2>
</div>

... if I look with firebug, I find the function hello() implementation twice in the source. Is it normal or is it a bug ?

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20
Note: See TracQuery for help on using queries.