Tetsuharu OHZEKI
cdbe179acb
Make Attr handles all setting value.
2014-04-22 16:15:15 +09:00
Tetsuharu OHZEKI
b2fa6fa221
Make Attr::SetValue to reflect attribute change.
2014-04-22 16:15:15 +09:00
Sankha Narayan Guria
36bf23de20
Implement Element.prefix ( Fixes #1737 )
2014-04-22 00:27:06 +05:30
Matt Brubeck
8c794c6739
Move inline stylesheet parsing out of HTML parser.
...
Instead, use shared code to parse stylesheet content when it is inserted,
whether during parsing or dynamically by script.
Based on work by sanools in #1350 .
2014-04-14 11:14:07 -07:00
Ms2ger
a3d13c35a2
Remove the IElement trait.
2014-04-10 10:27:32 +02:00
Josh Matthews
6388dec996
Add overridable tree binding/unbinding behaviour.
2014-04-10 10:27:32 +02:00
Josh Matthews
f5d1907195
Integrate Element's after_set/remove behaviour into the virtual method hierarchy.
2014-04-10 10:27:32 +02:00
Josh Matthews
ca6cfb5bca
Add support for trait-based virtual methods on Nodes, and use it for before_remove_attr and after_set_attr.
2014-04-10 10:27:28 +02:00
Ms2ger
ea2560ef20
Rename before_remove_attr and after_set_attr to allow reusing those names in the next commit.
2014-04-09 23:55:45 +02:00
Ms2ger
ed18e4c948
Merge Attr::new_ns and Attr::new.
2014-04-08 20:17:15 +02:00
Ms2ger
d665ad5a17
Reimplement SetAttributeNS.
2014-04-08 20:17:15 +02:00
Ms2ger
bf73a47ce0
Reimplement SetAttribute.
2014-04-08 20:17:15 +02:00
Ms2ger
883d67882a
Move SetAttributeNS onto JS<Element>.
2014-04-08 20:16:55 +02:00
Ms2ger
b19165e9e1
Move SetAttribute onto JS<Element>.
2014-04-08 20:16:55 +02:00
Ms2ger
3347c3ef80
Split out a do_set_attribute method.
2014-04-08 20:16:55 +02:00
bors-servo
6b1799caa3
auto merge of #2063 : lpy/servo/issue2059, r=Ms2ger
...
see #2059
2014-04-08 11:37:09 -04:00
bors-servo
51ff762bc5
auto merge of #1917 : lpy/servo/issue1822, r=jdm
...
see #1822
2014-04-08 10:49:14 -04:00
lpy
77941dc996
Move Node.namespaceURI to Element.( fixes #2059 )
2014-04-08 22:13:28 +08: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
bors-servo
a65ff6089a
auto merge of #2048 : Ms2ger/servo/set_uint_attribute, r=jdm
2014-04-07 12:34:18 -04:00
Daniel Glazman
4b0da08573
Implement Document.createElementNS.
2014-04-07 10:20:10 +02:00
Ms2ger
bb732ef4e6
Introduce a set_uint_attribute method.
2014-04-06 14:19:30 +02:00
Manish Goregaokar
05e793f4fb
make attr getters/setters case insensitive ( #1962 )
2014-04-05 14:11:33 +05:30
bors-servo
2a5f82a764
auto merge of #2032 : brunoabinader/servo/html-whitespace, r=Ms2ger
...
Specs:
http://dom.spec.whatwg.org/#concept-ordered-set-parser
http://encoding.spec.whatwg.org/#ascii-whitespace
This PR implements the HTMLSpaceCharSplits iterator, used to split a string in a subset of strings separated by valid HTML space characters. Its first usage is upon splitting ```class``` attribute values.
Closes #1840 .
2014-04-05 04:04:34 -04:00
Ms2ger
31eee791dd
Upgrade rust.
2014-04-04 20:10:32 +02:00
Bruno de Oliveira Abinader
943743195f
Split class names using split_html_space_chars helper function
2014-04-04 09:08:36 -04:00
lpy
ac5a634082
Get rid of match statements in Layout queries.( fixes #2019 )
2014-04-02 00:55:33 +08:00
Huon Wilson
94e4ab3eaf
Remove some unnecessary transmutes.
...
These can either be done by implicit `&` -> `*` coercions, explicit `*`
-> `*` casts, or an explicit `&*x` `*` -> `&` re-borrow (which is still
unsafe, but significantly more controlled compared to a `transmute`).
2014-03-25 22:23:55 +11: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
Josh Matthews
64c0de9fe7
Warning police.
2014-03-18 09:31:22 -05:00
Bruno de Oliveira Abinader
6274ecba07
Implement Element.className
2014-03-13 13:48:24 -04:00
bors-servo
047cc05f5a
auto merge of #1889 : pcwalton/servo/fix-borrow-flags-race, r=jdm
...
r? @jdm
2014-03-12 20:52:46 -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
Patrick Walton
d303f50784
script: Fix a borrow flags race in layout on .owner_doc()
.
2014-03-11 17:46:43 -07: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
Ms2ger
6291aac170
Pass &JS<Window> to some constructors.
2014-03-04 14:10:33 +01:00
lpy
77938bf6f6
Implement document_from_node and window_from_node helpers.( fixes #1761 )
2014-03-01 21:57:37 +08:00
Josh Matthews
fa542e5de7
De-@mut the script crate.
2014-02-28 13:42:03 -05:00
bors-servo
021d32368d
auto merge of #1781 : hgentry/servo/mozilla-servo, r=metajack
...
Simple change. I hope I'm using github correctly; I'm not too familiar with the PR system. Fixes #1777 .
2014-02-28 11:37:40 -05:00
Saurabh Anand
5c5cb3e9a7
Move Error, Fallible, ErrorResult out of utils.rs ( fixes #1749 )
2014-02-28 13:32:00 +05:30
hgentry
39e571ae4e
Renamed HTMLIframeElementTypeId to HTMLIFrameElementTypeId
2014-02-27 15:35:27 -05:00
Ms2ger
59416c9431
Remove no-op implementations from Element and add some spec links.
2014-02-27 12:33:32 +01: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
86899b6aaf
Call unregister_named_element rather update_idmap from before_remove_attr.
2014-02-26 14:50:57 +01:00
Ms2ger
432e9cb3a7
Call after_remove_attr before removing the attribute, and rename it before_remove_attr.
2014-02-26 14:50:57 +01:00
Ms2ger
fdd17b4139
Pass a non-Option DOMString to after_remove_attr.
2014-02-26 14:50:57 +01:00
Ms2ger
58b317837b
Cleanup Element::set_attribute.
2014-02-26 14:50:57 +01:00