Ms2ger
7c17970c21
Introduce HTMLIFrameElement::new.
2013-10-31 15:53:43 +01:00
Ms2ger
8e5cd9f3a8
Introduce HTMLHeadingElement::new.
2013-10-31 15:41:35 +01:00
Ms2ger
a972c470a7
Introduce HTMLTable{Data,Header}CellElement::new.
2013-10-31 15:41:35 +01:00
Ms2ger
618447445f
Introduce HTML{Audio,Video}Element::new.
2013-10-31 15:41:30 +01:00
Tetsuharu OHZEKI
98c77a86c4
HTMLDirectoryElement should be 'dir'. Fix #1159
2013-10-31 22:55:08 +09:00
Ms2ger
801348270c
Address review comments and replace add_to_doc with node_removed and node_inserted functions.
2013-10-30 11:13:58 +01:00
Ms2ger
2ca1eede9a
Implement insertBefore and reimplement appendChild.
2013-10-29 21:48:28 +01:00
bors-servo
2c3d5ec79f
auto merge of #1138 : Ms2ger/servo/reflect-HTMLUnknownElement, r=jdm
...
@jdm: I think we should move nodes more in line with the rest of the DOM. How do you feel about something like this?
2013-10-29 12:17:44 -07:00
Patrick Walton
42092921c1
Optimize reflow by changing enums to traits and inlining more
2013-10-28 13:22:26 -07:00
Ms2ger
49b8c7c9b7
Implement HTMLUnknownElement::new.
2013-10-26 13:24:56 +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
Marcos Caceres
faf53fd05c
Implemention of HTMLMainElement
2013-10-18 22:03:58 +01:00
Keegan McAllister
5b1fede394
Factor out a convenience function load_whole_resource
...
Also remove an unnecessary spawn in js_script_listener, and remember the final
script URL after redirects.
2013-10-17 19:28:43 -07:00
bors-servo
ebe1c1353c
auto merge of #1077 : kmcallister/servo/jsstr, r=jdm
...
This doesn't resolve the big questions of how Servo will represent strings; it's just about doing the conversion correctly for our existing types.
2013-10-17 16:34:30 -07:00
bors-servo
6db57e6f72
auto merge of #1075 : SimonSapin/servo/newnewcss, r=kmcallister
...
I believe this is all the preparatory work discussed in #1006 and #1057 : The new 'style' crate implements the whole style system (including parsing, matching and cascading) and only depends on cssparser and util, so that gfx, script and main can all depend on it.
Next: porting the layout code to this. (Really, this time! I think.)
2013-10-16 15:37:42 -07:00
Keegan McAllister
279ae53b7b
Pass scripts as ~str to support non-ASCII string literals etc.
...
Of course scripts on the Web are not always encoded as UTF-8 and we will have
to deal with that at some point.
2013-10-16 14:59:05 -07: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
Tetsuharu OHZEKI
320f7985b0
Clean up macros to handle html tags.
2013-10-16 20:38:59 +09:00
Tetsuharu OHZEKI
776ab67905
Rename the element field of the DOM Node hierarchy.
...
See #924
2013-10-16 00:20:20 +09:00
Tetsuharu OHZEKI
0de35fdc2f
Implement HTMLTableDataCellElement & HTMLTableHeaderCellElement.
2013-10-15 22:37:06 +09:00
Tetsuharu OHZEKI
31b873789b
Handle th tag as HTMLTableCellElement. #1060
2013-10-15 20:22:32 +09:00
Keegan McAllister
f73e48b32f
Extract content type and character set from HTTP response headers
...
We don't use this information anywhere, yet.
2013-10-10 18:18:39 -07:00
Keegan McAllister
48af4e53a9
Refactor resource loader protocol to send metadata first
2013-10-10 18:18:39 -07:00
Ms2ger
04319fdb68
Issue #888 - Node's owner document should never be None.
2013-10-10 10:57:38 +02:00
Ms2ger
388f685549
Cleanup some code.
2013-10-07 16:30:34 +02:00
Keegan McAllister
1c6de361b7
Handle HTTP 3xx redirects
...
Fixes #973 .
2013-09-23 14:50:50 -07:00
Keegan McAllister
9bd0e2a3ac
Remove an unneeded helper function
2013-09-23 14:50:50 -07:00
Keegan McAllister
69473b6c9c
Make some debug prints more useful
2013-09-23 14:50:50 -07: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
Keegan McAllister
68ddc6b4ab
Make DOMString an alias for Option<~str>
...
Fixes #898 .
2013-09-18 14:46:42 -07:00
Josh Matthews
21b0fc35b6
Allow image prefetching to occur during parsing when no window or document is present. Fixes #939 .
2013-09-13 23:10:31 -07:00
Patrick Walton
76d288fe62
script: Implement image source setting from script and write a demo for this.
2013-09-12 18:03:11 -07:00
Josh Matthews
a410651fba
Make Element.set_attr require an AbstractNode so we can always downcast.
2013-09-12 14:40:00 -07:00
Josh Matthews
9640324721
Make sandboxed iframes run with different script tasks.
2013-09-11 11:57:40 -07:00
Jack Moffitt
227bb95213
Add document.createElement and document.createTextNode.
...
This re-uses the parser's node creation code. That could probably be put
somewhere nicer. Suggestions welcome!
2013-09-10 16:21:58 -06:00
Ms2ger
916d0253b3
Issue #561 - Execute inline JS.
...
This follows the approach of external scripts in executing tests all together after parsing finishes.
2013-09-04 21:38:35 +02:00
bors-servo
4cfcad0a0e
auto merge of #837 : saneyuki/servo/webidl, r=jdm
2013-09-03 10:46:00 -07:00
Tom Schuster
a0d900e1f6
Pass the javscript file url to the evaluate function
2013-08-31 20:07:08 -04:00
Tetsuharu OHZEKI
17e888bfea
Generate bindings for HTMLAudioElement, HTMLVideoElement.
2013-09-01 06:51:33 +09:00
Tetsuharu OHZEKI
d3108a898d
Generate bindings for HTMLTrackElement.
2013-08-31 20:00:26 +09:00
Tetsuharu OHZEKI
9919bae897
Generate bindings for HTMLLabelElement.
2013-08-31 20:00:26 +09:00
Tetsuharu OHZEKI
f7bc8beb18
Generate bindings for HTMLLegendElement.
2013-08-31 20:00:26 +09:00
Tetsuharu OHZEKI
e55b3d6b86
Generate bindings for HTMLPreElement.
2013-08-31 20:00:25 +09:00
Tetsuharu OHZEKI
22e02b573d
Generate bindings for HTMLTemplateElement.
2013-08-31 20:00:25 +09:00
Yusuke Suzuki
93fba253a2
Implement IDL based HTMLSmallElement binding
2013-08-31 01:00:05 +09:00
Josh Matthews
8070f02e39
Generate bindings for Comment and DocumentType.
2013-08-28 20:31:30 -04:00
Josh Matthews
1eb5eeb630
Generate bindings for HTMLUnknownElement.
2013-08-28 19:51:07 -04:00
Josh Matthews
e26a541eb2
Generate bindings for HTMLParamElement.
2013-08-28 17:53:36 -04:00
Josh Matthews
8693459b28
Generate bindings for HTMLOutputElement.
2013-08-28 17:47:29 -04:00