Ms2ger
b492a3e8b1
Update web-platform-tests to revision 7123012427f92f0dc38a120e6e86a75b6c03aab5
2015-10-31 16:21:44 +01:00
bors-servo
7512aa69c0
Auto merge of #8114 - nfallen:7695, r=eefriedman
...
Implement DOMStringMap::SupportedPropertyNames and NamedNodeMap::SupportedPropertyNames #7695
Here is a draft for issue #7695 with web platform tests.
Thanks for reviewing!
https://dom.spec.whatwg.org/#namednodemap
https://html.spec.whatwg.org/multipage/infrastructure.html#domstringmap
<!-- Reviewable:start -->
[<img src="https://reviewable.io/review_button.png " height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/8114 )
<!-- Reviewable:end -->
2015-10-31 08:04:08 +05:30
Nova Fallen
73c4af626a
Implement DOMStringMap::SupportedPropertyNames and NamedNodeMap::SupportedPropertyNames
2015-10-30 21:13:29 -04:00
Dongie Agnir
d561b4ffe9
Remove extra indent.
2015-10-24 19:14:31 -10:00
Dongie Agnir
fcfc3918a4
Update test.
...
Fix comments and test when size > 1.
2015-10-23 14:01:58 -10:00
Dongie Agnir
c070c7ad30
Update and correct tests.
2015-10-23 13:16:42 -10:00
Dongie Agnir
b1d6b0f797
Implement ask_for_reset for HTMLSelectElement.
...
Fixes #7774
2015-10-23 11:47:20 -10:00
Ms2ger
92e90e6633
Update web-platform-tests to revision 4b25d322ac6ed466f992669e5408b15d37d56436
2015-10-22 16:41:47 +02:00
Anthony Ramine
57c423a931
Update URL-related interfaces and their tests up to spec
...
The URL spec recently changed and the variour "mixins" interfaces are gone,
this commit updates our code and WPT accordingly.
The new expected failures related to HTMLAnchorElement and HTMLAreaElement's
attributes are due to their moving to the HTMLHyperLinkElementUtils interface,
which is not anymore in a separate <script class=untested> element.
2015-10-19 21:05:07 +02:00
Corey Farwell
1f58169263
Implement HTMLTableRowElement insertCell and deleteCell
2015-10-17 00:07:22 -04:00
bors-servo
55769b2fbf
Auto merge of #7829 - frewsxcv:htmltablecellelement-cellindex, r=Ms2ger
...
Implement HTMLTableCellElement::CellIndex
Extracted from #6936
<!-- Reviewable:start -->
[<img src="https://reviewable.io/review_button.png " height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/7829 )
<!-- Reviewable:end -->
2015-10-14 07:39:24 -06:00
Ms2ger
c8c377df9f
Update web-platform-tests to revision 4bba821de44da9ed47c2562f995a0da6eecc177b
2015-10-12 17:53:50 +02:00
Corey Farwell
3d383f21ae
Implement deleteRow and insertRow for <table> element
...
Continued from #6936
2015-10-11 09:47:46 -04:00
bors-servo
ab42ca4296
Auto merge of #7825 - eefriedman:div-align, r=mbrubeck
...
Fully implement the "align descendants" rule for div.
This adds -servo-left and -servo-right to complement -servo-center.
~~This intentionally doesn't try to address issue #7301.~~ Commit added to address #7301 .
<!-- Reviewable:start -->
[<img src="https://reviewable.io/review_button.png " height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/7825 )
<!-- Reviewable:end -->
2015-10-08 12:20:55 -06:00
Ms2ger
6e745b5a00
Avoid panicking in the implementation of HTMLOptionElement#text for non-element, non-text children.
2015-10-07 10:52:44 +02:00
bors-servo
42d45ad120
Auto merge of #7886 - jimberlage:7877/move-test, r=Ms2ger
...
Renames webstorage test
This should fix #7877 .
<!-- Reviewable:start -->
[<img src="https://reviewable.io/review_button.png " height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/7886 )
<!-- Reviewable:end -->
2015-10-06 11:13:28 -06:00
Corey Farwell
899f1cab58
Implement HTMLTableCellElement::CellIndex
...
Extracted from #6936
2015-10-06 10:46:02 -04:00
James Graham
bae87d193d
Update web-platform-tests to revision 7da6acfd668e66adae5ab4e2d389810d3b1460be
2015-10-06 12:16:35 +01:00
Jim Berlage
2fb66db401
Renames webstorage test
2015-10-05 21:53:46 -05:00
bors-servo
9eb0effaf6
Auto merge of #7750 - frewsxcv:html-table-section-element-rows, r=nox
...
HTMLTableSectionElement improvements
'thead' and 'tfoot' now create instances of HTMLTableSectionElement
HTMLTableSectionElement.rows has been implemented
<!-- Reviewable:start -->
[<img src="https://reviewable.io/review_button.png " height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/7750 )
<!-- Reviewable:end -->
2015-10-04 11:57:10 -06:00
Mathieu Rheaume
e7a3220bc1
Implement Storage::SupportedPropertyNames
2015-10-04 10:22:13 -04:00
Corey Farwell
adbcb5345c
HTMLTableSectionElement improvements
...
'thead' and 'tfoot' now create instances of HTMLTableSectionElement
HTMLTableSectionElement.rows has been implemented
2015-10-03 12:23:22 -04:00
Eli Friedman
69ca066802
Fully implement the "align descendants" rule for div.
...
This adds -servo-left and -servo-right to complement -servo-center.
This intentionally doesn't try to address issue #7301 .
2015-10-02 12:53:20 -07:00
David Zbarsky
4e64ff499b
Implement HTMLTableRowElement::Cells
...
Extracted from #6936
2015-10-01 20:09:48 -04:00
Corey Farwell
dec0031112
Implement <option> 'defaultSelected' and 'selected' attributes
...
Continued from #7743
2015-09-26 15:38:54 -04:00
Ms2ger
43a50e298a
Update web-platform-tests to revision 0159b3ec9ba5355a3340621226e02ae026effd7f
2015-09-22 19:58:47 +02:00
bors-servo
4dc986bca3
Auto merge of #7064 - paulrouget:reload, r=Ms2ger
...
Implement location.reload()
This is a naive implementation of `window.location.reload()`.
I'd appreciate any feedback.
I was wondering if it'd be better to implement `ConstellationMsg::Reload` instead of using `load_url`.
Also, what kind of test should I write?
<!-- Reviewable:start -->
[<img src="https://reviewable.io/review_button.png " height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/7064 )
<!-- Reviewable:end -->
2015-09-21 09:03:42 -06:00
Paul Rouget
e742e7e9bc
wpt test for location.reload()
2015-09-21 08:04:24 +02:00
Mathieu Rheaume
5f1b0e6a49
HTML Meta keyword nits in wpt webstorage files
2015-09-20 22:39:04 -04:00
Ms2ger
163009575a
Update web-platform-tests to revision 71a0d51d14d8b0f1b53cda3a7d39ef8765164485
2015-09-17 18:32:13 +02:00
Corey Farwell
be3352f379
Explicitly state 'blink' should create HTMLUnknownElement, like the spec
...
https://html.spec.whatwg.org/#other-elements,-attributes-and-apis:blink
2015-09-13 08:07:03 -04:00
Anthony Ramine
663f1d65e3
Fix tests in template-contents-owner-document-type.html
...
HTMLDocument isn't a thing anymore.
2015-09-08 10:28:22 +02:00
bors-servo
eaf90c0b1c
Auto merge of #7452 - nox:cleanup-attributes, r=nox
...
Introduce VirtualMethods::attribute_mutated()
<!-- Reviewable:start -->
[<img src="https://reviewable.io/review_button.png " height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/7452 )
<!-- Reviewable:end -->
2015-09-02 08:14:33 -06:00
Anthony Ramine
58e1bd0e57
Introduce VirtualMethods::attribute_mutated()
...
This replaces before_remove_attr(), after_remove_attr() and after_set_attr().
The virtual method takes the mutated attribute and an AttributeMutation value
to disambiguate between "attribute is changed", "attribute is added" and
"attribute is removed".
In the case of "attribute is changed", the mutation value contains a reference
to the old value of the mutated attribute, which is used to unregister outdated
named elements when the "id" attribute is changed on an element.
This greatly simplifies the handling of attributes, which in many cases don't
have any specific behaviour whether they are removed or changed or added. It
also fixes a few bugs where things were put in before_remove_attr() instead of
after_remove_attr() (e.g. when removing an href attribute from a base element).
A few helper functions in Element were also renamed and made private.
2015-09-02 15:45:38 +02:00
Ms2ger
538f8f0ef9
Update web-platform-tests to revision cf8340b5fae7b820788ffc31f8cc6b6b04978002
2015-09-02 11:52:24 +02:00
Simon Sapin
dcc8f63d52
Add tests for CharacterDataMethods with non-BMP code points
2015-08-28 12:23:27 +02:00
Ms2ger
be4f0ad8de
Update web-platform-tests to revision acd60f9e55532f03fc905e61591b7fd7db2f08d1
2015-08-26 12:14:08 +02:00
Corey Farwell
b11be4d253
Initial implementation of ownPropertyKeys proxy handler
...
Generates `SupportedPropertyNames` on DOM structs that should implement
it. Most of them are unimplemented now (which can be implemented in
later PRs), with the exception of `HTMLCollection`. Also added a couple
relevant WPT tests.
Closes #6390
Closes #2215
2015-08-20 11:58:42 -04:00
Anthony Ramine
47e76ff4ab
Fix dictionary member conversion failure ( fixes #7231 )
2015-08-16 14:32:54 +02:00
Ms2ger
c007b66d97
Correct the default value for Node#cloneNode's deep argument.
2015-08-13 12:12:45 +02:00
Ms2ger
88ea7c4291
Update web-platform-tests to revision 58133dd71b16037669a0aa011b2afd448b52d434.
2015-08-12 08:21:50 +02:00
bors-servo
84c4a26e4d
Auto merge of #7070 - frewsxcv:merge-clonenode-tests, r=Ms2ger
...
Merge Servo Node.cloneNode test into WPT Node.cloneNode test
Fixes #5755
<!-- Reviewable:start -->
[<img src="https://reviewable.io/review_button.png " height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/7070 )
<!-- Reviewable:end -->
2015-08-11 07:06:23 -06:00
Corey Farwell
a6797ac813
Merge Servo Node.cloneNode test into WPT Node.cloneNode test
...
Fixes #5755
2015-08-10 09:48:18 -04:00
David Zbarsky
7315b50973
CanvasGradient#addColorStop should throw for invalid colors and offsets
2015-08-09 23:19:56 -04:00
David Zbarsky
54adae26c6
Implement HTMLTableElement#createTBody
2015-08-09 12:24:15 -04:00
bors-servo
f41834e321
Auto merge of #7063 - dzbarsky:caption, r=Ms2ger
...
Implement createCaption and deleteCaption on HTMLTableElement
<!-- Reviewable:start -->
[<img src="https://reviewable.io/review_button.png " height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/7063 )
<!-- Reviewable:end -->
2015-08-09 04:45:28 -06:00
David Zbarsky
e24a867ab6
Implement createCaption and deleteCaption on HTMLTableElement
...
Update web-platform-tests expected data
2015-08-08 15:24:05 -04:00
bors-servo
a0af7a1581
Auto merge of #7075 - Ms2ger:load_url, r=dzbarsky
...
Improve code around Window::load_url.
<!-- Reviewable:start -->
[<img src="https://reviewable.io/review_button.png " height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/7075 )
<!-- Reviewable:end -->
2015-08-08 06:09:13 -06:00
Harrison G
e40b141409
Fix requestAnimationFrame timestamps in queue
...
This resolves #7044 which involved callbacks
in a queue not receiving the same timestamp despite
the specification saying they should. An extra test
was added to verify the correct behavior.
2015-08-07 19:02:52 -04:00
Ms2ger
7e179d9245
Handle url parse errors in Location#assign more gracefully.
2015-08-07 15:47:55 +02:00