Commit graph

5585 commits

Author SHA1 Message Date
bors-servo
c7e210f24c Auto merge of #5005 - jdm:mime-sniffing, r=jdm
This rebases and integrates #4209, removing the sniffer task (turns out it wasn't a great idea), and adds a `--sniff-mime-types` command line flag to enable sniffing for file:// and http:// resources. Tested against a random picture file on my harddrive. The actual MIME sniffing implementation can be extracted into a separate library separately.
2015-04-07 12:48:06 -05:00
Josh Matthews
23ae940abf Enable MIME sniffing for HTTP loads. 2015-04-07 13:25:15 -04:00
bors-servo
e521860a0e Auto merge of #5490 - nox:namednodemap, r=jdm 2015-04-07 09:31:20 -05:00
Mátyás Mustoha
6da2ce9b1b Canvas: added lineWidth support. 2015-04-07 16:10:29 +02:00
Anthony Ramine
5d58dc8f54 Implement NamedNodeMap::getNamedItem*() (fixes #5454) 2015-04-07 13:42:56 +02:00
bors-servo
07520de970 Auto merge of #5552 - pcwalton:block-formatting-context-cleared-floats, r=glennw
The speculated inline-size of the preceding floats was forced to zero at
the wrong time if the float was itself cleared, causing it to overwrite
the speculated value. Shuffling the code around a bit fixes the problem.

r? @glennw
2015-04-07 04:51:13 -05:00
bors-servo
1fd609d198 Auto merge of #5525 - dhodder:master, r=jdm
An empty DOM interface for HTMLDialogElement

r?
2015-04-07 02:50:04 -05:00
Tim Cuthbertson
2de05450df wpt: Update "running the tests manually" instructions 2015-04-07 16:51:11 +10:00
bors-servo
45b40d49a5 Auto merge of #5338 - ChrisParis:outerhtml, r=jdm
The first commit refactors the fragment parsing and innerHTML setter. This makes the code mirror the structure of the spec more closely, and also prepares for reusing code with the outerHTML setter.
2015-04-07 01:15:45 -05:00
bors-servo
d0acc33bf2 Auto merge of #5423 - yodalee:issue5397-location-pathname, r=jdm
issue #5397
2015-04-06 23:59:18 -05:00
Patrick Walton
e10af4fc98 layout: Correctly take the inline size of cleared floats into account
when estimating the inline size of block formatting contexts.

The speculated inline-size of the preceding floats was forced to zero at
the wrong time if the float was itself cleared, causing it to overwrite
the speculated value. Shuffling the code around a bit fixes the problem.
2015-04-06 17:59:14 -07:00
Nathan Climer
44930b0fb0 Implement MIME sniffing. 2015-04-06 19:01:59 -04:00
Chris Paris
2cc5bad21e Implement Element.outerHTML setter 2015-04-06 12:56:55 -10:00
Anthony Ramine
dd88bcddc4 Fix Element::RemoveAttribute*() 2015-04-06 14:12:56 +02:00
Anthony Ramine
c557736d26 Fix xml_name_type()
Names with a trailing colon are not qualified names.
2015-04-06 14:12:20 +02:00
Anthony Ramine
1906f835b9 Fix Element::GetAttribute()
Local names should not be used to get a attribute without providing a namespace.
2015-04-06 14:12:20 +02:00
Dave Hodder
d00b9b2fef Add basic HTMLDialogElement interface 2015-04-05 13:48:48 +01:00
Dave Hodder
78de6b2db1 Add basic HTMLDialogElement interface 2015-04-04 19:59:37 +01:00
Matt Brubeck
791fa3757d Implement the :focus pseudo-class selector
Fixes #5460. This supports for simple focusable elements that are their own
DOM anchors, like text `input` fields.
2015-04-04 10:57:11 -07:00
Matt Brubeck
ad6c511a5e Basic element.focus and blur methods
Fixes #5462.
2015-04-04 10:57:11 -07:00
yodalee
4ffaaf2785 modify tests metadata
pass in XMLHttpRequest
fail in members.html
2015-04-04 20:08:14 +08:00
Mikko Vanhatalo
29387f6c4c Implemented HTMLInputElement placeholder attribute
+ modified HTMLInputElement.webidl to include placeholder
+ modified placeholder test expectations
2015-04-04 14:44:32 +03:00
James Graham
db104b738e Return correct exit codes. 2015-04-03 23:51:49 +01:00
James Graham
6b8aaf3c57 Update the README files to reflect the changes to the update procedure. 2015-04-03 23:29:22 +01:00
James Graham
d27cda44ce Update CSS tests expected data to revision 31d63cc79bd4c929ed582229e936d7b389f3e6ab 2015-04-03 23:29:21 +01:00
James Graham
92b8d158da Update web-platform-tests expected data to revision 0d318188757a9c996e20b82db201fd04de5aa255 2015-04-03 23:29:20 +01:00
James Graham
2c9faf5363 Update CSS tests to revision 31d63cc79bd4c929ed582229e936d7b389f3e6ab 2015-04-03 23:29:19 +01:00
James Graham
1a81b18b9f Update web-platform-tests to revision 0d318188757a9c996e20b82db201fd04de5aa255 2015-04-03 23:28:54 +01:00
James Graham
b2a5225831 Add support for running W3C CSS tests.
These are run through the same harness as the web-platform-tests.
2015-04-03 23:28:51 +01:00
James Graham
2bde318d24 Make the test-wpt mach command support all the command line arguments of wptrunner.
Also remove the shell script and ensure that default options are set in a single location
2015-04-03 23:28:51 +01:00
James Graham
0a7429f147 Put a copy of the wpt upstreaming scripts in-tree.
This is copied from gecko, which is slightly unfortunate. However it allows
committing changes to wpt directly in-tree and having them upstreamed in the
next update.
2015-04-03 23:28:51 +01:00
James Graham
168b81773e Put a copy of the wptrunner harness in-tree.
This is the same configuration as gecko and is convenient for making changes compared
to using releases from pypi
2015-04-03 23:28:51 +01:00
bors-servo
40fab8e362 auto merge of #5470 : bjwbell/servo/tab-in-pre, r=mbrubeck
Display tab characters as 4 spaces for pre and other elements that don't
compress whitespace.

Fixes https://github.com/servo/servo/issues/4651

@pcwalton r?
2015-04-03 04:18:42 -06:00
Bryan Bell
29852bb111 Show tabs in pre elements
Display tab characters as 8 spaces for pre and other elements that don't
compress whitespace.
2015-04-02 22:15:39 -07:00
bors-servo
dbd16932e6 auto merge of #5299 : mattnenterprise/servo/http_compression, r=jdm 2015-04-01 22:15:37 -06:00
bors-servo
54a6e08146 auto merge of #5483 : zerokarmaleft/servo/wpt_iframe_tests, r=jdm
Checking to see if I'm doing this as expected, so I have not yet removed a couple of files that now have passing tests.
2015-04-01 21:31:04 -06:00
Matt McCoy
818f1c5748 Closes #2587 Adding HTTP compression capability 2015-04-01 21:18:47 -04:00
bors-servo
e65e881e1b auto merge of #5472 : jdm/servo/advance, r=jdm
Rebased from #5035.
2015-04-01 16:45:40 -06:00
Edward Cho
d00bb057ba remove passing contentType wpt tests 2015-04-01 17:35:50 -05:00
Edward Cho
5f02b63f59 fixes #5468 2015-04-01 16:18:01 -05:00
Mátyás Mustoha
56303e21cc Canvas: added arcTo() support. 2015-04-01 21:20:05 +02:00
dhneio
069f53a25e Fix is_simple_advance check. Fixes #4614. 2015-04-01 12:11:56 -04:00
bors-servo
6824bc9324 auto merge of #5476 : servo/servo/load-failure-panic, r=jdm
Fixes #5365.
2015-04-01 07:51:46 -06:00
Adenilson Cavalcanti
4e9bb15ba7 Instead of panicking on broken url, break from the loop and return. 2015-04-01 15:30:33 +02:00
bors-servo
f25604c7f1 auto merge of #5474 : servo/servo/script-for-event, r=Ms2ger
...ne of them is present (fixes #5258).
2015-04-01 07:06:46 -06:00
Florian Eula
6288a468b9 Implement the onsubmit event handler (fixes #5396). 2015-04-01 13:15:06 +02:00
Keith Yeung
fdcf9618cb Handle the for and event attributes on a script element correctly when one of them is present (fixes #5258). 2015-04-01 12:43:17 +02:00
bors-servo
4846607e18 auto merge of #5469 : mbrubeck/servo/yodalee-issue4768-textencoder, r=jdm
This is a series of already-reviewed changes by @yodalee from #5025, rebased onto current servo master, with some fixups applied:

* Fixed build errors/warnings from the latest rust upgrade.
* Marked `tests/wpt/web-platform-tests/encoding/single-byte-decoder.html` as expecting CRASH.

I could not verify locally that the new test annotation is correct, since the test appears to hang rather than crash on my Linux box.  (Or maybe I just didn't wait long enough.)  If this crash isn't consistent, or if it takes a long time, maybe we should skip this test instead?

r? @jdm
2015-03-31 20:06:49 -06:00
bors-servo
15edd07ebd auto merge of #5471 : jdm/servo/avoidoom2, r=Ms2ger
...unner when RUST_BACKTRACE is enabled.

r? @Ms2ger
2015-03-31 19:00:52 -06:00
yodalee
9cd976a4e7 Implement TextEncoder
Fixes #4768.
2015-03-31 17:21:27 -07:00