Josh Matthews
d590a327bd
Implement WebIDL union support.
2014-02-24 15:56:38 -05:00
Josh Matthews
d0bfdbf150
Initial unmodified dump of Gecko's union codegen.
2014-02-24 15:56:38 -05:00
bors-servo
ffcf3b2905
auto merge of #1591 : jdm/servo/jsmanaged, r=Ms2ger
2014-02-24 15:19:51 -05:00
Josh Matthews
625325434b
Implement JSManaged for DOM objects.
2014-02-24 15:16:42 -05:00
tgkokk
cd36b7e0f6
Fix #922 : Bindings generator generates .pyc files
2014-02-24 21:02:05 +02:00
Sankha Narayan Guria
47e6e6ec8f
Be more explicit in casts of generated bindings
2014-02-23 03:03:48 +05:30
Ms2ger
59184bf6e1
Move DOMString into servo_util.
2014-02-14 12:48:51 +01:00
bors-servo
1662e7a02f
auto merge of #1666 : ozten/servo/issue-506-add-basic-console, r=Ms2ger
...
Here is an attempt to fix Issue#506.
I couldn't figure out how to do variadic arguments to `console.log`, but I did test calling `console.log('foo', 'bar', 'baz')` and it prints the first argument and doesn't error out, which is nice.
window.console is not a web standards. I did the popular functions, but not some of the newer ones documented [on MDN](https://developer.mozilla.org/en-US/docs/Web/API/console ).
This PR will allow more pages to load properly, where developers have left in window.console calls.
2014-02-11 13:01:50 -05:00
Austin King
b1b481f3f3
Adding most commonly used parts of window.console. Fixes Issue#506. r=Ms2ger
2014-02-11 09:55:29 -08:00
Bruno de Oliveira Abinader
4d4495b015
Implement Node.isEqualNode
...
Spec:
http://dom.spec.whatwg.org/#dom-node-isequalnode
Closes #1645 .
2014-02-10 11:01:12 -04:00
Bruno de Oliveira Abinader
99b3b144d4
Implement Node.contains
...
Spec:
http://dom.spec.whatwg.org/#dom-node-contains
Closes #1647 .
2014-02-09 10:39:07 -04:00
Bruno de Oliveira Abinader
ac8c659d2b
Implement document.createProcessingInstruction
...
Spec:
http://dom.spec.whatwg.org/#dom-document-createprocessinginstruction
This is a sub-task for #1428 .
2014-02-06 16:11:31 -04:00
Bruno de Oliveira Abinader
aa4b5bb948
Implement ProcessingInstruction DOM interface
...
Spec:
http://dom.spec.whatwg.org/#interface-processinginstruction
Closes #1619 .
2014-02-06 14:41:55 -04:00
Adrien Bustany
2254a9e923
script: Pass the correct parent node to pre_insert in insertBefore
...
Closes #1572 .
2014-02-05 16:27:22 +01:00
Bruno de Oliveira Abinader
0c6de1bb34
Basic skeleton for DOMException
...
Spec:
http://dom.spec.whatwg.org/#domexception
This is a subtask for #1542 .
2014-01-29 14:58:22 -04:00
Bruno de Oliveira Abinader
a58838e14b
Implement DOMImplementation::createHTMLDocument
...
Spec:
http://dom.spec.whatwg.org/#dom-domimplementation-createhtmldocument
Closes #1510 .
2014-01-20 15:20:23 -04:00
Youngmin Yoo
0523a7dfe9
Move webidl files to dom/webidl
2014-01-20 12:56:23 +09:00
Bruno de Oliveira Abinader
3b82b11054
Implement Node::replaceChild()
...
Implements Node:replaceChild() according to spec below:
http://dom.spec.whatwg.org/#concept-node-replace
Closes #1430 .
2014-01-16 10:25:17 -04:00
Bruno de Oliveira Abinader
0d35d4932b
Implement DOMImplementation::createDocumentType
...
Implementation according to spec:
http://dom.spec.whatwg.org/#dom-domimplementation-createdocumenttype
Closes #1489 .
2014-01-15 14:56:14 -04:00
Bruno de Oliveira Abinader
60dd40f412
Add DOMImplementation skeleton
...
Creates a DOMImplementation struct corresponding to DOMImplementation
WebIDL. Also implements a getter for Document::implementation.
Closes #1486 .
2014-01-14 13:20:36 -04:00
James Graham
7aee1cae84
Implement innerHTML getter for HTML documents
...
XML case is not yet implemented.
2014-01-14 13:10:05 +00:00
Bruno de Oliveira Abinader
742ad9cd24
Implement Document::doctype
...
Closes #1482 .
2014-01-13 15:45:34 -04:00
Tetsuharu OHZEKI
7a9ecffaa0
Implement Element.removeAttribute()/removeAttributeNS().
2014-01-13 23:12:08 +09:00
bors-servo
943ab4a4f0
auto merge of #1473 : metajack/servo/rustup-20131219, r=jdm
2014-01-12 19:16:21 -08:00
Jack Moffitt
a7ef1cd35e
Upgrade to latest Rust.
2014-01-12 19:45:45 -07:00
Bruno de Oliveira Abinader
b5eba001ef
Fix to avoid attribute name clash between Document/HTMLDocument
...
Use children() instead of traverse_preorder(), and avoid having
GetHead() in both Document and HTMLDocument.
Closes #1465 .
2014-01-08 16:44:47 -04:00
Bruno de Oliveira Abinader
17b35d52ff
Implement Document::head()
...
Implementation details according to the specification below:
http://www.whatwg.org/specs/web-apps/current-work/#dom-document-head
This patch is for:
https://github.com/mozilla/servo/issues/1465
2014-01-07 15:51:45 -04:00
Bruno de Oliveira Abinader
ce434dfb3e
Implement Document's 'body' attribute
...
Implement Document's 'body' attribute (getter and setter). Proper
implementation of setter requires Node::ReplaceChild(), which is
currently a stub and will be done on a later step.
This patch is for:
https://github.com/mozilla/servo/issues/1428
2013-12-20 10:58:03 -04:00
Patrick Walton
436b1e891d
script: Eliminate the phantom type in Node
, as it is no longer needed
...
for enforcing layout memory safety.
2013-12-17 18:07:41 -08: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
Ms2ger
29a7405b4e
Report exceptions to JS when the DOM implementation fails.
...
As a bonus, adds some debugging statements.
2013-12-05 16:14:02 +01:00
Keegan McAllister
5157eac238
Warning police
...
And fix some formatting.
2013-11-25 13:29:34 -08:00
bors-servo
f6646e17bf
auto merge of #1270 : evilpie/servo/url, r=jdm
...
I wasn't sure how to store @window in Location, so I just made it use @Page for now. I was going to implement stringifier, but sadly some of the webidl stuff is like 1 year out of sync.
2013-11-24 15:52:04 -08:00
Tom Schuster
ccc7fa7be0
basic location
2013-11-24 22:40:24 +01:00
Tom Schuster
73e67568c1
Add FormData constructor
2013-11-24 22:37:28 +01:00
Tom Schuster
586dd6aed6
Add some more Blob methods/types
2013-11-15 17:56:11 +01:00
Tetsuharu OHZEKI
f5ef4365f4
Stop passing DOMStrings via borrowed pointer. ( #1201 )
2013-11-14 20:35:36 +09: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
Ms2ger
793d87f07d
Rewrite jsval_to_str and introduce jsval_to_domstring.
2013-11-09 14:49:15 +01:00
Ms2ger
610d1649cd
Introduce jsid_to_str to simplify jsval_to_str callers that have an id.
2013-11-09 14:05:53 +01:00
Ms2ger
edd9c1d5eb
Remove WrapNativeParent and nearby cleanup.
2013-11-06 21:56:36 +01:00
Ms2ger
4074412107
Pass a Reflector to WrapNewBindingObject instead of a Reflectable, and rename it GetReflector.
2013-11-06 17:52:59 +01:00
Josh Matthews
bb97fd13f3
Add Event and EventTarget hierarchy via gross AbstractFoo mechanism.
2013-11-05 12:58:28 -05:00
Josh Matthews
7ecf5abbbd
Generate code for handling callbacks. Implement add/removeEventListener and hacky dispatchEvent proof-of-concept.
2013-11-05 12:58:28 -05:00
Josh Matthews
06b1db8818
Import unmodified callbacks-related codegen source from Gecko.
2013-11-05 12:57:02 -05:00
bors-servo
352acbb833
auto merge of #1163 : metajack/servo/kmc-rust-upgrade, r=kmcallister
...
Most work courtesy of @kmcallister.
I already reviewed Keegan's work, so just the last two commits need attention.
2013-10-31 16:34:14 -07:00
Keegan McAllister
e2b7885b73
fmt! -> format!
2013-10-31 14:58:55 -06:00