Corey Farwell
8b08c6f43f
Don't link to specific WHATWG multipage page
...
"Links to the multipage version of the specification are unfortunately
likely to break over time."
-- https://html.spec.whatwg.org/multipage/asefij.html
This commit removes all references to the specific pages when viewing
WHATWG using multipage mode. I went through all these links and they
redirect fine.
Regex used to generate this commit:
`s_whatwg.org/multipage/.*#_whatwg.org/multipage/#_g`
2015-04-16 22:39:25 -04:00
bors-servo
4fd4370a96
Auto merge of #5721 - nox:nodeorstring, r=jdm
...
<!-- Reviewable:start -->
[<img src="https://reviewable.io/review_button.png " height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/5721 )
<!-- Reviewable:end -->
2015-04-16 14:47:32 -05:00
Anthony Ramine
45e1b9628e
Finish implementation of ChildNode and ParentNode
2015-04-16 20:31:34 +02:00
Corey Farwell
cc4a64e1fe
Add/update comments with links to spec
...
Extracted out of #5649
* add more hyperlinks to associated specification for structs/methods
* follow redirects and update links
* replace broken links
* removal of WHATWG multipage page name since the page name is not
guaranteed to be stable
2015-04-14 18:03:13 -04:00
Ms2ger
49393a8762
Update some URLs.
...
The HTML spec's division into pages is not stable, so it is safer to use the
URL without a specific page (which will redirect).
2015-04-14 10:44:51 +02:00
Corey Farwell
5eaa922045
Update WHATWG links to use HTTPS
...
Extracted this out of #5649
This commit was created with the following commands:
```
find . -iname "*.webidl" -type f -print0 | xargs -0 sed -i '' 's/http:\(.*\)whatwg.org/https:\1whatwg.org/g'
```
```
find . -iname "*.rs" -type f -print0 | xargs -0 sed -i '' 's/http:\(.*\)whatwg.org/https:\1whatwg.org/g'
```
2015-04-13 21:34:27 -07:00
Anthony Ramine
e20d997b37
Use a simple Temporary value in TreeIterator
2015-04-13 11:01:02 +02:00
Anthony Ramine
c026825e69
Pass a RootedVec to NodeList::new_simple_list()
2015-04-13 11:00:04 +02:00
Matt Brubeck
4e63a5063e
Don't allow disabled fields to be focused
2015-04-10 10:16:06 -07:00
Anthony Ramine
8f73b452fb
Cleanup access to CharacterData nodes
2015-04-09 16:54:55 +02:00
bors-servo
9b7bf415d7
Auto merge of #5590 - nox:document-createattributens, r=Ms2ger
2015-04-08 18:55:19 -05:00
Anthony Ramine
2353bc4798
Implement Document::CreateAttributeNS()
2015-04-08 10:22:32 +02:00
Anthony Ramine
7b4f6126c8
Add script::dom::utils::validate_and_extract()
...
Accidentally fixes bugs about Document::createElementNS() where the
implementation of "validate and extract" used to check whether the local name
extracted from the qualified name was "xmlns" instead of the qualified name
itself.
2015-04-08 10:22:30 +02:00
Anthony Ramine
abc01d598a
Add script::dom::utils::validate_qualified_name()
2015-04-08 10:22:28 +02:00
Anthony Ramine
33f2cd29fd
Implement ParentNode attributes
2015-04-07 22:27:52 +02:00
Anthony Ramine
11b4ff9e94
Use Temporary in ChildElementIterator
2015-04-07 15:46:32 +02:00
Anthony Ramine
bf7c791e3a
Hold a Temporary in AncestorIterator
2015-04-07 15:46:31 +02:00
bors-servo
3c5c2f416b
Auto merge of #5529 - ehegnes:issue-5521, r=jdm
...
Fixes #5521
2015-04-06 15:16:39 -05:00
Anthony Ramine
254207730e
Make Element::get_attribute() take its namespace by reference
2015-04-06 14:31:27 +02:00
Eric Hegnes
e398725242
Consistently name enum members in dom::bindings::error::Error
...
Fixes #5521
2015-04-05 00:09:40 -04: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
bors-servo
036b3eaa04
auto merge of #5511 : Ms2ger/servo/int, r=jdm
2015-04-03 13:54:46 -06:00
Ms2ger
c2e81be8a5
Stop using int/uint in script.
2015-04-03 20:47:53 +02:00
Gilles Leblanc
ba36a108c1
Split out shared networking code into net_traits crate
...
Fixes #4476
2015-04-03 13:38:10 -04:00
Ms2ger
02be76bd48
Merge pull request #5492 from Ms2ger/MouseButton
...
Introduce a MouseButton enum.
2015-04-03 13:29:12 +02:00
bors-servo
c38d9ba6b9
auto merge of #5484 : frewsxcv/servo/document-cleanup, r=Ms2ger
...
* Add whatwg spec links for some Document methods
* Wrap some lines that exceed 100 characters
* Other misc cleanup/refactoring
2015-04-02 22:45:41 -06:00
Ms2ger
6b127a8df8
Introduce a MouseButton enum.
2015-04-03 01:24:33 +02:00
Corey Farwell
c90e8c19cd
Improvements, cleanup for script::dom::document
...
* Add whatwg spec links for some Document methods
* Wrap some lines that exceed 100 characters
* Other misc cleanup/refactoring
2015-04-02 11:52:34 -07:00
bors-servo
5457ec6098
auto merge of #5426 : pcwalton/servo/mouse-over-incremental-reflow, r=jdm
...
r? @jdm
2015-04-02 09:57:40 -06:00
Ms2ger
c8106da277
Rewrite NodeChildrenIterator to return Temporary.
2015-04-02 13:07:51 +02:00
Ms2ger
879c3710f4
Cleanup Document::Title.
2015-04-02 09:47:29 +02:00
Patrick Walton
1fe55a27b1
script: Stop destroying all flows on every mouse-over event.
2015-04-01 13:18:04 -07:00
Corey Farwell
d838fcce30
Remove some unnecessary uses of as_slice
...
For the majority of these cases, `as_slice` can be removed due to
`Deref`. In particular, `Deref` for:
* `String` -> `str`
* `Atom` -> `str`
The latter of those two requires, a bump of the locked `string-cache`
library
2015-03-29 14:42:19 -04:00
Avi Weinstock
cb9cfe2b22
Replace (String, Option<String>) with MozBrowserEvent in uses of MozBrowserEventMsg.
2015-03-25 17:07:59 -04:00
Glenn Watson
7163a3c580
Add mozbrowser events for location + title change.
2015-03-26 05:19:03 +10:00
Corey Farwell
e770f05e0c
Cleanup and modernize script::dom::document
2015-03-23 21:43:53 -04:00
bors-servo
ca79abe458
auto merge of #5321 : frewsxcv/servo/patch-1, r=Ms2ger
2015-03-23 07:57:50 -06:00
Ms2ger
6b69fec7fe
Fix warnings in script.
2015-03-23 10:37:49 +01:00
bors-servo
1f682d878d
auto merge of #5281 : glennw/servo/mozbrowser, r=jdm
2015-03-22 21:36:51 -06:00
Glenn Watson
bf9b8f7050
Experimental implementation of (a small subset of) mozbrowser APIs.
2015-03-23 13:26:55 +10:00
Corey Farwell
c0ea1e6330
Add TODO comments for a recently opened issue
2015-03-22 22:23:06 -04:00
Corey Farwell
5a780cb221
Stop abusing format! macro when construct a String
...
In these cases for `format!`, we're just constructing a String of the
single argument with no special format.
2015-03-22 18:54:56 -04:00
Corey Farwell
5e4d80fa3a
Tidy up script::dom::document.SetBody
...
There were a few things that were bothering me with `SetBody`:
* The 'Step 3' comment is in the wrong place
* The logic of 'Step 4' comes before 'Step 3'
* 'Step 5' was not documented
2015-03-21 20:21:36 -04:00
Manish Goregaokar
3479d3fa7f
Replace unsafe_blocks by unsafe_code.
2015-03-21 10:27:32 +01:00
Maciej Skrzypkowski
7da356cd05
Added document.activeElement attribute.
2015-03-19 23:00:13 +01:00
Ms2ger
5f15eb5fbf
Upgrade rustc to d3c49d2140fc65e8bb7d7cf25bfe74dda6ce5ecf/rustc-1.0.0-dev.
2015-03-18 13:18:31 -04:00
Matt McCoy
0bd717e470
#4508 Adding simple test and actually getting the event to dispatch
2015-03-17 19:54:05 -04:00
Martin Schröder
5c8b617715
Refactored optional argument "last_modified" for Document
...
Fixes #4981
2015-03-16 17:53:19 +01:00
Rohan Prinja
5651ea06c6
make MouseEvent::new() and UIEvent::new() take enums for the bubbles and cancelable arguments
2015-03-15 10:05:36 +05:30
Glenn Watson
33829c0254
Perform reflow if load events dirty any nodes.
...
This fixes some test failures that begin occurring when other events (such as resize) are fixed to only occur when needed.
2015-03-11 08:43:47 +10:00