lpy
dfe5215b88
Implement Element.localName.( fixes #2188 )
2014-04-23 11:00:03 +08:00
Sankha Narayan Guria
36bf23de20
Implement Element.prefix ( Fixes #1737 )
2014-04-22 00:27:06 +05:30
Manish Goregaokar
fa7bc7a686
Fix most defaultPrevented test failures ( #2172 )
2014-04-19 15:46:18 +05:30
Josh Matthews
742f73ded5
Add transparent Traceable and Untraceable types to aid proper rooting practices, and replace ad-hoc Untraceable structs with empty Encodable implementations.
2014-04-17 17:41:09 -04:00
Manish Goregaokar
9f617e9f0c
Make register_named_element more efficient
2014-04-11 14:39:23 +05:30
Tetsuharu OHZEKI
25e6366efc
Remove the needless comment for document.getElementById.
2014-04-09 03:20:47 +09:00
bors-servo
51ff762bc5
auto merge of #1917 : lpy/servo/issue1822, r=jdm
...
see #1822
2014-04-08 10:49:14 -04:00
lpy
50aea70f98
Make sure getElementById always returns the first element with the given ID in tree order.( fixes #1822 )
2014-04-08 12:21:58 +08:00
Daniel Glazman
4b0da08573
Implement Document.createElementNS.
2014-04-07 10:20:10 +02:00
bors-servo
ef5567b585
auto merge of #1994 : hyunjunekim/servo/try, r=jdm
...
#1991
2014-04-04 20:01:47 -04:00
Ms2ger
fb09979502
Address review comments.
2014-04-04 21:30:33 +02:00
Ms2ger
31eee791dd
Upgrade rust.
2014-04-04 20:10:32 +02:00
hyunjunekim
a344d465e8
documnet location
2014-04-04 21:18:30 +09:00
Tetsuharu OHZEKI
faea175505
Document::create_collection's callback should return a boolean instead of a node. ( #2027 )
2014-04-04 00:51:03 +09:00
bors-servo
0204745595
auto merge of #1952 : brunoabinader/servo/htmlcollection-live, r=Ms2ger
...
Closes #1662 .
PS: Cached collections will be next step.
2014-03-26 11:46:47 -04:00
Bruno de Oliveira Abinader
990545c310
Implemented Node.adoptNode
...
Spec:
http://dom.spec.whatwg.org/#dom-document-adoptnode
2014-03-26 09:49:07 -04:00
Bruno de Oliveira Abinader
8a457a2caa
Implemented Document.importNode
...
Spec:
http://dom.spec.whatwg.org/#dom-document-importnode
2014-03-26 09:49:07 -04:00
Bruno de Oliveira Abinader
3a8a0927e2
HTMLCollection::create returns live collections by default
2014-03-26 09:12:38 -04:00
Bruno de Oliveira Abinader
e95aa0febd
Support live HTMLCollection for Document collections
...
The following interface methods now return live collections:
Document.{images,embeds,plugins,links,forms,scripts,anchors,applets}
2014-03-26 09:11:13 -04:00
Ms2ger
038a195ead
Move attributes-related functions onto JS<Element>.
2014-03-20 19:42:42 +01:00
Tetsuharu OHZEKI
0fccf5e386
Split TCast::to into TCast::to_unchecked and TCast::to.
2014-03-20 23:41:59 +09:00
bors-servo
7f188500a1
auto merge of #1915 : Ms2ger/servo/wrap-return-js, r=jdm
...
This lets us avoid the sketchy tricks in JS::new and Window::new, where we
kept an unsafe pointer to the native object across the Wrap call that
consumed the owned pointer.
2014-03-19 19:01:48 -04:00
Josh Matthews
64c0de9fe7
Warning police.
2014-03-18 09:31:22 -05:00
Lars Bergstrom
bbac8aa5c3
Rust upgrades
2014-03-18 09:30:35 -05:00
Ms2ger
4ad3b6ccd1
Return a JS<T> from *Binding::Wrap rather than a JSObject.
...
This lets us avoid the sketchy tricks in JS::new and Window::new, where we
kept an unsafe pointer to the native object across the Wrap call that
consumed the owned pointer.
2014-03-14 13:06:51 +01:00
Bruno de Oliveira Abinader
5eee401403
Added Document's quirks mode getter
2014-03-13 12:34:31 -04:00
Ms2ger
a15cac53bc
Don't use the Untraceable fields outside the module they're defined in.
...
This pattern will become illegal with the next Rust upgrade.
2014-03-12 14:30:19 +01:00
Bruno de Oliveira Abinader
38ba71ceb1
Replaced Document::createHTMLDocument in favor of HTMLCollection helpers
2014-03-07 11:10:56 -04:00
Bruno de Oliveira Abinader
d010861b75
Implemented {Document,Element}.getElementsByClassName
2014-03-07 11:10:56 -04:00
Bruno de Oliveira Abinader
e1499b610e
Implemented {Document,Element}.getElementsByTagNameNS
2014-03-07 11:10:56 -04:00
Bruno de Oliveira Abinader
d22dbb53ca
Implemented {Document,Element}.getElementsByTagName
2014-03-07 11:10:55 -04:00
bors-servo
81ef420e3f
auto merge of #1819 : Ms2ger/servo/createHTMLCollection-JS, r=jdm
2014-03-05 10:19:31 -05:00
bors-servo
da6a571f9e
auto merge of #1811 : Ms2ger/servo/Wrap_, r=jdm
2014-03-05 09:31:44 -05:00
Ms2ger
7ecc39e9ba
Rewrite Document::create_collection to work better with createNodeList.
2014-03-05 12:19:28 +01:00
Ms2ger
cd1d81e402
Pass a JS<Element> to the callback in createHTMLCollection.
2014-03-05 12:00:23 +01:00
Ms2ger
787108deaf
Pass &JS<Window> to the Wrap functions in codegen.
2014-03-04 15:08:44 +01:00
Ms2ger
23b7277b54
Pass &JS<Window> to reflect_dom_object.
2014-03-04 14:13:58 +01:00
Manish Goregaokar
8b425fb8cf
Make document.getElementsByTagname return a NodeList; consolidate element collection to collectElement; fix #1744
2014-03-04 02:19:32 +05:30
Saurabh Anand
5c5cb3e9a7
Move Error, Fallible, ErrorResult out of utils.rs ( fixes #1749 )
2014-02-28 13:32:00 +05:30
bors-servo
1a171129dc
auto merge of #1771 : lpy/servo/issue1742, r=Ms2ger
...
see #1742
2014-02-27 05:55:47 -05:00
lpy
f9f82ff4e6
Add check for non-Text children for document.title.( fixes #1742 )
2014-02-27 14:40:35 +08:00
Ms2ger
25ee5270d1
Only register the new ID from after_set_attr, and remove update_idmap.
2014-02-26 14:50:57 +01:00
Ms2ger
33792db657
Move ID management on binding to and unbinding from tree into Element.
2014-02-26 14:50:57 +01:00
Ms2ger
2cbf7f4c7a
Rewrite Document::SetTitle to use a match.
2014-02-25 09:34:29 +01:00
Ms2ger
870ccd95d2
Remove DocumentTypeId.
2014-02-24 22:35:28 +01:00
Ms2ger
5ede84fa46
Remove document::DocumentType ( fixes #1730 ).
2014-02-24 22:28:27 +01:00
Ms2ger
7190feb5e3
Move HTMLDocument members to Document.
2014-02-24 22:17:33 +01:00
Ms2ger
2c8107e811
Remove methods from IDL that don't do anything useful.
2014-02-24 22:12:04 +01:00
Josh Matthews
625325434b
Implement JSManaged for DOM objects.
2014-02-24 15:16:42 -05:00
Ms2ger
6681476713
Use push_str instead of operator + for efficiency.
2014-02-16 10:25:12 +01:00