Commit graph

529 commits

Author SHA1 Message Date
Shing Lyu
6df9b7fd3a Bug #1820, add the optional "type" parameter to Blob 2015-01-01 16:23:21 +08:00
ProgramFOX
18d8ee6ce0 Added readonly flag for CSSStyleDeclaration 2014-12-28 17:39:07 +01:00
Bruno de Oliveira Abinader
5afcf3ef65 Implement DOMTokenList.toggle 2014-12-26 14:55:27 -04:00
Bruno de Oliveira Abinader
2cfb4648ce Implement DOMTokenList.remove 2014-12-26 14:55:27 -04:00
Bruno de Oliveira Abinader
aa29dc195d Implement DOMTokenList.add 2014-12-26 14:55:27 -04:00
bors-servo
0e6304dcf7 auto merge of #4467 : servo/servo/dataset, r=Ms2ger 2014-12-25 02:27:43 -07:00
Adam Sunderland
674fe910c1 Add GetPropertyPriority to CSSStyleDeclaration
Tweak getPropertyPriority to match recommendations

Adding Tests for Style Priority

Use else if

Adding Content Test for GetPropertyPriority

Revert "Adding Tests for Style Priority"

This reverts commit 8666a37f833b06c3e43f27acd8a9678e94425e55.
2014-12-23 11:41:33 -06:00
ProgramFOX
07d37af37e Implemented CSSStyleDeclaration.setPropertyPriority
Implemented CSSStyleDeclaration.setPropertyPriority, resolves #4433
2014-12-23 17:14:45 +01:00
Bruno de Oliveira Abinader
57c520d8cf Implement HTMLElement.dataset (fixes #2974). 2014-12-23 14:24:06 +01:00
Ms2ger
dc63735ca7 Revert PR #4038 for causing WPT failures. 2014-12-23 09:53:12 +01:00
Bruno de Oliveira Abinader
628ee92d73 Implement HTMLElement.dataset
Make DOMStringMap use related Element's custom attributes values.
2014-12-19 14:07:43 -04:00
Josh Matthews
0a54665444 Add missing supported CSS properties. 2014-12-18 12:54:03 -05:00
Josh Matthews
c8557c44a9 Merge CSS2Properties and CSSStyleDeclaration. 2014-12-18 12:54:03 -05:00
Josh Matthews
3cfe8ab53e Address review comments. 2014-12-18 12:54:02 -05:00
Josh Matthews
9d82e06e64 Implement RemoveProperty, SetProperty, and supported property indices. 2014-12-18 12:54:02 -05:00
Josh Matthews
abca00009c Add z-index support. 2014-12-18 12:54:02 -05:00
Josh Matthews
5ca61c00b9 Add a ton of properties and improve a bunch of serialization. 2014-12-18 12:54:02 -05:00
Josh Matthews
2e14b653bf Add a style property to HTMLElement. 2014-12-18 12:54:02 -05:00
Josh Matthews
2cfa8e85a6 Stub in some uses of getPropertyValue and sketch out its implementation. 2014-12-18 12:54:02 -05:00
Josh Matthews
4da0ca8ace Add stub CSS2Properties type. 2014-12-18 12:54:02 -05:00
Cameron Zwarich
1c5d58180d Add the basic CSSStyleDeclaration CSSOM interface.
This just includes the .webidl file (with some of the functionality
commented out) and the stub implementations for the bindings.

This is another step towards #1721.
2014-12-18 12:54:02 -05:00
Matthew Rasmus
38e4d86b14 Implements DefaultChecked and resets of checkboxes 2014-12-16 11:34:04 -08:00
Matthew Rasmus
7e0c39a82d Implements FormControl for HTMLTextAreaElement 2014-12-16 11:34:04 -08:00
Matthew Rasmus
f0ce2af89c Implements basic form resetting
What can this do? Reset `<input type=text>` fields back to their default
value through a call to a form's reset method. That's all for now!

Fixes compile error after rebase
2014-12-16 11:33:56 -08:00
Matthew Rasmus
f932a6947a Implements HTMLInputElement.defaultValue
...and changes SetValue to update the input text instead of the content
attr.

Also includes a comment summarizing everything I currently know with
respect to an input elements checkedness vs its IDL attributes vs its
content attributes.
2014-12-16 11:06:56 -08:00
Edit Balint
3036c8d21d Fixed codegen error regarding Uint8ClampedArray 2014-12-16 11:03:01 +01:00
bors-servo
d2a67abea9 auto merge of #4108 : shinglyu/servo/blob, r=jdm
Let's build this incrementally. I implemented a `Blob` that can hold a `DOMString`, and has `size` attribute and `slice(...)` method. I'll finish the rest in later PRs.
2014-12-09 08:43:08 -07:00
Shing Lyu
f2885b8fc7 Issue #1820 - Improve the Blob implementation 2014-12-09 22:52:19 +08:00
bors-servo
7d4ec33375 auto merge of #4298 : Manishearth/servo/zirak-link-attrs, r=Manishearth
Carried over from #4248

Critic review: https://critic.hoppipolla.co.uk/r/3392
2014-12-08 23:30:59 -07:00
Zirak
a586e05e83 Bound several link properties.
Specifically: href, rel, media, hreflang and type.
2014-12-09 11:38:51 +05:30
ProgramFOX
6104d5105f Implemented Document#inputEncoding
Resolves #4252
2014-12-08 18:22:29 +01:00
Manish Goregaokar
e7b3caa386 Add oninput/onchange so tests work 2014-12-05 18:49:34 -08:00
Manish Goregaokar
c89ec3910f Hook up synthetic click activation to script_task and <>.click() 2014-12-05 18:33:03 -08:00
Manish Goregaokar
14a6e54371 Move InputCheckbox to Activatable 2014-12-05 18:32:13 -08:00
Manish Goregaokar
7d51a543d8 Implement form control mutability, rename FormOwner -> FormControl 2014-12-05 18:32:11 -08:00
Matthew Rasmus
29241699fd Implements multi line text input for TextArea 2014-12-05 12:21:31 -08:00
Matthew Rasmus
fd65b5f438 Implements some HTMLTextAreaElement attributes
These attributes all reflect their own related content values, with the
exception of defaultValue, which acts as an alias for its IDL
textContent attribute.

Many of these do have default values and constraints which are currently unimplemented.
2014-12-05 12:21:31 -08:00
bors-servo
0065c230da auto merge of #4230 : jdm/servo/errorreporter, r=jdm
Rebased from #3822.
2014-12-05 02:28:09 -07:00
Matt Brubeck
cddc6923d4 Implement the HTMLScriptElement.src setter
Fixes #1113.
2014-12-04 21:27:34 -08:00
Ronak Nisher
cbed366bea added ErrorEvent WebIDL and errorevent.rs 2014-12-04 21:22:15 -08:00
nkdalmia
f6fb9f862d Implement Window.sessionStorage: Storage Task, Storage Methods (excluding Storage event, QuotaExceededError) 2014-12-03 18:31:50 -05:00
aakashjain
5a30bd00cb Implemented hidden, removed corresponding passed tests 2014-11-28 17:39:30 +05:30
Hinali Marfatia
b1d6041420 Implement a basic WebSocket interface. 2014-11-25 15:43:22 +01:00
Achal Shah
23ed1f705b Implement HTML{Anchor,Area,Link}Element.relList.
https://github.com/servo/servo/issues/3994
2014-11-23 23:37:13 -08:00
Rohan Prinja
4b754bd457 implement Document#createAttribute 2014-11-23 14:51:04 +05:30
Matthew Rasmus
73721cd189 Implement Attr#nodeValue
Fixes #4047
2014-11-20 13:18:10 -08:00
Zachary Newman
2399a1449d Implement DOMImplementation.hasFeature
Fixes #4010.
2014-11-18 09:00:45 -05:00
Mukilan Thiyagarajan
4b2b0d0723 Allow passing arguments to setTimeout/setInterval callbacks 2014-11-15 18:32:12 +05:30
Mukilan Thiyagarajan
05bd182538 Fix binding generation for Callback Functions and Callback Interfaces 2014-11-15 18:29:48 +05:30
Tomasz Kołodziejski
af30484f2a Add contentDocument support for HTMLIFrameElement. Fixes #3808. 2014-11-13 22:45:46 -08:00