aboutsummaryrefslogtreecommitdiffstats
path: root/components/script/parse/html.rs
Commit message (Collapse)AuthorAgeFilesLines
* sorted the extern crate, mod & use declarationsRavi Shankar2015-09-241-3/+3
|
* Fix reported test-tidy errors for unmerged import blocksBrandon Fairchild2015-09-191-3/+1
| | | | This merges import blocks that were reported by tidy as unmerged.
* Auto merge of #7523 - eefriedman:unnecessary-unsafe, r=SimonSapinbors-servo2015-09-091-1/+1
|\ | | | | | | | | | | | | | | | | | | Fix up some unnecessary uses of `unsafe`. <!-- Reviewable:start --> [<img src="https://reviewable.io/review_button.png" height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/7523) <!-- Reviewable:end -->
| * Fix up some unnecessary uses of `unsafe`.Eli Friedman2015-09-021-1/+1
| |
* | Fix HTMLTemplateElement.innerHTMLAnthony Ramine2015-09-081-1/+8
| | | | | | | | https://github.com/w3c/DOM-Parsing/issues/1
* | Bump html5ever to 0.2.4, <template> support!Anthony Ramine2015-09-081-3/+12
|/ | | | | The failing <img> test comes from the now-correct parsing of <font face> elements in SVG.
* Remove AttributeHandlersAnthony Ramine2015-08-271-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | On components/script/*.rs: # Remove imports. /^ *use dom::element::\{.*AttributeHandlers/ { s/\{AttributeHandlers, /\{/ s/, AttributeHandlers//g s/\{([a-zA-Z]+)\}/\1/ /\{\}/d s/::self;$/;/ } /^ *use dom::element::\{?AttributeHandlers\}?;$/d # Remove AttributeHandlers. /^pub trait AttributeHandlers \{$/,/^\}$/D # Patch AttributeHandlers methods. /^impl<'a> AttributeHandlers for &'a Element \{/,/^\}$/ { s/^impl<'a> AttributeHandlers for &'a Element \{/impl Element {/ /^ *fn /s/\(self([,)])/\(\&self\1/ /^ *fn.*\(&self/s/fn/pub fn/ } The few error cases were then fixed by hand.
* Remove SinkHelpersAnthony Ramine2015-08-271-19/+1
| | | | Method get_or_create() is now directly on servohtmlparser::Sink.
* Remove helper traitsAnthony Ramine2015-08-271-7/+4
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Now that JSRef<T> is gone, there is no need to have helper traits. On components/script/*.rs: # Remove imports. /^ *use dom::[a-z]+::\{.*Helpers/ { s/\{(Raw[^L]|[^L][^a])[a-zA-Z]+Helpers, /\{/ s/, (Raw[^L]|[^L][^a])[a-zA-Z]+Helpers([,}])/\2/g s/\{([a-zA-Z]+)\}/\1/ /\{\}/d s/::self;$/;/ } /^ *use dom::[a-z]+::\{?(Raw[^L]|[^L][^a])[a-zA-Z]+Helpers\}?;$/d On components/script/dom/*.rs: # Ignore layout things. /^(pub )?(impl|trait).*Layout.* \{/,/^}$/ { P; D; } # Delete helpers traits. /^(pub )?trait ([^L][^ ]|L[^a])[^ ]+Helpers(<'a>)? \{$/,/^\}$/D # Patch private helpers. /^impl.*Private.*Helpers/,/^\}$/ { s/^impl<'a> Private([^L][^ ]|L[^a])[^ ]+Helpers(<'a>)? for &'a ([^ ]+) \{$/impl \3 {/ /^ *(unsafe )?fn .*\(self.*[<&]'a/ { s/&'a /\&/g s/<'a, /</g } /^ *(unsafe )?fn /s/\(self([,)])/\(\&self\1/ } # Patch public helpers. /^impl.*Helpers/,/^\}$/ { s/^impl(<'a>)? ([^L][^ ]|L[^a])[^ ]+Helpers(<'a>)? for (&'a )?([^ ]+) \{$/impl \5 {/ /^ *(unsafe )?fn .*\(self.*[<&]'a/ { s/&'a /\&/g s/<'a, /</g } /^ *(unsafe )?fn .*\(&?self[,)]/s/(unsafe )?fn/pub &/ /^ *pub (unsafe )?fn /s/\(self([,)])/\(\&self\1/ } The few error cases were then fixed by hand.
* sort all usesJohann Tuffe2015-08-201-7/+7
|
* Replace uses of `for foo in bar.iter()`,João Oliveira2015-08-181-2/+2
| | | | | and `for foo in bar.iter_mut(), and for foo in bar.into_iter() (continuation of #7197)
* Directly append children to output node in parse_html_fragmentMichael Wu2015-07-151-3/+2
|
* Update to zero-copy* HTML parsingSimon Sapin2015-06-251-8/+11
| | | | | | html5ever now uses the Tendril string type to minimize copying internally, but Servo still converts from/to `String` at the boundary (which involves copying).
* Upgrade to SM 39Michael Wu2015-06-191-41/+37
|
* Make external script sources load asynchronously, yet still block further ↵Josh Matthews2015-05-201-88/+21
| | | | parsing. Hook up document loading to async networking events.
* Implement a DocumentLoader type that tracks pending loads and notifies the ↵Josh Matthews2015-05-111-7/+15
| | | | script task when the queue is empty. Dispatch the document load event based on the DocumentLoader's notification.
* Auto merge of #5931 - nox:rm-helpers, r=jdmbors-servo2015-05-061-1/+1
|\ | | | | | | | | | | <!-- Reviewable:start --> [<img src="https://reviewable.io/review_button.png" height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/5931) <!-- Reviewable:end -->
| * Remove helpers that correspond to DOM methodsAnthony Ramine2015-05-041-1/+1
| |
* | Upgrade to rustc 551a74dddd84cf01440ee84148ebd18bc68bd7c8.Simon Sapin2015-05-051-5/+6
|/
* Make NodeTypeId include CharacterData variantJinwoo Song2015-04-291-4/+4
| | | | | | | NodeTypeId is supposed to reflect the WebIDL inheritance hierarchy. All of Text/ProcessingInstruction/Comment inherit from CharacterData, which inherits from Node. There should be a CharacterDataTypeId value that differentiates between those, instead.
* Remove Temporary::new()Anthony Ramine2015-04-281-1/+1
| | | | Temporary::from_rooted() now takes an Assignable value.
* Uniformise root() methodsAnthony Ramine2015-04-281-2/+2
| | | | | They now live in traits Rootable, OptionalOptionalRootable, OptionalRootable and ResultRootable.
* Remove as_slice() calls from script.Ms2ger2015-04-261-2/+2
|
* Replace the Str implementation for AttrValue by a Deref implementation.Ms2ger2015-04-251-1/+1
|
* Implement child reparenting and node removal during parsing.nithin murali2015-04-221-4/+14
|
* Change parse_progress() take JSRef by value. [Issue#5738]Dhananjay Nakrani2015-04-191-3/+3
|
* Make Metadata use ContentTypeBogdan Cuza2015-04-141-4/+5
|
* Update some URLs.Ms2ger2015-04-141-2/+2
| | | | | 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).
* Cleanup ProcessingInstructionAnthony Ramine2015-04-101-0/+1
|
* Cleanup access to CharacterData nodesAnthony Ramine2015-04-091-12/+10
|
* Hold a Temporary in AncestorIteratorAnthony Ramine2015-04-071-2/+4
|
* Produce output of fragment parsing in &mut RootedVec<JS<Node>> argumentChris Paris2015-04-061-4/+7
|
* Replace spec quotes with spec step numbersChris Paris2015-04-061-12/+4
|
* fragment parsing functions take DOMString instead of HTMLInputChris Paris2015-04-061-2/+3
|
* Refactor fragment parsingChris Paris2015-04-061-0/+44
|
* Split out shared networking code into net_traits crateGilles Leblanc2015-04-031-1/+1
| | | | Fixes #4476
* Rewrite NodeChildrenIterator to return Temporary.Ms2ger2015-04-021-2/+4
|
* Instead of panicking on broken url, break from the loop and return.Adenilson Cavalcanti2015-04-011-1/+3
|
* Replace unsafe_blocks by unsafe_code.Manish Goregaokar2015-03-211-1/+1
|
* Fix various build warnings.Ms2ger2015-03-201-2/+2
|
* auto merge of #5029 : ChrisParis/servo/h5e-serialize, r=jdmbors-servo2015-03-181-1/+82
|\ | | | | | | Fixes https://github.com/servo/servo/issues/3713. Depends on https://github.com/servo/html5ever/pull/100 and https://github.com/servo/html5ever/pull/101.
| * Serialize using html5everChris Paris2015-03-181-1/+82
| |
* | Implement Element.innerHTML setterChris Paris2015-03-181-3/+7
|/
* Implement displaying of text/plain documentsChris Double2015-03-171-13/+17
| | | | | | This is done by detecting the content type as text/plain and following the requirements from: https://html.spec.whatwg.org/multipage/browsers.html#read-text
* Implement view-source protocol. Fixes #4181.Chris Double2015-03-171-0/+14
| | | | | | | | | | | This follows the recommendation from issue #4181. A handler for 'view-source' delegates to the HTTP loader. In that loader I check for view-source, adjust the URL to be the URL to be viewed and modify the Content-Type header to be text/plain. This doesn't actually result in the source being viewed as rendering text/plain is not yet implemented.
* Upgrade to rustc ba2f13ef0 2015-02-04Simon Sapin2015-02-111-1/+6
|
* Import net as net rather than servo_net.Ms2ger2015-02-101-1/+1
|
* Use JS<Node> rather than TrustedNodeAddress in the HTML parser.Ms2ger2015-02-031-27/+27
|
* Import the util crate as util rather than servo_util.Ms2ger2015-01-291-2/+2
| | | | | | | | This used to conflict with the util crate from the standard library, which has long since been removed. The import in layout has not been changed because of a conflict with the util mod there.
* Update rustc to 00b112c45a604fa6f4b59af2a40c9deeadfdb7c6/rustc-1.0.0-dev.Josh Matthews2015-01-281-1/+1
|