Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
J
jquery
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
夏彬
jquery
Commits
e7669f64
Commit
e7669f64
authored
Oct 13, 2006
by
Jörn Zaefferer
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Added test for #174; Modified failing (IE) tests for find
parent
bfa83066
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
37 additions
and
3 deletions
+37
-3
with_fries.xml
build/test/data/with_fries.xml
+24
-0
ajax.js
src/ajax/ajax.js
+10
-0
jquery.js
src/jquery/jquery.js
+3
-3
No files found.
build/test/data/with_fries.xml
0 → 100644
View file @
e7669f64
<?xml version='1.0' encoding='UTF-8'?>
<soap:Envelope
xmlns:soap=
"http://schemas.xmlsoap.org/soap/envelope/"
xmlns:xsd=
"http://www.w3.org/2001/XMLSchema"
xmlns:xsi=
"http://www.w3.org/2001/XMLSchema-instance"
>
<soap:Body>
<jsconf
xmlns=
"http://www.example.com/ns1"
>
<response
xmlns:ab=
"http://www.example.com/ns2"
>
<meta>
<component
id=
"seite1"
>
<properties
xmlns:cd=
"http://www.example.com/ns3"
>
<property
name=
"prop1"
>
<thing
/>
<value>
1
</value>
</property>
<property
name=
"prop2"
>
<thing
att=
"something"
/>
</property>
</properties>
</component>
</meta>
</response>
</jsconf>
</soap:Body>
</soap:Envelope>
src/ajax/ajax.js
View file @
e7669f64
...
@@ -661,6 +661,16 @@ jQuery.extend({
...
@@ -661,6 +661,16 @@ jQuery.extend({
* }
* }
* });
* });
*
*
* @test stop();
* $.ajax({
* url: "data/with_fries.xml", dataType: "xml", type: "GET", data: "", success: function(resp) {
* ok( $("properties", resp).length == 1, 'properties in responseXML' );
* ok( $("jsconf", resp).length == 1, 'jsconf in responseXML' );
* ok( $("thing", resp).length == 2, 'things in responseXML' );
* start();
* }
* });
*
* @name $.ajax
* @name $.ajax
* @type jQuery
* @type jQuery
* @param Hash prop A set of properties to initialize the request with.
* @param Hash prop A set of properties to initialize the request with.
...
...
src/jquery/jquery.js
View file @
e7669f64
...
@@ -1661,9 +1661,9 @@ jQuery.extend({
...
@@ -1661,9 +1661,9 @@ jQuery.extend({
* t( "Attribute Exists", "*[@title]", ["google"] );
* t( "Attribute Exists", "*[@title]", ["google"] );
* t( "Attribute Exists", "[@title]", ["google"] );
* t( "Attribute Exists", "[@title]", ["google"] );
*
*
* t( "Non-existing part of attribute
[@name*=bla]
", "[@name*=bla]", [] );
* t( "Non-existing part of attribute", "[@name*=bla]", [] );
* t( "Non-existing start of attribute
[@name^=bla]
", "[@name^=bla]", [] );
* t( "Non-existing start of attribute", "[@name^=bla]", [] );
* t( "Non-existing end of attribute
[@name$=bla]
", "[@name$=bla]", [] );
* t( "Non-existing end of attribute", "[@name$=bla]", [] );
*
*
* t( "Attribute Equals", "a[@rel='bookmark']", ["simon1"] );
* t( "Attribute Equals", "a[@rel='bookmark']", ["simon1"] );
* t( "Attribute Equals", 'a[@rel="bookmark"]', ["simon1"] );
* t( "Attribute Equals", 'a[@rel="bookmark"]', ["simon1"] );
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment