diff options
author | John Resig <jeresig@gmail.com> | 2006-10-03 08:37:58 +0000 |
---|---|---|
committer | John Resig <jeresig@gmail.com> | 2006-10-03 08:37:58 +0000 |
commit | 301e2b64937cf1b03899f0583a9c6de1086820a5 (patch) | |
tree | 1c24855c3f4cca48c22a7a8ee4d918b4e834ffb4 | |
parent | 9203775234e83c48411b8b182df72c41532250d0 (diff) | |
download | jquery-301e2b64937cf1b03899f0583a9c6de1086820a5.tar.gz jquery-301e2b64937cf1b03899f0583a9c6de1086820a5.zip |
Fixed test suite bug with Opera with the .attr('action') test. Opera always returns a fully-qualified URL, not just 'formaction'. Boooo.
-rw-r--r-- | src/jquery/jquery.js | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/jquery/jquery.js b/src/jquery/jquery.js index cda8fae97..67dfd6b52 100644 --- a/src/jquery/jquery.js +++ b/src/jquery/jquery.js @@ -391,8 +391,8 @@ jQuery.fn = jQuery.prototype = { * ok( $('#simon').attr('class') == "blog link", 'Check for class attribute' ); * ok( $('#name').attr('name') == "name", 'Check for name attribute' ); * ok( $('#text1').attr('name') == "action", 'Check for name attribute' ); - * ok( $('#form').attr('action') == "formaction", 'Check for action attribute' ); - * + * ok( $('#form').attr('action').indexOf("formaction") >= 0, 'Check for action attribute' ); + * * @name attr * @type Object * @param String name The name of the property to access. |