Commit graph

455 commits

Author SHA1 Message Date
Arnaud Marant
77f52d2eab Issue #10574 Use the document base url in img
add a test with base path set to the resources path and an img with a cat and the reference directly to the image
2016-04-15 21:37:25 +02:00
Stephen (Ziyun) Li
52c6fd5b03
Use the document base url when resolving iframe URLs 2016-04-15 00:02:45 -04:00
Yoav Alon
5e3dcae71f Implement the table section IDL attributes for HTML tables 2016-04-12 18:35:55 +03:00
Ms2ger
299ad0f9d0 Update web-platform-tests to revision d011702f368b88b3bae86e7a8fd2ddd22e18b33c 2016-04-12 10:47:32 +02:00
Corey Farwell
3ebf43af3a Add WPT test for 'align' attribute on '<hr>'. 2016-04-11 19:47:44 -04:00
Shiroy
ee9bb1f3c6 Avoid script execution when not found
Fix #8391
2016-04-09 09:57:35 +02:00
bors-servo
c631fcf96f Auto merge of #10388 - autrilla:dom-legend-form, r=emilio
Added .form property for legend tag

r? @emilio

<!-- Reviewable:start -->
---
This change is [<img src="https://reviewable.io/review_button.svg" height="35" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/servo/servo/10388)
<!-- Reviewable:end -->
2016-04-06 22:30:25 +05:30
Adrian Utrilla
a8f9887d86 Added .form property for legend tag 2016-04-06 17:42:24 +02:00
Hugo Thiessard
c39c7533ca Issue #10284 Ignore alternate stylesheets 2016-04-05 23:57:39 +02:00
James Graham
78369e95cf Update web-platform-tests to 5582e4d2bfcfd1fa9f105406b143170ee2af7db1 2016-04-01 13:38:57 +02:00
askalski
89b8499df8 Implement encoding determination for external scripts. 2016-03-18 16:51:25 +01:00
Saurav Sachidanand
0b593759df Resets selection in textinput when its content is changed.
Adds a wpt test as well.
2016-03-16 22:20:22 +05:30
Ms2ger
a91433f0c8 Update web-platform-tests to revision 66c4613f823c4384c78ada77346eda17bb128947 2016-03-15 16:34:24 +01:00
Keith Yeung
084e86daf2 Add test for get action URL planned navigation 2016-03-11 20:33:07 -05:00
bors-servo
8bdffa25f9 Auto merge of #9755 - jdm:handlerreturn, r=jdm
use return value of invoking event handlers to cancel the event

Rebased from #8707. Fixes #8490. We can modify the code and test as necessary whenever we make a decision about https://github.com/whatwg/html/issues/423 in the future.

<!-- Reviewable:start -->
[<img src="https://reviewable.io/review_button.svg" height="40" alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/9755)
<!-- Reviewable:end -->
2016-02-27 07:10:50 +05:30
Anthony Ramine
b8ae5897f1 Implement Element.getAttributeNames 2016-02-26 19:15:11 +01:00
João Oliveira
b60d668908 use return value of invoking event handlers to cancel the event 2016-02-26 10:17:57 -05:00
Eli Friedman
7b671d13a0 Use presentation hints correctly for the dimensions of <img>.
Mostly straightforward; includes some extra fixes to make `<canvas>`
work the same way as `<img>` for reflow.
2016-02-25 14:04:06 -05:00
Ms2ger
62a9bebeef Update web-platform-tests to revision 7ed49cff4d031720f829c01df837ed7a09ad5c60 2016-02-24 11:04:43 +01:00
Peter
e39e59ef18 #1716 The indicated part of the document.
Interactive test for fragid resolution.

    Added HTML tests for scrolling to fragid

    Applied algorithm from whatwg spec
    https://html.spec.whatwg.org/multipage/#the-indicated-part-of-the-document

    Changes following code review
2016-02-17 00:51:46 +00:00
Ms2ger
e8ed816728 Update web-platform-tests to revision 95aad3bd9b82b5c65d84d53517b65ba084de9394 2016-02-12 09:41:14 +01:00
Josh Matthews
2796a4dfa8 Compile raw inline event handlers lazily. Resolves #8489. 2016-02-11 15:44:52 +01:00
Josh Matthews
d6ea4b60a4 Make location_reload.html not trigger resource exhaustion. 2016-02-10 09:20:05 -05:00
Ms2ger
6ce5b7527a Ensure that base_multiple.html fails rather than times out in the typical failure case. 2016-02-10 09:20:04 -05:00
Ms2ger
0f383a50a1 Rewrite and clarify base_multiple.html. 2016-02-10 09:20:03 -05:00
Ms2ger
73bc5cf1b8 Update web-platform-tests to revision 7f2f85a88f434798e9d643427b34b05fab8278c6 2016-02-01 17:25:22 +01:00
Jeff Harrison
d4fe40089b Add onresize handler to GlobalEventHandlers
Refs: https://github.com/servo/servo/issues/7996
Rebased: https://github.com/servo/servo/pull/8006
2016-01-29 18:22:52 -05:00
Joshua Holmer
75d258f866 Update HTMLFormElement.length to be of type unsigned long
Fixes #9402
2016-01-22 12:09:12 -05:00
Chandler Abraham
1ee9ccba21 add origin to location and url api 2016-01-21 11:06:41 -08:00
James Graham
7e8624d921 Update web-platform-tests to revision 0d9238c8062f05a55898a0cb60dc0c353794d87a 2016-01-21 10:28:30 +00:00
Ms2ger
1f5d8fedd4 Update web-platform-tests to revision 78862c14a70cabb48c685144666912f08e726390 2016-01-18 13:24:36 +01:00
Corey Farwell
1ff1ec69dd HTMLFormElement::Elements should honor [SameObject] attribute
Ideally, this would get tested by web-platform-tests, but that has yet
to be implemented:

https://github.com/w3c/web-platform-tests/issues/2462
2016-01-10 18:27:07 -05:00
Ying-Ruei Liang (KK)
74905f0f3c Invalid type attribute for HTMLInputElement now fallback as text type (fixes #8773) 2016-01-06 10:56:00 +08:00
bors-servo
0d52170f35 Auto merge of #9054 - frewsxcv:parse-non-zero-dimension, r=eefriedman
Implement non-zero dimension attribute parsing

Fixes #8445

The only attributes I found that we have implemented that uses non-zero
dimenion attributes:

* `width` for `<td>` and `<th>` (table cells)
* `width` for `<table>`

I updated these implementations to use the new non-zero dimension
attribute parsing and added associated regression tests.

<!-- Reviewable:start -->
[<img src="https://reviewable.io/review_button.png" height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/9054)
<!-- Reviewable:end -->
2015-12-30 05:26:56 +05:30
Josh Matthews
7693b03468 Make button elements activatable. Fixes #4837. Fixes #8101. 2015-12-29 10:45:04 -05:00
Corey Farwell
ba659cb99c Implement non-zero dimension attribute parsing
Fixes #8445

The only attributes I found that we have implemented that uses non-zero
dimenion attributes:

* `width` for `<td>` and `<th>` (table cells)
* `width` for `<table>`

I updated these implementations to use the new non-zero dimension
attribute parsing and added associated regression tests.
2015-12-24 13:20:43 -08:00
David Zbarsky
84ec9c4266 Handle toDataURL with no context 2015-12-24 11:48:04 -08:00
Ms2ger
8ea56eabaa Update web-platform-tests to 887399d3d0a85d0e27a6688ae384459376adf7ca 2015-12-21 14:30:03 +01:00
Ms2ger
cd00f312a3 Update web-platform-tests to revision 0bb3d73f26aa5a21326b6c1c7aaf35029222223f 2015-12-16 16:58:03 +01:00
Ms2ger
9aa1b1e408 Update web-platform-tests to revision 5dbe45af3ad3a933c03187c72f1c12cbe2877703 2015-12-10 09:38:01 -05:00
Sam Gibson
7ba43913c2 Uses assert_throws instead of explicit try/catch 2015-12-03 14:01:00 +11:00
Sam Gibson
6d1624f9d0 Add additional WPT tests for maxlength parser set 2015-12-03 14:00:57 +11:00
Sam Gibson
32627a475a Add maxlength manual test for input 2015-12-03 14:00:56 +11:00
Corey Farwell
320263199f Implement attribute 'fgColor' on 'document'
The 'text' attribute was implemented on '<body>' in #7841
2015-11-30 18:19:07 -05:00
Ms2ger
3bbee99cdb Update web-platform-tests to revision a3b0fadc7f5001bbe52c65e0a354c454981423a3 2015-11-30 13:44:18 +01:00
Ms2ger
3a79c9b53f Update web-platform-tests to revision ee40b886c701ffa25a673240cabdedd59ee3ace4 2015-11-24 13:35:04 +01:00
Tom Schuster
0e0e051f3f Implement document.domain getter 2015-11-23 15:45:02 -05:00
Eli Friedman
8c93046b1c Add test for URL-encoded form submission.
This turned out to be a little more complicated than I was hoping...
but I can't really think of a better way to do this.
2015-11-21 15:30:11 -08:00
Ms2ger
32efe41299 Update web-platform-tests to revision 5a754b40cd49c0404863c431b58cc311dc5d167c 2015-11-17 10:54:05 +01:00
Corey Farwell
30ea772939 Make util::str::parse_length work with floats 2015-11-14 16:47:10 -05:00