Commit graph

455 commits

Author SHA1 Message Date
Corey Farwell
02a8e8dd16 Implement <hr> element 'width' attribute 2015-11-14 16:46:59 -05:00
Josh Matthews
c4c0809934 Add test for OnErrorEventHandler special case. 2015-11-12 16:21:24 -05:00
Corey Farwell
ee0800abe9 Implement <hr> 'color' attribute 2015-11-08 18:34:27 -05:00
Benjamin Herr
066867eb86 wpt for javascript urls with queries and fragments
Expected to FAIL right now because contentDocument in iframes with
src="javascript:..." wrongly returns null. Passes in Firefox though!
2015-11-06 18:15:28 +01:00
bors-servo
50d51bab7f Auto merge of #8245 - eefriedman:misc-attribute-fixes, r=nox
Use attribute getter/setter macros for misc DOM attributes.

This fixes a few minor bugs.

<!-- Reviewable:start -->
[<img src="https://reviewable.io/review_button.png" height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/8245)
<!-- Reviewable:end -->
2015-11-02 15:14:32 +05:30
Eli Friedman
cf8f2b1874 Use attribute getter/setter macros for misc DOM attributes.
This fixes a few minor bugs.

Also adds some better testing for "unsigned long" attributes.
2015-11-01 12:47:28 -08:00
bors-servo
0e70a1f8a8 Auto merge of #7965 - frewsxcv:labelable-elements-label-attribute, r=nox
Implement 'labels' attribute on 'labelable elements'



<!-- Reviewable:start -->
[<img src="https://reviewable.io/review_button.png" height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/7965)
<!-- Reviewable:end -->
2015-11-01 20:51:18 +05:30
Corey Farwell
9df375195e Implement 'labels' attribute on 'labelable elements' 2015-11-01 09:50:14 -05:00
Ms2ger
b492a3e8b1 Update web-platform-tests to revision 7123012427f92f0dc38a120e6e86a75b6c03aab5 2015-10-31 16:21:44 +01: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
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
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
Paul Rouget
e742e7e9bc wpt test for location.reload() 2015-09-21 08:04:24 +02: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
Ms2ger
be4f0ad8de Update web-platform-tests to revision acd60f9e55532f03fc905e61591b7fd7db2f08d1 2015-08-26 12:14:08 +02:00
Ms2ger
88ea7c4291 Update web-platform-tests to revision 58133dd71b16037669a0aa011b2afd448b52d434. 2015-08-12 08:21:50 +02: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
Ms2ger
7e179d9245 Handle url parse errors in Location#assign more gracefully. 2015-08-07 15:47:55 +02:00
Ms2ger
5b2ca4d132 Update web-platform-tests to revision 12d3e15e5ecae695e1216c358d613705fbff6b68 2015-07-27 16:31:27 +02:00
Ms2ger
bfb96b9448 Update web-platform-tests to revision 5e3ea8f49fee68c327388bfd1dd1375a8ce12a0e. 2015-07-14 10:38:54 +02:00
Ms2ger
3fb5197361 Update web-platform-tests to revision 87398b8448f699e3e324148795891658f2fa16dd 2015-06-30 14:11:21 +02:00
Ms2ger
c66c6af0ba Update web-platform-tests to revision 4d96cccabc2feacd48e1dab9afc22b8af2225572 2015-06-28 22:52:24 +02:00
Joel Teichroeb
d33579183a Implement the Image NamedConstructor for HTMLImageElement 2015-06-24 10:42:54 -07:00
Ms2ger
881fe95cd1 Update web-platform-tests to revision 075802c1d3387d07e31cd5887459d539b1297c8d. 2015-05-29 17:53:09 +02:00
James Graham
5e8b92f3de Update web-platform-tests to revision 41a7d8732d8e5c65728c153d29a34fe9d5192b29 2015-05-14 13:03:25 +01:00
Josh Matthews
a1ae53a230 Delay stylesheet load in test to increase confidence. 2015-05-11 15:35:10 -04:00
Ms2ger
173c9721c5 Extend semantics/interfaces.html. 2015-04-28 23:39:52 +02:00