Ryan Choi
ecd44fe9a8
removing unnecessary to_owned
2013-12-06 17:50:26 +09:00
Josh Matthews
f9f9c42ab7
Ensure that it's safe to modify the DOM node pointers before doing so. Fixes #1224 .
2013-12-02 19:25:11 -05:00
Tetsuharu OHZEKI
aa72c413ed
Enable to update id attribute for Document.getElementById(). ( #740 )
2013-11-23 11:53:45 +09:00
Tetsuharu OHZEKI
072ff20140
Use 'match' instead of 'if'.
2013-11-23 11:53:45 +09:00
Ms2ger
871d2f796c
Remove an unused lifetime parameter from Element::get_attribute.
2013-11-14 19:49:36 +01:00
Tetsuharu OHZEKI
f5ef4365f4
Stop passing DOMStrings via borrowed pointer. ( #1201 )
2013-11-14 20:35:36 +09:00
bors-servo
82dd9b5699
auto merge of #1251 : Ms2ger/servo/attr-localname, r=kmcallister
2013-11-13 19:22:39 -08:00
Ms2ger
d57c3a8149
Make Attr::local_name always initialized.
2013-11-13 20:38:51 +01:00
Ms2ger
591de8cff5
Cleanup attribute setting functions a bit.
2013-11-13 17:38:08 +01:00
Josh Matthews
249cc6e38f
Implement Element.attributes.
2013-11-13 02:09:12 +09:00
Ms2ger
08afc6d19d
Don't pass nullable strings to native DOM methods that want non-nullable strings. Fixes #1207 .
2013-11-12 13:57:18 +01:00
Ms2ger
803cd4b7cf
Make DOMString represent a non-nullable string.
2013-11-12 13:32:53 +01:00
James Graham
15b9d4d199
Initial support for Attr and namespaces.
2013-11-12 17:39:04 +09:00
Simon Sapin
74dfc3b66a
Add :any-link (Level 4), :link and :visited selectors.
...
All links are considered "unvisited" for now.
2013-11-07 15:06:17 +00:00
Ms2ger
80a6103f7d
Remove Reflectable::GetParentObject.
2013-11-06 21:56:47 +01:00
Ms2ger
53731b62ae
Remove Reflectable::wrap_object_shared.
2013-11-06 16:40:16 +01:00
bors-servo
b1c068b203
auto merge of #1125 : Ms2ger/servo/ClientRectList, r=jdm
2013-10-24 07:42:59 -07:00
bors-servo
d222443b38
auto merge of #1117 : Ms2ger/servo/HTMLCollection, r=kmcallister
2013-10-24 06:22:16 -07:00
Ms2ger
8cb4976136
Cleanup HTMLCollection binding.
2013-10-23 20:59:14 +02:00
Ms2ger
6af555ab23
Cleanup ClientRectList binding.
2013-10-23 20:44:22 +02:00
Ms2ger
f75568e939
Cleanup ClientRect binding.
2013-10-23 20:15:36 +02:00
Seo Sanghyeon
b2431912d3
Use the new style system
...
Credits to:
Deokjin Kim
Ilyong Cho
Jaeman Park
Junyoung Cho
Ryan Choi
Sangeun Kim
Yongjin Kim
Youngmin Yoo
Youngsoo Son
2013-10-23 16:49:35 +09:00
Jack Moffitt
94202661c0
Update to latest Rust.
2013-10-21 17:38:34 -06:00
Ms2ger
b90766404c
Replace Document::{with_base, with_mut_base} by Document::{document, mut_document}.
2013-10-21 17:57:44 +02:00
bors-servo
5c725b31af
auto merge of #1025 : saneyuki/servo/attr, r=metajack
2013-10-18 20:43:03 -07:00
Marcos Caceres
faf53fd05c
Implemention of HTMLMainElement
2013-10-18 22:03:58 +01:00
Ms2ger
321e0373fa
Merge BindingObject and Reflectable.
2013-10-18 17:02:16 +02:00
Tetsuharu OHZEKI
41dda86557
Enable to update Element's attributes.
2013-10-19 00:00:43 +09:00
Ms2ger
c08e4fe36b
Make Node.owner_doc private.
2013-10-17 18:44:26 +02:00
Simon Sapin
6d808fbdd0
Move AbastractNode::is_element to the TreeNodeRef trait.
2013-10-16 19:22:44 +01:00
Simon Sapin
6c41be9c13
Add a with_imm_element_like() method.
...
… gives a generic element from a generic node.
2013-10-16 18:44:41 +01:00
Simon Sapin
62f1f03c16
Move Element::get_attr to a trait defined in util::tree
...
… and add a get_local_name() method to that trait.
2013-10-16 18:10:39 +01:00
Ms2ger
60b6d1bb57
Issue #1071 - Ensure that Documents always have a non-null Window.
2013-10-16 10:15:09 +02:00
Tetsuharu OHZEKI
f5e2b2ec67
Auto-generate some binding codes for HTMLElement, Element, CharacterData.
2013-10-16 00:37:15 +09:00
Tetsuharu OHZEKI
0de35fdc2f
Implement HTMLTableDataCellElement & HTMLTableHeaderCellElement.
2013-10-15 22:37:06 +09:00
bors-servo
90baad3fff
auto merge of #983 : saneyuki/servo/getid, r=jdm
...
This has not implemented these features yet:
* Update hashmap which is used for `getElementById()` when updating element attributes.
* Keep node order in tree.
However, this has the quality of that we can use this method for testcases.
2013-10-14 10:01:10 -07:00
Tetsuharu OHZEKI
db3b5c3c4c
Basic Implementation of document.getElementById(), #740
2013-10-15 00:21:13 +09:00
Ms2ger
da2cf6cbd7
Implement Window::get_cx() to reduce code repetition.
2013-10-13 12:06:32 +02:00
Tim Taubert
9fe9145be4
implement NodeList and consolidate common scope and context retrieval
2013-10-11 07:34:38 -07:00
Bobby Holley
c4bbc4cd37
Introduce mutable/immutable variants of reflector() with named lifetimes, and kill unsafe casts.
2013-10-10 13:11:24 +02:00
Ms2ger
04319fdb68
Issue #888 - Node's owner document should never be None.
2013-10-10 10:57:38 +02:00
Bobby Holley
549ac6a29b
Rename some local variables and shorten some lines.
...
This was done manually, and might benefit from a more careful review.
2013-10-09 12:15:56 +02:00
Bobby Holley
6bf740d967
Rename {get,set}_wrapper to {get,set}_jsobject. v1
2013-10-09 12:13:18 +02:00
Bobby Holley
62ddac8b6f
Rename get_wrappercache() to reflector(). v1
...
I also updated some variable names in the codegen.
2013-10-09 12:11:25 +02:00
Bobby Holley
2cbe2d7ce9
Rename WrapperCache to Reflector.
...
I think the abstraction from the raw JSObject is still probably worthwhile for
now.
2013-10-09 12:07:41 +02:00
Bobby Holley
0a0599ad9b
Rename CacheableWrapper to Reflectable.
2013-10-09 12:03:18 +02:00
Ms2ger
388f685549
Cleanup some code.
2013-10-07 16:30:34 +02:00
Simon Sapin
20089e4bea
New style sytsem: add selector matching
...
Also make scribt::dom::element::Element::get_attr ASCII case-insensitive
on attribute names, per spec:
http://dom.spec.whatwg.org/#dom-element-getattribute
2013-10-02 00:28:14 +01:00
Luis de Bethencourt
cfd726f7d6
Rename the node field of the DOM node hierarchy
...
Renamed the Node elements
Fixes #924
2013-09-19 19:39:38 -04:00
Luis de Bethencourt
2dbd065d91
Rename the element field of the DOM Node hierarchy
...
Renamed htmlelement, and element
Fixes #924
2013-09-19 19:39:38 -04:00