Youngmin Yoo
7b56e75adb
Support base_url in stylesheet
2014-02-19 17:23:50 +09:00
lpy
cc77c29265
Change <em> and <strong> to be HTMLElement ( fixes #1704 )
2014-02-17 00:37:26 +08:00
Ms2ger
e45b7fa22d
Use eq() and eq_slice() less, and map_default() more.
2014-02-16 10:24:24 +01:00
Adam Sinnett
ffcd3833de
Change Text, Comment and ProcessingInstructions parent name from element to characterdata
...
All other node's parent type names reflect the actual type of the parent. This change extends that convention to the indicated nodes.
closes #1594
2014-02-15 13:52:33 -08:00
Ms2ger
59184bf6e1
Move DOMString into servo_util.
2014-02-14 12:48:51 +01:00
Ms2ger
0f5c9a35b9
Use DOMString more consistently.
2014-02-13 19:32:59 +01:00
Tetsuharu OHZEKI
d3cbdd8865
Reduce copying on parse_url() call sites.
2014-02-09 05:03:06 +09:00
bors-servo
fe1bb6a325
auto merge of #1608 : SimonSapin/servo/url, r=metajack
...
Align with spec terminology.
2014-02-07 14:31:35 -05:00
Bruno de Oliveira Abinader
a6c897e445
Implement document.characterSet
...
Spec:
http://dom.spec.whatwg.org/#dom-document-characterset
This is a sub-task for #1428 .
2014-02-06 07:46:24 -04:00
Simon Sapin
33f8ef618b
Rename make_url/current_url to parse_url/base_url, to align with spec terminology.
2014-02-01 17:51:15 +01:00
Bruno de Oliveira Abinader
56572a2814
Implement document.compatMode
...
Spec:
http://dom.spec.whatwg.org/#dom-document-compatmode
This is a sub-task for #1428 .
2014-01-30 19:12:19 -04:00
Simon Sapin
624e2714d4
Move script::dom::namespace into util, in order to use it from style later.
2014-01-25 12:14:06 -08:00
Jack Moffitt
c443bcbfff
Change get_attr()
to get_attr_val_for_layout()
.
...
The old code was used by both layout and script, but was erroneously
borrowing for the layout case (which causes parallelism
problems). script now uses only `value_ref()` or `get_attribute()`, and
layout now has its own unsafe version that dances around the borrows of
`@mut Attr`.
2014-01-22 17:02:21 -07:00
Bruno de Oliveira Abinader
ef8ce13550
DocumentType does not need to know about quirks mode
...
TSIA. Closes #1498 .
2014-01-15 16:07:11 -04:00
zmike
193b6d2635
add names for all servo spawned tasks
...
* add servo_util::task::{spawn_named,spawn_with_named} functions
* add name param for spawn_listener and spawn_conversation functions
this should resolve #1169
2014-01-13 13:12:48 -05:00
Jack Moffitt
a7ef1cd35e
Upgrade to latest Rust.
2014-01-12 19:45:45 -07:00
Ms2ger
4c0e7dda7b
Make Element::set_attribute not lower-case the name argument.
...
In particular, for SetAttributeNS, we should not change the case.
2014-01-04 18:06:57 +01:00
Ms2ger
95913d1fed
Pass a Namespace to Element::get_attr.
2013-12-23 13:03:52 +01:00
Patrick Walton
be69a503fe
script: Eliminate the phantom type in favor of just whitelisting methods
...
that layout can safely call.
This is simpler. Currently, the set of methods is not safe, but I plan
to lock it down more soon.
2013-12-17 18:07:12 -08:00
Patrick Walton
199ca33b72
script: Make trees less generic
2013-12-17 13:46:14 -08:00
Patrick Walton
971f77d2c6
layout: Stop going to the DOM for iframe sizes
2013-12-13 15:10:04 -08:00
Patrick Walton
21e8c72a75
constellation: Stop using futures for frame sizes.
...
This will allow us to stop going to the DOM in order to handle iframe
sizing. Instead we can just store the pipeline and frame IDs of iframes
inside the flow tree itself.
2013-12-13 10:43:27 -08:00
Simon Sapin
b290823f4d
Fix #1264 : support namespaced attribute selectors.
2013-12-10 17:53:12 +00:00
Ms2ger
dc6dbc63af
Make the HTML parser parse into the document rather than an element.
...
This removes the duplicate html element.
2013-11-17 13:58:24 +01:00
Ms2ger
591de8cff5
Cleanup attribute setting functions a bit.
2013-11-13 17:38:08 +01:00
James Graham
15b9d4d199
Initial support for Attr and namespaces.
2013-11-12 17:39:04 +09:00
Ms2ger
a431202989
Rewrite Comment::new to current standards.
2013-11-02 22:10:07 +01:00
Ms2ger
da37fde44f
Rewrite Text::new to current standards.
2013-11-02 21:55:36 +01:00
Ms2ger
8c388f6bd4
Rewrite DocumentType::new to current standards.
2013-11-02 21:34:44 +01:00
Ms2ger
655a2099ef
Rename handle_newable_element to handle_element.
2013-11-02 21:14:15 +01:00
Ms2ger
7700a892fc
Cleanup build_element_from_tag's signature.
2013-11-02 21:13:37 +01:00
Ms2ger
b4559334bb
Introduce HTMLElement::new.
2013-11-02 21:05:37 +01:00
Ms2ger
4ac0dc1bfd
Use HTMLHtmlElement::new in parse_html.
2013-11-02 20:45:22 +01:00
Ms2ger
375af8d437
Remove the now-unused handle_element macro.
2013-11-02 19:40:48 +01:00
Ms2ger
9e236a3dfd
Introduce HTMLAnchorElement::new.
2013-11-02 18:49:44 +01:00
Ms2ger
f15620313a
Introduce HTMLAppletElement::new.
2013-11-02 18:44:20 +01:00
Ms2ger
05162f16aa
Introduce HTMLAreaElement::new.
2013-11-02 18:40:15 +01:00
Ms2ger
d3db3b9f72
Introduce HTMLBaseElement::new.
2013-11-02 18:36:54 +01:00
Ms2ger
74a522b89a
Introduce HTMLBRElement::new.
2013-11-02 18:30:25 +01:00
Ms2ger
8796ca5c02
Introduce HTMLBodyElement::new.
2013-11-02 18:26:39 +01:00
Ms2ger
0d56584561
Introduce HTMLButtonElement::new.
2013-11-02 18:22:35 +01:00
Ms2ger
74312da1ba
Introduce HTMLCanvasElement::new.
2013-11-02 18:18:29 +01:00
Ms2ger
4d706984e1
Introduce HTMLDataElement::new.
2013-11-02 13:03:16 +01:00
Ms2ger
f81ed712a8
Introduce HTMLDataListElement::new.
2013-11-02 12:58:32 +01:00
Ms2ger
0113717d24
Introduce HTMLDirectoryElement::new.
2013-11-02 12:53:45 +01:00
Ms2ger
4d7b0a5e52
Introduce HTMLDivElement::new.
2013-11-02 12:50:15 +01:00
Ms2ger
dea0f088de
Introduce HTMLDListElement::new.
2013-11-02 12:27:23 +01:00
Ms2ger
7290e75c6b
Introduce HTMLEmbedElement::new.
2013-11-02 12:15:51 +01:00
Ms2ger
f3b1cabf32
Introduce HTMLFieldSetElement::new.
2013-11-02 12:10:27 +01:00
Ms2ger
a8578701a8
Introduce HTMLFontElement::new.
2013-11-02 12:05:06 +01:00